{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package gcp\n\n## Types\n\n```go\ntype Manager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewManager(opts *NewManagerOpts) (*Manager, error)\n```\n\n```go\nfunc (m *Manager) DeleteCredentials(ctx context.Context, secretID string) error\n```\nDeleteCredentials deletes credentials and versions\n\n```go\nfunc (m *Manager) ReadCredentials(ctx context.Context, secretID string, creds any) error\n```\nReadCredentials reads the latest version of the credentials\n\n```go\nfunc (m *Manager) SaveCredentials(ctx context.Context, orgID string, creds any, opts ...credentials.SaveOption) (string, error)\n```\nSaveCredentials saves credentials. If opts includes WithExistingSecret, upserts at the given path.\n\n```go\ntype NewManagerOpts struct {\n\tProjectID, ServiceAccountKey, SecretPrefix string\n\tLogger                                     log.Logger\n\tRole                                       credentials.Role\n}\n```\n\n```go\ntype SecretsManagerInterface interface {\n\tCreateSecret(ctx context.Context, req *secretmanagerpb.CreateSecretRequest, opts ...gax.CallOption) (*secretmanagerpb.Secret, error)\n\tAddSecretVersion(ctx context.Context, req *secretmanagerpb.AddSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.SecretVersion, error)\n\tAccessSecretVersion(ctx context.Context, req *secretmanagerpb.AccessSecretVersionRequest, opts ...gax.CallOption) (*secretmanagerpb.AccessSecretVersionResponse, error)\n\tDeleteSecret(ctx context.Context, req *secretmanagerpb.DeleteSecretRequest, opts ...gax.CallOption) error\n\tGetSecret(ctx context.Context, req *secretmanagerpb.GetSecretRequest, opts ...gax.CallOption) (*secretmanagerpb.Secret, error)\n}\n```\n\n","path":"github.com/chainloop-dev/chainloop/pkg/credentials/gcp","name":"gcp","synopsis":"","isRedistributable":true}
