Documentation
¶
Index ¶
- type K8sSecretsService
- func (secretsService *K8sSecretsService) AddSecret(ctx context.Context, secret dispatchv1.Secret) (*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) DeleteSecret(ctx context.Context, name string, opts entitystore.Options) error
- func (secretsService *K8sSecretsService) GetSecret(ctx context.Context, name string, opts entitystore.Options) (*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) GetSecrets(ctx context.Context, opts entitystore.Options) ([]*dispatchv1.Secret, error)
- func (secretsService *K8sSecretsService) UpdateSecret(ctx context.Context, secret dispatchv1.Secret, opts entitystore.Options) (*dispatchv1.Secret, error)
- type SecretNotFound
- type SecretsService
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(ctx context.Context, secret dispatchv1.Secret) (*dispatchv1.Secret, error)
AddSecret adds a secret
func (*K8sSecretsService) DeleteSecret ¶
func (secretsService *K8sSecretsService) DeleteSecret(ctx context.Context, name string, opts entitystore.Options) error
DeleteSecret deletes a secret
func (*K8sSecretsService) GetSecret ¶
func (secretsService *K8sSecretsService) GetSecret(ctx context.Context, name string, opts entitystore.Options) (*dispatchv1.Secret, error)
GetSecret gets a specific secret
func (*K8sSecretsService) GetSecrets ¶
func (secretsService *K8sSecretsService) GetSecrets(ctx context.Context, opts entitystore.Options) ([]*dispatchv1.Secret, error)
GetSecrets gets all the secrets
func (*K8sSecretsService) UpdateSecret ¶
func (secretsService *K8sSecretsService) UpdateSecret(ctx context.Context, 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, secret v1.Secret) (*v1.Secret, error)
GetSecrets(ctx context.Context, opts entitystore.Options) ([]*v1.Secret, error)
GetSecret(ctx context.Context, name string, opts entitystore.Options) (*v1.Secret, error)
UpdateSecret(ctx context.Context, secret v1.Secret, opts entitystore.Options) (*v1.Secret, error)
DeleteSecret(ctx context.Context, name string, opts entitystore.Options) error
}
SecretsService defines the secrets service interface
Click to show internal directories.
Click to hide internal directories.