Documentation ¶
Index ¶
- func FetchProjectID() (string, error)
- func FetchProjectIDUsingCmd(cmd *cobra.Command) (string, cleanupFunc, error)
- func FetchSecret(ctx context.Context, projectID string, name string) ([]byte, error)
- func WriteSecret(ctx context.Context, projectID string, name string, sercretValue []byte) error
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchProjectID ¶
FetchProjectID will return the GCP project id
func FetchProjectIDUsingCmd ¶ added in v0.0.76
FetchProjectIDUsingCmd will return the GCP project id using the provided cobra command to find the project id. It will also return a cleanup function that should be called to clean up any temporary files created.
func FetchSecret ¶
FetchSecret will fetch a secret by name for a given project
Types ¶
type Secret ¶ added in v0.0.7
type Secret *secretmanagerpb.Secret
Click to show internal directories.
Click to hide internal directories.