Versions in this module Expand all Collapse all v2 v2.0.2 Apr 8, 2024 Changes in this version + const CacheControl + const ChunkSize + const MetadataIDKey + const MetadataKMSKey + const ReferencePrefixSecretManager + const ReferencePrefixStorage + func Access(ctx context.Context, i accessRequest) ([]byte, error) + func Bootstrap(ctx context.Context, i bootstrapRequest) error + func Delete(ctx context.Context, i deleteRequest) error + func Grant(ctx context.Context, i grantRequest) error + func IsReference(s string) bool + func IsSecretAlreadyExistsErr(err error) bool + func IsSecretDoesNotExistErr(err error) bool + func IsSecretManagerReference(s string) bool + func IsSecretModifiedErr(err error) bool + func IsStorageReference(s string) bool + func Replace(ctx context.Context, key string) error + func Resolve(ctx context.Context, s string) ([]byte, error) + func Revoke(ctx context.Context, i revokeRequest) error + type AccessRequest = StorageAccessRequest + type BootstrapRequest = StorageBootstrapRequest + type Client struct + func New(ctx context.Context, opts ...option.ClientOption) (*Client, error) + func (c *Client) Access(ctx context.Context, i accessRequest) ([]byte, error) + func (c *Client) Bootstrap(ctx context.Context, i bootstrapRequest) error + func (c *Client) Create(ctx context.Context, i createRequest) (*Secret, error) + func (c *Client) Delete(ctx context.Context, i deleteRequest) error + func (c *Client) Grant(ctx context.Context, i grantRequest) error + func (c *Client) List(ctx context.Context, i listRequest) (*ListResponse, error) + func (c *Client) Read(ctx context.Context, i readRequest) (*Secret, error) + func (c *Client) Replace(ctx context.Context, key string) error + func (c *Client) Resolve(ctx context.Context, s string) ([]byte, error) + func (c *Client) Revoke(ctx context.Context, i revokeRequest) error + func (c *Client) Update(ctx context.Context, i updateRequest) (*Secret, error) + type CreateRequest = StorageCreateRequest + type DeleteRequest = StorageDeleteRequest + type Error string + func (e Error) Error() string + type GrantRequest = StorageGrantRequest + type ListRequest = StorageListRequest + type ListResponse struct + Secrets []*Secret + func List(ctx context.Context, i listRequest) (*ListResponse, error) + type ReadRequest = StorageReadRequest + type Reference struct + func ParseReference(s string) (*Reference, error) + func (r *Reference) Bucket() string + func (r *Reference) Filepath() string + func (r *Reference) Generation() int64 + func (r *Reference) Name() string + func (r *Reference) Object() string + func (r *Reference) Project() string + func (r *Reference) String() string + func (r *Reference) Type() ReferenceType + func (r *Reference) Version() string + type ReferenceType int8 + const ReferenceTypeSecretManager + const ReferenceTypeStorage + type RevokeRequest = StorageRevokeRequest + type Secret struct + Generation int64 + KMSKey string + Locations []string + Metageneration int64 + Name string + Parent string + Plaintext []byte + UpdatedAt time.Time + Version string + func Create(ctx context.Context, i createRequest) (*Secret, error) + func Read(ctx context.Context, i readRequest) (*Secret, error) + func Update(ctx context.Context, i updateRequest) (*Secret, error) + type SecretManagerAccessRequest struct + Name string + Project string + Version string + type SecretManagerBootstrapRequest struct + type SecretManagerCreateRequest struct + Locations []string + Name string + Plaintext []byte + Project string + type SecretManagerDeleteRequest struct + Name string + Project string + type SecretManagerGrantRequest struct + Members []string + Name string + Project string + type SecretManagerListRequest struct + Prefix string + Project string + Versions bool + type SecretManagerReadRequest struct + Name string + Project string + Version string + type SecretManagerRevokeRequest struct + Members []string + Name string + Project string + type SecretManagerUpdateRequest struct + CreateIfMissing bool + Name string + Plaintext []byte + Project string + type StorageAccessRequest struct + Bucket string + Generation int64 + Object string + type StorageBootstrapRequest struct + Bucket string + BucketLocation string + KMSCryptoKey string + KMSKeyRing string + KMSLocation string + ProjectID string + type StorageCreateRequest struct + Bucket string + Key string + Object string + Plaintext []byte + type StorageDeleteRequest struct + Bucket string + Object string + type StorageGrantRequest struct + Bucket string + Members []string + Object string + type StorageListRequest struct + Bucket string + Generations bool + Prefix string + type StorageReadRequest struct + Bucket string + Generation int64 + Object string + type StorageRevokeRequest struct + Bucket string + Members []string + Object string + type StorageUpdateRequest struct + Bucket string + CreateIfMissing bool + Generation int64 + Key string + Metageneration int64 + Object string + Plaintext []byte + type UpdateRequest = StorageUpdateRequest Other modules containing this package github.com/GoogleCloudPlatform/berglas