service

package
v0.1.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBSecretsService added in v0.1.20

type DBSecretsService struct {
	EntityStore entitystore.EntityStore
}

DBSecretsService implements service which stores all secrets data in entity store.

func (*DBSecretsService) AddSecret added in v0.1.20

func (s *DBSecretsService) AddSecret(ctx context.Context, organizationID string, secret v1.Secret) (*v1.Secret, error)

AddSecret adds a secret

func (*DBSecretsService) DeleteSecret added in v0.1.20

func (s *DBSecretsService) DeleteSecret(ctx context.Context, organizationID string, name string, opts entitystore.Options) error

DeleteSecret deletes a secret

func (*DBSecretsService) GetSecret added in v0.1.20

func (s *DBSecretsService) GetSecret(ctx context.Context, organizationID string, name string, opts entitystore.Options) (*v1.Secret, error)

GetSecret gets a specific secret

func (*DBSecretsService) GetSecrets added in v0.1.20

func (s *DBSecretsService) GetSecrets(ctx context.Context, organizationID string, opts entitystore.Options) ([]*v1.Secret, error)

GetSecrets gets all the secrets

func (*DBSecretsService) UpdateSecret added in v0.1.20

func (s *DBSecretsService) UpdateSecret(ctx context.Context, organizationID string, secret v1.Secret, opts entitystore.Options) (*v1.Secret, error)

UpdateSecret updates a secret

type K8sSecretsService

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

K8sSecretsService type

func (*K8sSecretsService) AddSecret

func (secretsService *K8sSecretsService) AddSecret(ctx context.Context, organizationID string, secret dispatchv1.Secret) (*dispatchv1.Secret, error)

AddSecret adds a secret

func (*K8sSecretsService) DeleteSecret

func (secretsService *K8sSecretsService) DeleteSecret(ctx context.Context, organizationID string, name string, opts entitystore.Options) error

DeleteSecret deletes a secret

func (*K8sSecretsService) GetSecret

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

GetSecret gets a specific secret

func (*K8sSecretsService) GetSecrets

func (secretsService *K8sSecretsService) GetSecrets(ctx context.Context, organizationID string, opts entitystore.Options) ([]*dispatchv1.Secret, error)

GetSecrets gets all the secrets

func (*K8sSecretsService) UpdateSecret

func (secretsService *K8sSecretsService) UpdateSecret(ctx context.Context, organizationID string, 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(ctx context.Context, organizationID string, secret v1.Secret) (*v1.Secret, error)
	GetSecrets(ctx context.Context, organizationID string, opts entitystore.Options) ([]*v1.Secret, error)
	GetSecret(ctx context.Context, organizationID string, name string, opts entitystore.Options) (*v1.Secret, error)
	UpdateSecret(ctx context.Context, organizationID string, secret v1.Secret, opts entitystore.Options) (*v1.Secret, error)
	DeleteSecret(ctx context.Context, organizationID string, 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