secretcache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(k8sRepo HandlerRepository, logger log.Logger) (controller.Handler, error)

NewHandler returns the handler for the controller.

func NewRetriever

func NewRetriever(k8sRepo RetrieverRepository, ns, secretName string) (controller.Retriever, error)

NewRetriever returns the retriever for the controller.

Types

type HandlerRepository

type HandlerRepository interface {
	SetSecretOnCache(ctx context.Context, secret *corev1.Secret) error
}

HandlerRepository is the service to manage k8s resources by the Kubernetes controller handler.

type RetrieverRepository

type RetrieverRepository interface {
	ListSecrets(ctx context.Context, ns string, options metav1.ListOptions) (*corev1.SecretList, error)
	WatchSecrets(ctx context.Context, ns string, options metav1.ListOptions) (watch.Interface, error)
}

RetrieverRepository is the service to manage k8s resources by the Kubernetes retrievers.

Jump to

Keyboard shortcuts

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