Documentation
¶
Overview ¶
Package gcloud provides CLI commands for Google Cloud Secret Manager, exposed as the "suve gcloud secret <op>" command group.
Google Cloud is secret-only (no parameter store) and has no staging workflow, so this group exposes only the read/write/tag commands (show, log, list, diff, create, update, delete, tag, untag). They reuse the same generic command scaffolding as the AWS secret commands via Google Cloud-specific presenters and use cases.
Index ¶
- func Command() *cli.Command
- func CreateCommand() *cli.Command
- func DeleteCommand() *cli.Command
- func DiffCommand() *cli.Command
- func FlatSecretCommand(name string) *cli.Command
- func ListCommand() *cli.Command
- func LogCommand() *cli.Command
- func NewDiffPresenter(reader provider.Reader, spec1, spec2 *gcpversion.Spec) genericdiff.Presenter
- func NewLogPresenter(reader provider.Reader, req genericlog.Request) genericlog.Presenter
- func NewShowPresenter(reader provider.Reader, spec *gcpversion.Spec) genericshow.Presenter
- func SecretCommand() *cli.Command
- func ShowCommand() *cli.Command
- func TagCommand() *cli.Command
- func UntagCommand() *cli.Command
- func UpdateCommand() *cli.Command
- type CreateOptions
- type CreateRunner
- type DeleteOptions
- type DeleteRunner
- type UpdateOptions
- type UpdateRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommand ¶
CreateCommand returns the Google Cloud Secret Manager create command.
func DeleteCommand ¶
DeleteCommand returns the Google Cloud Secret Manager delete command.
func DiffCommand ¶
DiffCommand returns the Google Cloud Secret Manager diff command.
func FlatSecretCommand ¶
FlatSecretCommand returns the Google Cloud secret command as a standalone top-level command named `name` (e.g. "secret"). Because there is no parent gcloud group to carry them, it folds in the --project flag and the project-resolving Before hook. Used for the flat `suve secret` alias when Google Cloud is the uniquely active secret provider.
func ListCommand ¶
ListCommand returns the Google Cloud Secret Manager list command.
func LogCommand ¶
LogCommand returns the Google Cloud Secret Manager log command.
func NewDiffPresenter ¶
func NewDiffPresenter(reader provider.Reader, spec1, spec2 *gcpversion.Spec) genericdiff.Presenter
NewDiffPresenter builds a Google Cloud diff presenter over the given reader and specs.
func NewLogPresenter ¶
func NewLogPresenter(reader provider.Reader, req genericlog.Request) genericlog.Presenter
NewLogPresenter builds a Google Cloud log presenter over the given reader and request.
func NewShowPresenter ¶
func NewShowPresenter(reader provider.Reader, spec *gcpversion.Spec) genericshow.Presenter
NewShowPresenter builds a Google Cloud show presenter over the given reader and spec.
func SecretCommand ¶
SecretCommand returns the "gcloud secret" subcommand group.
func ShowCommand ¶
ShowCommand returns the Google Cloud Secret Manager show command.
func TagCommand ¶
TagCommand returns the Google Cloud Secret Manager tag command.
func UntagCommand ¶
UntagCommand returns the Google Cloud Secret Manager untag command.
func UpdateCommand ¶
UpdateCommand returns the Google Cloud Secret Manager update command.
Types ¶
type CreateOptions ¶
CreateOptions holds the options for the create command.
type CreateRunner ¶
CreateRunner executes the create command.
func (*CreateRunner) Run ¶
func (r *CreateRunner) Run(ctx context.Context, opts CreateOptions) error
Run executes the create command.
type DeleteOptions ¶
type DeleteOptions struct {
Name string
}
DeleteOptions holds the options for the delete command.
type DeleteRunner ¶
DeleteRunner executes the delete command.
func (*DeleteRunner) Run ¶
func (r *DeleteRunner) Run(ctx context.Context, opts DeleteOptions) error
Run executes the delete command.
type UpdateOptions ¶
UpdateOptions holds the options for the update command.
type UpdateRunner ¶
UpdateRunner executes the update command.
func (*UpdateRunner) Run ¶
func (r *UpdateRunner) Run(ctx context.Context, opts UpdateOptions) error
Run executes the update command.