{"modulePath":"github.com/chainloop-dev/chainloop","version":"v0.91.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package vault\n\nKeyVal V2 secrets implementation for Hashicorp Vault\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```\nNewManager creates a new credentials manager that uses Hashicorp Vault as backend Configured to write secrets in the KVv2 engine referenced by the provided mount path. SecretPrefix is used to namespace secrets in the KVv2 engine during write operations.\n\n```go\nfunc (m *Manager) DeleteCredentials(ctx context.Context, secretID string) error\n```\n\n```go\nfunc (m *Manager) ReadCredentials(ctx context.Context, secretID string, creds any) error\n```\n\n```go\nfunc (m *Manager) SaveCredentials(ctx context.Context, orgID string, creds any) (string, error)\n```\n\n```go\ntype NewManagerOpts struct {\n\tAuthToken, Address, MountPath, SecretPrefix string\n\tLogger                                      log.Logger\n\tRole                                        credentials.Role\n}\n```\n\n```go\ntype Role int64\n```\n\n```go\nconst (\n\tReader Role = iota\n\tWriter\n)\n```\n\n```go\nfunc (r Role) String() string\n```\n\n","path":"github.com/chainloop-dev/chainloop/internal/credentials/vault","name":"vault","synopsis":"KeyVal V2 secrets implementation for Hashicorp Vault","isRedistributable":true}
