handler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListRegisteredTypesString

func ListRegisteredTypesString() []string

func RegisterNewSecretType

func RegisterNewSecretType(newType SecretType, handlerFunc SecretsHandlerInstantiator) error

Types

type SecretType

type SecretType string
const (
	DBSecretType SecretType = "db"
)

func ListRegisteredTypes

func ListRegisteredTypes() []SecretType

func ParseType

func ParseType(s string) (SecretType, error)

func (*SecretType) Setup

func (x *SecretType) Setup() (SecretsHandler, error)

func (SecretType) String

func (x SecretType) String() string

String returns a string representation of the SecretType.

type SecretsHandler

type SecretsHandler interface {
	AddSecret(namespace, name string, secret []byte) error
	RemoveSecret(namespace, name string) error
	RemoveSecrets(namespace string) error
	GetSecret(namespace, name string) ([]byte, error)
	GetSecrets(namespace string) ([]string, error)
}

type SecretsHandlerInstantiator

type SecretsHandlerInstantiator func() (SecretsHandler, error)

Jump to

Keyboard shortcuts

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