secrets

package
v0.0.0-...-439fd0a Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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.

type UpdateSecretsAPI

type UpdateSecretsAPI interface {
	UpdateSecret(
		uri *secrets.URI, name string, autoPrune *bool,
		newName, description string, data map[string]string,
	) error
	Close() error
}

UpdateSecretsAPI is the secrets client API.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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