build: golang.org/x/build/internal/secret Index | Files

package secret

import "golang.org/x/build/internal/secret"

Package secret provides a client interface for interacting with the GCP Secret Management service.

Index

Package Files

gcp_secret_manager.go

Constants

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"
)

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client is used to interact with the GCP Secret Management service.

func NewClient Uses

func NewClient() (*Client, error)

NewClient instantiates an instance of the Secret Manager Client.

func (*Client) Close Uses

func (smc *Client) Close() error

Close closes the connection to the Secret Management service.

func (*Client) Retrieve Uses

func (smc *Client) Retrieve(ctx context.Context, name string) (string, error)

Retrieve the named secret from the Secret Management service.

Package secret imports 7 packages (graph) and is imported by 11 packages. Updated 2020-04-09. Refresh now. Tools for package owners.