Documentation
¶
Index ¶
- func DisableLogging()
- func EnableLogging()
- type CreateOptions
- type CreateResult
- type DeleteOptions
- type DeleteResult
- type SaveOptions
- type SaveResult
- type Secret
- func (s Secret) Create(kmsKeyID string) (CreateResult, error)
- func (s Secret) CreateWithOptions(kmsKeyID string, opts CreateOptions) (CreateResult, error)
- func (s Secret) Save(kmsKeyID string) (SaveResult, error)
- func (s Secret) SaveWithOptions(kmsKeyID string, opts SaveOptions) (result SaveResult, err error)
- func (s Secret) Update(kmsKeyID string) (UpdateResult, error)
- func (s Secret) UpdateWithOptions(kmsKeyID string, opts UpdateOptions) (UpdateResult, error)
- type UpdateOptions
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct {
ClientRequestToken string
}
CreateOptions describes options for creating a Secret.
type CreateResult ¶
CreateResult describes the result of an attempt to create a Secret.
type DeleteOptions ¶ added in v1.1.0
type DeleteOptions struct {
RecoveryWindowInDays int
}
DeleteOptions describes options for deleting a Secret.
type DeleteResult ¶ added in v1.1.0
type DeleteResult struct { }
DeleteResult describes the result of deleting a Secret.
func DeleteSecret ¶ added in v1.1.0
func DeleteSecret(id string) (DeleteResult, error)
DeleteSecret will delete the Secret in AWS.
func DeleteSecretWithOptions ¶ added in v1.1.0
func DeleteSecretWithOptions(id string, opts DeleteOptions) (result DeleteResult, err error)
DeleteSecretWithOptions will delete the Secret in AWS with specific options.
type SaveOptions ¶
type SaveOptions struct {
ClientRequestToken string
}
SaveOptions describes options for saving a Secret.
func (SaveOptions) ToCreateOptions ¶
func (o SaveOptions) ToCreateOptions() CreateOptions
ToCreateOptions converts the SaveOptions to CreateOptions.
func (SaveOptions) ToUpdateOptions ¶
func (o SaveOptions) ToUpdateOptions() UpdateOptions
ToUpdateOptions converts the SaveOptions to UpdateOptions.
type SaveResult ¶
type SaveResult struct {
SecretARN string
}
SaveResult describes the result of an attempt to save a Secret.
type Secret ¶
Secret describes a secret.
func (Secret) Create ¶
func (s Secret) Create(kmsKeyID string) (CreateResult, error)
Create will attempt to create the Secret in AWS.
func (Secret) CreateWithOptions ¶
func (s Secret) CreateWithOptions(kmsKeyID string, opts CreateOptions) (CreateResult, error)
CreateWithOptions will attempt to create the Secret in AWS with specific options.
func (Secret) Save ¶
func (s Secret) Save(kmsKeyID string) (SaveResult, error)
Save will create/update the Secret in AWS.
func (Secret) SaveWithOptions ¶
func (s Secret) SaveWithOptions(kmsKeyID string, opts SaveOptions) (result SaveResult, err error)
SaveWithOptions will create/update the Secret in AWS with specific options.
func (Secret) Update ¶
func (s Secret) Update(kmsKeyID string) (UpdateResult, error)
Update will attempt to update the Secret in AWS.
func (Secret) UpdateWithOptions ¶
func (s Secret) UpdateWithOptions(kmsKeyID string, opts UpdateOptions) (UpdateResult, error)
UpdateWithOptions will update the Secret in AWS with specific options.
type UpdateOptions ¶
type UpdateOptions struct {
ClientRequestToken string
}
UpdateOptions describes options for updating a Secret.
type UpdateResult ¶
type UpdateResult struct {
SecretARN string
}
UpdateResult describes the result of an attempt to update a Secret.