kubesecret

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: UPL-1.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeSecretClient

type KubeSecretClient struct {
	Client  client.Client
	Log     loggerutil.OSOKLogger
	Metrics *metrics.Metrics
}

func New

func New(client client.Client, logger loggerutil.OSOKLogger, metrics *metrics.Metrics) *KubeSecretClient

func (*KubeSecretClient) CreateSecret

func (c *KubeSecretClient) CreateSecret(ctx context.Context, secretName string, secretNamespace string,
	labels map[string]string, data map[string][]byte) (bool, error)

func (*KubeSecretClient) DeleteSecret

func (c *KubeSecretClient) DeleteSecret(ctx context.Context, secretName string, secretNamespace string) (bool, error)

func (*KubeSecretClient) GetSecret

func (c *KubeSecretClient) GetSecret(ctx context.Context, secretName string, secretNamespace string) (map[string][]byte, error)

func (*KubeSecretClient) UpdateSecret

func (c *KubeSecretClient) UpdateSecret(ctx context.Context, secretName string, secretNamespace string, labels map[string]string,
	updatedData map[string][]byte) (bool, error)

Jump to

Keyboard shortcuts

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