Help us shape the future of Go! Take the 2026 Go Developer Survey

gcloud

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package gcloud provides CLI commands for Google Cloud Secret Manager, exposed as the "suve gcloud secret <op>" command group plus the "suve gcloud stage <op>" staging workflow.

Google Cloud is secret-only (no parameter store). The read/write/tag commands live in the gcloud/secret package; the staging commands (stage.go) drive the shared staging scaffolding with the Google Cloud strategy. This package owns the --project flag and the Before hook that resolves it, so both subgroups see the same project.

command.go is this package's subject: the gcloud command group it assembles, together with the flag and hook its sibling files share. Hence core.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command returns the gcloud command with the secret subcommand group.

func FlatSecretCommand

func FlatSecretCommand(name string) *cli.Command

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 FlatStageCommand added in v0.8.1

func FlatStageCommand(name string) *cli.Command

FlatStageCommand returns the Google Cloud stage command as a standalone top-level command named `name` (e.g. "stage"). 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 stage` alias when Google Cloud is the uniquely active staging provider.

func StageCommand added in v0.8.1

func StageCommand() *cli.Command

StageCommand returns the "gcloud stage" subcommand group.

Types

This section is empty.

Directories

Path Synopsis
Package internal holds the Google Cloud project context, store and staging-scope wiring that the gcloud command group, its secret package and its stage commands share.
Package internal holds the Google Cloud project context, store and staging-scope wiring that the gcloud command group, its secret package and its stage commands share.
Package secret provides CLI commands for Google Cloud Secret Manager, exposed as the "suve gcloud secret <op>" command group.
Package secret provides CLI commands for Google Cloud Secret Manager, exposed as the "suve gcloud secret <op>" command group.

Jump to

Keyboard shortcuts

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