Documentation ¶
Index ¶
- func NewAddSecretCommand() cmd.Command
- func NewGrantSecretCommand() cmd.Command
- func NewListSecretsCommand() cmd.Command
- func NewRemoveSecretCommand() cmd.Command
- func NewRevokeSecretCommand() cmd.Command
- func NewShowSecretsCommand() cmd.Command
- func NewUpdateSecretCommand() cmd.Command
- type AccessInfo
- type AddSecretsAPI
- type GrantRevokeSecretsAPI
- type ListSecretsAPI
- type RemoveSecretsAPI
- type SecretUpsertContentCommand
- type UpdateSecretsAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddSecretCommand ¶
func NewAddSecretCommand() cmd.Command
NewAddSecretCommand returns a command to add a secret.
func NewGrantSecretCommand ¶
func NewGrantSecretCommand() cmd.Command
NewGrantSecretCommand returns a command to grant view access of a secret to applications.
func NewListSecretsCommand ¶
func NewListSecretsCommand() cmd.Command
NewListSecretsCommand returns a command to list secrets metadata.
func NewRemoveSecretCommand ¶
func NewRemoveSecretCommand() cmd.Command
NewRemoveSecretCommand returns a command to remove a secret.
func NewRevokeSecretCommand ¶
func NewRevokeSecretCommand() cmd.Command
NewRevokeSecretCommand returns a command to revoke view access of a secret to applications.
func NewShowSecretsCommand ¶
func NewShowSecretsCommand() cmd.Command
NewShowSecretsCommand returns a command to list secrets metadata.
func NewUpdateSecretCommand ¶
func NewUpdateSecretCommand() cmd.Command
NewUpdateSecretCommand returns a command to update a secret.
Types ¶
type AccessInfo ¶
type AccessInfo struct { Target string `json:"target" yaml:"target"` Scope string `json:"scope" yaml:"scope"` Role secrets.SecretRole `json:"role" yaml:"role"` }
AccessInfo holds info about a secret access information.
type AddSecretsAPI ¶
type AddSecretsAPI interface { CreateSecret(name, description string, data map[string]string) (string, error) Close() error }
AddSecretsAPI is the secrets client API.
type GrantRevokeSecretsAPI ¶
type GrantRevokeSecretsAPI interface { GrantSecret(*secrets.URI, string, []string) ([]error, error) RevokeSecret(*secrets.URI, string, []string) ([]error, error) Close() error }
GrantRevokeSecretsAPI is the secrets client API.
type ListSecretsAPI ¶
type ListSecretsAPI interface { ListSecrets(bool, secrets.Filter) ([]apisecrets.SecretDetails, error) Close() error }
ListSecretsAPI is the secrets client API.
type RemoveSecretsAPI ¶
type RemoveSecretsAPI interface { RemoveSecret(uri *secrets.URI, name string, revision *int) error Close() error }
RemoveSecretsAPI is the secrets client API.
type SecretUpsertContentCommand ¶
type SecretUpsertContentCommand struct { Data map[string]string Description string FileName string }
SecretUpsertContentCommand is the helper base command to create or update a secret.
func (*SecretUpsertContentCommand) Init ¶
func (c *SecretUpsertContentCommand) Init(args []string) error
Init implements cmd.Command.
func (*SecretUpsertContentCommand) SetFlags ¶
func (c *SecretUpsertContentCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags implements cmd.Command.