regional_secretmanager

package
v0.0.0-...-1488876 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessRegionalSecretVersion

func AccessRegionalSecretVersion(w io.Writer, projectId, locationId, secretId, versionId string) error

accessSecretVersion accesses the payload for the given secret version if one exists. The version can be a version number as a string (e.g. "5") or an alias (e.g. "latest").

func AddRegionalSecretVersion

func AddRegionalSecretVersion(w io.Writer, projectId, locationId, secretId string) error

addSecretVersion adds a new secret version to the given secret with the provided payload.

func CreateRegionalSecret

func CreateRegionalSecret(w io.Writer, projectId, locationId, id string) error

createSecret creates a new secret with the given name. A secret is a logical wrapper around a collection of secret versions. Secret versions hold the actual secret material.

func DeleteRegionalSecret

func DeleteRegionalSecret(projectId, locationId, secretId string) error

deleteSecret deletes the secret with the given name and all of its versions.

func DeleteRegionalSecretWithEtag

func DeleteRegionalSecretWithEtag(projectId, locationId, secretId, etag string) error

deleteSecretWithEtag deletes the secret with the given name and all of its versions.

func DestroyRegionalSecretVersion

func DestroyRegionalSecretVersion(projectId, locationId, secretId, versionId string) error

destroySecretVersion destroys the given secret version, making the payload irrecoverable. Other secrets versions are unaffected.

func DestroyRegionalSecretVersionWithEtag

func DestroyRegionalSecretVersionWithEtag(projectId, locationId, secretId, versionId, etag string) error

destroySecretVersionWithEtag destroys the given secret version, making the payload irrecoverable. Other secrets versions are unaffected.

func DisableRegionalSecretVersion

func DisableRegionalSecretVersion(projectId, locationId, secretId, versionId string) error

disableSecretVersion disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets versions are unaffected.

func DisableRegionalSecretVersionWithEtag

func DisableRegionalSecretVersionWithEtag(projectId, locationId, secretId, versionId, etag string) error

disableSecretVersionWithEtag disables the given secret version. Future requests will throw an error until the secret version is enabled. Other secrets versions are unaffected.

func EnableRegionalSecretVersion

func EnableRegionalSecretVersion(projectId, locationId, secretId, versionId string) error

enableSecretVersion enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are unaffected.

func EnableRegionalSecretVersionWithEtag

func EnableRegionalSecretVersionWithEtag(projectId, locationId, secretId, versionId, etag string) error

enableSecretVersionWithEtag enables the given secret version, enabling it to be accessed after previously being disabled. Other secrets versions are unaffected.

func GetRegionalSecret

func GetRegionalSecret(w io.Writer, projectId, locationId, secretId string) error

getSecret gets information about the given secret. This only returns metadata about the secret container, not any secret material.

func GetRegionalSecretVersion

func GetRegionalSecretVersion(w io.Writer, projectId, locationId, secretId, versionId string) error

getSecretVersion gets information about the given secret version. It does not include the payload data.

func IamGrantAccessWithRegionalSecret

func IamGrantAccessWithRegionalSecret(w io.Writer, projectId, locationId, secretId, member string) error

iamGrantAccess grants the given member access to the secret.

func IamRevokeAccessWithRegionalSecret

func IamRevokeAccessWithRegionalSecret(w io.Writer, projectId, locationId, secretId, member string) error

iamRevokeAccess revokes the given member's access on the secret.

func ListRegionalSecretVersions

func ListRegionalSecretVersions(w io.Writer, projectId, locationId, secretId string) error

listSecretVersions lists all secret versions in the given secret and their metadata.

func ListRegionalSecretVersionsWithFilter

func ListRegionalSecretVersionsWithFilter(w io.Writer, projectId, locationId, secretId string, filter string) error

listSecretVersionsWithFilter lists all filter-matching secret versions in the given secret and their metadata.

func ListRegionalSecrets

func ListRegionalSecrets(w io.Writer, projectId, locationId string) error

listSecrets lists all secrets in the given project.

func ListRegionalSecretsWithFilter

func ListRegionalSecretsWithFilter(w io.Writer, projectId, locationId string, filter string) error

listSecretsWithFilter lists all filter-matching secrets in the given project.

func UpdateRegionalSecret

func UpdateRegionalSecret(w io.Writer, projectId, locationId, secretId string) error

updateSecret updates the metadata about an existing secret.

func UpdateRegionalSecretWithAlias

func UpdateRegionalSecretWithAlias(w io.Writer, projectId, locationId, secretId string) error

updateSecret updates the alias map on an existing secret.

func UpdateRegionalSecretWithEtag

func UpdateRegionalSecretWithEtag(w io.Writer, projectId, locationId, secretId, etag string) error

updateSecretWithEtag updates the metadata about an existing secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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