Documentation ¶
Index ¶
- Constants
- Variables
- func GetRegisteredBackends() []string
- func Register(name string, factory func() SecretBackend)
- type K8sSecretBackend
- func (k K8sSecretBackend) CreateSecret(secret model.Secret) error
- func (k K8sSecretBackend) DeleteSecret(secret model.Secret) error
- func (k K8sSecretBackend) GetScopes() ([]string, error)
- func (k K8sSecretBackend) GetSecrets(secret model.Secret) ([]model.GetSecretResponseItem, error)
- func (k K8sSecretBackend) UpdateSecret(secret model.Secret) error
- type ScopeManager
- type SecretBackend
- type SecretManager
Constants ¶
View Source
const DefaultNamespace = "keptn"
View Source
const SecretBackendTypeK8s = "kubernetes"
View Source
const SecretServiceName = "keptn-secret-service"
Variables ¶
View Source
var ErrScopeNotFound = errors.New("scope not found")
View Source
var ErrSecretAlreadyExists = errors.New("secret already exists")
View Source
var ErrSecretNotFound = errors.New("secret not found")
View Source
var ErrTooBigKeySize = errors.New("name and key values must be no more than 253 characters")
Functions ¶
func GetRegisteredBackends ¶
func GetRegisteredBackends() []string
func Register ¶
func Register(name string, factory func() SecretBackend)
Types ¶
type K8sSecretBackend ¶
type K8sSecretBackend struct { KubeAPI kubernetes.Interface KeptnNamespaceProvider common.StringSupplier ScopesRepository repository.ScopesRepository }
func NewK8sSecretBackend ¶
func NewK8sSecretBackend(kubeAPI kubernetes.Interface, scopesRepository repository.ScopesRepository) *K8sSecretBackend
func (K8sSecretBackend) CreateSecret ¶
func (k K8sSecretBackend) CreateSecret(secret model.Secret) error
func (K8sSecretBackend) DeleteSecret ¶
func (k K8sSecretBackend) DeleteSecret(secret model.Secret) error
func (K8sSecretBackend) GetScopes ¶
func (k K8sSecretBackend) GetScopes() ([]string, error)
func (K8sSecretBackend) GetSecrets ¶
func (k K8sSecretBackend) GetSecrets(secret model.Secret) ([]model.GetSecretResponseItem, error)
func (K8sSecretBackend) UpdateSecret ¶
func (k K8sSecretBackend) UpdateSecret(secret model.Secret) error
type ScopeManager ¶
type SecretBackend ¶
type SecretBackend interface { SecretManager ScopeManager }
func CreateBackend ¶
func CreateBackend(backendType string) SecretBackend
Click to show internal directories.
Click to hide internal directories.