service

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sSecretsService

type K8sSecretsService struct {
	EntityStore entitystore.EntityStore
	SecretsAPI  k8sv1.SecretInterface
	OrgID       string
}

K8sSecretsService type

func (*K8sSecretsService) AddSecret

func (secretsService *K8sSecretsService) AddSecret(secret dispatchv1.Secret) (*dispatchv1.Secret, error)

AddSecret adds a secret

func (*K8sSecretsService) DeleteSecret

func (secretsService *K8sSecretsService) DeleteSecret(name string, opts entitystore.Options) error

DeleteSecret deletes a secret

func (*K8sSecretsService) GetSecret

func (secretsService *K8sSecretsService) GetSecret(name string, opts entitystore.Options) (*dispatchv1.Secret, error)

GetSecret gets a specific secret

func (*K8sSecretsService) GetSecrets

func (secretsService *K8sSecretsService) GetSecrets(opts entitystore.Options) ([]*dispatchv1.Secret, error)

GetSecrets gets all the secrets

func (*K8sSecretsService) UpdateSecret

func (secretsService *K8sSecretsService) UpdateSecret(secret dispatchv1.Secret, opts entitystore.Options) (*dispatchv1.Secret, error)

UpdateSecret updates a secret

type SecretNotFound added in v0.1.13

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

SecretNotFound is the error type when the secret is not found

type SecretsService

type SecretsService interface {
	AddSecret(v1.Secret) (*v1.Secret, error)
	GetSecrets(opts entitystore.Options) ([]*v1.Secret, error)
	GetSecret(name string, opts entitystore.Options) (*v1.Secret, error)
	UpdateSecret(secret v1.Secret, opts entitystore.Options) (*v1.Secret, error)
	DeleteSecret(name string, opts entitystore.Options) error
}

SecretsService defines the secrets service interface

Jump to

Keyboard shortcuts

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