secret

package
v0.0.0-...-5b6efc0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServiceAccountName = "default"
	AccountKey                = "account"
)
View Source
const (
	DefaultObjectName = "flowify-default"
)

Variables

This section is empty.

Functions

func InClusterConfig

func InClusterConfig(ctx context.Context, client kubernetes.Interface, namespace, workspace string) (*rest.Config, error)

Types

type SecretClient

type SecretClient interface {
	ListAvailableKeys(ctx context.Context, group string) ([]string, error)
	AddSecretKey(ctx context.Context, group, name, key string) error
	DeleteSecretKey(ctx context.Context, group, name string) error
}

func NewSecretClient

func NewSecretClient(clientSet kubernetes.Interface) SecretClient

type SecretClientImpl

type SecretClientImpl struct {
	// contains filtered or unexported fields
}

Implements secret.SecretClient

func (*SecretClientImpl) AddSecretKey

func (c *SecretClientImpl) AddSecretKey(ctx context.Context, workspace, key, value string) error

func (*SecretClientImpl) DeleteSecretKey

func (c *SecretClientImpl) DeleteSecretKey(ctx context.Context, workspace, name string) error

func (*SecretClientImpl) ListAvailableKeys

func (c *SecretClientImpl) ListAvailableKeys(ctx context.Context, workspace string) ([]string, error)

type SecretClientMock

type SecretClientMock struct {
	mock.Mock
}

func NewDefaultSecretClientMock

func NewDefaultSecretClientMock() *SecretClientMock

func (*SecretClientMock) AddSecretKey

func (m *SecretClientMock) AddSecretKey(ctx context.Context, group, name, key string) error

func (*SecretClientMock) DeleteSecretKey

func (m *SecretClientMock) DeleteSecretKey(ctx context.Context, group, name string) error

func (*SecretClientMock) ListAvailableKeys

func (m *SecretClientMock) ListAvailableKeys(ctx context.Context, group string) ([]string, error)

Jump to

Keyboard shortcuts

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