Versions in this module Expand all Collapse all v2 v2.11.1 Oct 5, 2022 Changes in this version + const BucketEnvVar + const CustomSSMEndpointEnvVar + const DefaultKeyID + const DefaultMinThrottleDelay + const MaximumVersions + const RegionEnvVar + var ErrSecretNotFound = errors.New("secret not found") + type ChangeEvent struct + Time time.Time + Type ChangeEventType + User string + Version int + type ChangeEventType int + const Created + const Updated + func (c ChangeEventType) String() string + type LatestIndexFile struct + Latest map[string]LatestValue + type LatestValue struct + KMSAlias string + Value string + Version int + type NullStore struct + func NewNullStore() *NullStore + func (s *NullStore) Delete(id SecretId) error + func (s *NullStore) History(id SecretId) ([]ChangeEvent, error) + func (s *NullStore) List(service string, includeValues bool) ([]Secret, error) + func (s *NullStore) ListRaw(service string) ([]RawSecret, error) + func (s *NullStore) ListServices(service string, includeSecretNames bool) ([]string, error) + func (s *NullStore) Read(id SecretId, version int) (Secret, error) + func (s *NullStore) Write(id SecretId, value string) error + type RawSecret struct + Key string + Value string + type S3KMSStore struct + func NewS3KMSStore(numRetries int, bucket string, kmsKeyAlias string) (*S3KMSStore, error) + func (s *S3KMSStore) Delete(id SecretId) error + func (s *S3KMSStore) List(service string, includeValues bool) ([]Secret, error) + func (s *S3KMSStore) ListRaw(service string) ([]RawSecret, error) + func (s *S3KMSStore) ListServices(service string, includeSecretName bool) ([]string, error) + func (s *S3KMSStore) Write(id SecretId, value string) error + type S3Store struct + func NewS3Store(numRetries int) (*S3Store, error) + func NewS3StoreWithBucket(numRetries int, bucket string) (*S3Store, error) + func (s *S3Store) Delete(id SecretId) error + func (s *S3Store) History(id SecretId) ([]ChangeEvent, error) + func (s *S3Store) List(service string, includeValues bool) ([]Secret, error) + func (s *S3Store) ListRaw(service string) ([]RawSecret, error) + func (s *S3Store) ListServices(service string, includeSecretName bool) ([]string, error) + func (s *S3Store) Read(id SecretId, version int) (Secret, error) + func (s *S3Store) Write(id SecretId, value string) error + type SSMStore struct + func NewSSMStore(numRetries int) (*SSMStore, error) + func NewSSMStoreWithMinThrottleDelay(numRetries int, minThrottleDelay time.Duration) (*SSMStore, error) + func (s *SSMStore) Delete(id SecretId) error + func (s *SSMStore) History(id SecretId) ([]ChangeEvent, error) + func (s *SSMStore) KMSKey() string + func (s *SSMStore) List(serviceName string, includeValues bool) ([]Secret, error) + func (s *SSMStore) ListRaw(serviceName string) ([]RawSecret, error) + func (s *SSMStore) ListServices(service string, includeSecretName bool) ([]string, error) + func (s *SSMStore) Read(id SecretId, version int) (Secret, error) + func (s *SSMStore) Write(id SecretId, value string) error + type Secret struct + Meta SecretMetadata + Value *string + type SecretId struct + Key string + Service string + type SecretMetadata struct + Created time.Time + CreatedBy string + Key string + Version int + type SecretsManagerStore struct + func NewSecretsManagerStore(numRetries int) (*SecretsManagerStore, error) + func (s *SecretsManagerStore) Delete(id SecretId) error + func (s *SecretsManagerStore) History(id SecretId) ([]ChangeEvent, error) + func (s *SecretsManagerStore) List(serviceName string, includeValues bool) ([]Secret, error) + func (s *SecretsManagerStore) ListRaw(serviceName string) ([]RawSecret, error) + func (s *SecretsManagerStore) ListServices(service string, includeSecretName bool) ([]string, error) + func (s *SecretsManagerStore) Read(id SecretId, version int) (Secret, error) + func (s *SecretsManagerStore) Write(id SecretId, value string) error + type Store interface + Delete func(id SecretId) error + History func(id SecretId) ([]ChangeEvent, error) + List func(service string, includeValues bool) ([]Secret, error) + ListRaw func(service string) ([]RawSecret, error) + ListServices func(service string, includeSecretName bool) ([]string, error) + Read func(id SecretId, version int) (Secret, error) + Write func(id SecretId, value string) error Other modules containing this package github.com/dbirks/chamber