import "golang.org/x/build/internal/secret"
Package secret provides a client interface for interacting with the GCP Secret Management service.
const ( // NameBuilderMasterKey is the secret name for the builder master key. NameBuilderMasterKey = "builder-master-key" // NameFarmerRunBench is the secret name for farmer run bench. NameFarmerRunBench = "farmer-run-bench" // NameGerritbotGitCookies is the secret name for Gerritbot Git cookies. NameGerritbotGitCookies = "gerritbot-gitcookies" // NameGitHubSSH is the secret name for GitHub SSH key. NameGitHubSSH = "github-ssh" // NameGithubSSHKey is the secret name for the GitHub SSH private key. NameGitHubSSHKey = "github-ssh-private-key" // NameGobotPassword is the secret name for the Gobot password. NameGobotPassword = "gobot-password" // NameGomoteSSHPublicKey is the secret name for the gomote SSH public key. NameGomoteSSHPublicKey = "gomote-ssh-public-key" // NameMaintnerGitHubToken is the secret name for the Maintner GitHub token. NameMaintnerGitHubToken = "maintner-github-token" // NamePubSubHelperWebhook is the secret name for the pubsub helper webhook secret. NamePubSubHelperWebhook = "pubsubhelper-webhook-secret" // NameAWSAccessKey is the secret name for the AWS access key. NameAWSAccessKey = "aws-access-key" // NameAWSKeyID is the secret name for the AWS key id. NameAWSKeyID = "aws-key-id" )
type Client struct {
// contains filtered or unexported fields
}
Client is used to interact with the GCP Secret Management service.
MustNewClient instantiates an instance of the Secret Manager Client. If there is an error this fuction will exit.
NewClient instantiates an instance of the Secret Manager Client.
Close closes the connection to the Secret Management service.
Retrieve the named secret from the Secret Management service.
Package secret imports 8 packages (graph) and is imported by 22 packages. Updated 2021-01-21. Refresh now. Tools for package owners.