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.
Click to show internal directories.
Click to hide internal directories.