Documentation ¶
Index ¶
- type DBSecretsService
- func (s *DBSecretsService) AddSecret(ctx context.Context, organizationID string, secret v1.Secret) (*v1.Secret, error)
- func (s *DBSecretsService) DeleteSecret(ctx context.Context, organizationID string, name string, ...) error
- func (s *DBSecretsService) GetSecret(ctx context.Context, organizationID string, name string, ...) (*v1.Secret, error)
- func (s *DBSecretsService) GetSecrets(ctx context.Context, organizationID string, opts entitystore.Options) ([]*v1.Secret, error)
- func (s *DBSecretsService) UpdateSecret(ctx context.Context, organizationID string, secret v1.Secret, ...) (*v1.Secret, error)
- type K8sSecretsService
- func (secretsService *K8sSecretsService) AddSecret(ctx context.Context, organizationID string, secret dispatchv1.Secret) (*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) DeleteSecret(ctx context.Context, organizationID string, name string, ...) error
- func (secretsService *K8sSecretsService) GetSecret(ctx context.Context, organizationID string, name string, ...) (*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) GetSecrets(ctx context.Context, organizationID string, opts entitystore.Options) ([]*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) UpdateSecret(ctx context.Context, organizationID string, secret dispatchv1.Secret, ...) (*dispatchv1.Secret, error)
- type SecretNotFound
- type SecretsService
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
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
Click to show internal directories.
Click to hide internal directories.