kubernetes

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseClient

type BaseClient struct {
	Certificate []byte
	Key         []byte
	CA          []byte
	BearerToken []byte
	// contains filtered or unexported fields
}

type KClient

type KClient interface {
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Secret, error)
}

type ProviderKubernetes

type ProviderKubernetes struct {
	Client       KClient
	ReviewClient RClient
	Namespace    string
}

ProviderKubernetes is a provider for Kubernetes.

func (*ProviderKubernetes) Close

func (k *ProviderKubernetes) Close(ctx context.Context) error

func (*ProviderKubernetes) GetAllSecrets

func (k *ProviderKubernetes) GetAllSecrets(ctx context.Context, ref esv1beta1.ExternalSecretFind) (map[string][]byte, error)

func (*ProviderKubernetes) GetSecret

func (*ProviderKubernetes) GetSecretMap

func (*ProviderKubernetes) NewClient

NewClient constructs a Kubernetes Provider.

func (*ProviderKubernetes) Validate

func (*ProviderKubernetes) ValidateStore

func (k *ProviderKubernetes) ValidateStore(store esv1beta1.GenericStore) error

type RClient

type RClient interface {
	Create(ctx context.Context, SelfSubjectAccessReview *authv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*authv1.SelfSubjectAccessReview, error)
}

Jump to

Keyboard shortcuts

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