secrets

package
v0.0.0-...-affaa53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Get(name string, options metav1.GetOptions) (*v1.Secret, error)
	Create(secret *v1.Secret) (*v1.Secret, error)
	Update(secret *v1.Secret) (*v1.Secret, error)
	Delete(name string, options *metav1.DeleteOptions) error
}

Manager contains operations for managing k8s secrets

type ManagerConstructor

type ManagerConstructor func(namespace string) Manager

ManagerConstructor creates Secret Manager for specified namespace

type Repository

type Repository interface {
	Get(name types.NamespacedName) (map[string][]byte, error)
	UpsertWithReplace(name types.NamespacedName, data map[string][]byte) error
	UpsertWithMerge(name types.NamespacedName, data map[string][]byte) error
}

Repository contains operations for managing client credentials

func NewRepository

func NewRepository(secretsManagerConstructor ManagerConstructor) Repository

NewRepository creates a new secrets repository

Directories

Path Synopsis
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL