Documentation ¶
Index ¶
- Constants
- type AWSClient
- func (c *AWSClient) CreateKey(ctx context.Context, keyID, keyType string, tags []*kms.Tag) (*kms.CreateKeyOutput, error)
- func (c *AWSClient) CreateSecret(_ context.Context, id, value string) (*secretsmanager.CreateSecretOutput, error)
- func (c *AWSClient) DeleteKey(ctx context.Context, keyID string) (*kms.ScheduleKeyDeletionOutput, error)
- func (c *AWSClient) DeleteSecret(_ context.Context, id string) (*secretsmanager.DeleteSecretOutput, error)
- func (c *AWSClient) DescribeKey(_ context.Context, keyID string) (*kms.DescribeKeyOutput, error)
- func (c *AWSClient) DescribeSecret(_ context.Context, id string) (tags map[string]string, metadata *entities.Metadata, err error)
- func (c *AWSClient) DestroySecret(ctx context.Context, id string) (*secretsmanager.DeleteSecretOutput, error)
- func (c *AWSClient) GetAlias(_ context.Context, keyID string) (string, error)
- func (c *AWSClient) GetPublicKey(_ context.Context, keyID string) (*kms.GetPublicKeyOutput, error)
- func (c *AWSClient) GetSecret(_ context.Context, id, version string) (*secretsmanager.GetSecretValueOutput, error)
- func (c *AWSClient) ListKeys(_ context.Context, limit int64, marker string) (*kms.ListKeysOutput, error)
- func (c *AWSClient) ListSecrets(_ context.Context, maxResults int64, nextToken string) (*secretsmanager.ListSecretsOutput, error)
- func (c *AWSClient) ListTags(_ context.Context, keyID, marker string) (*kms.ListResourceTagsOutput, error)
- func (c *AWSClient) PutSecretValue(_ context.Context, id, value string) (*secretsmanager.PutSecretValueOutput, error)
- func (c *AWSClient) RestoreKey(ctx context.Context, keyID string) (*kms.CancelKeyDeletionOutput, error)
- func (c *AWSClient) RestoreSecret(_ context.Context, id string) (*secretsmanager.RestoreSecretOutput, error)
- func (c *AWSClient) Sign(_ context.Context, keyID string, msg []byte, signingAlgorithm string) (*kms.SignOutput, error)
- func (c *AWSClient) TagResource(_ context.Context, keyID string, tags []*kms.Tag) (*kms.TagResourceOutput, error)
- func (c *AWSClient) TagSecretResource(_ context.Context, id string, tags map[string]string) (*secretsmanager.TagResourceOutput, error)
- func (c *AWSClient) UntagResource(_ context.Context, keyID string, tagKeys []*string) (*kms.UntagResourceOutput, error)
- func (c *AWSClient) UpdateSecret(_ context.Context, id, value, keyID, desc string) (*secretsmanager.UpdateSecretOutput, error)
- type Config
Constants ¶
View Source
const ( KeyStateCreating = "Creating" KeyStateEnabled = "Enabled" KeyStatePendingDeletion = "PendingDeletion" KeyStatePendingImport = "PendingImport" KeyStateUpdating = "Updating" KeyStateDisabled = "Disabled" )
View Source
const CurrentVersionMark = "AWSCURRENT"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
func (*AWSClient) CreateSecret ¶
func (c *AWSClient) CreateSecret(_ context.Context, id, value string) (*secretsmanager.CreateSecretOutput, error)
func (*AWSClient) DeleteSecret ¶
func (c *AWSClient) DeleteSecret(_ context.Context, id string) (*secretsmanager.DeleteSecretOutput, error)
func (*AWSClient) DescribeKey ¶
func (*AWSClient) DescribeSecret ¶
func (*AWSClient) DestroySecret ¶
func (c *AWSClient) DestroySecret(ctx context.Context, id string) (*secretsmanager.DeleteSecretOutput, error)
func (*AWSClient) GetPublicKey ¶
func (*AWSClient) GetSecret ¶
func (c *AWSClient) GetSecret(_ context.Context, id, version string) (*secretsmanager.GetSecretValueOutput, error)
func (*AWSClient) ListSecrets ¶
func (c *AWSClient) ListSecrets(_ context.Context, maxResults int64, nextToken string) (*secretsmanager.ListSecretsOutput, error)
func (*AWSClient) PutSecretValue ¶
func (c *AWSClient) PutSecretValue(_ context.Context, id, value string) (*secretsmanager.PutSecretValueOutput, error)
func (*AWSClient) RestoreKey ¶
func (*AWSClient) RestoreSecret ¶
func (c *AWSClient) RestoreSecret(_ context.Context, id string) (*secretsmanager.RestoreSecretOutput, error)
func (*AWSClient) TagResource ¶
func (*AWSClient) TagSecretResource ¶
func (c *AWSClient) TagSecretResource(_ context.Context, id string, tags map[string]string) (*secretsmanager.TagResourceOutput, error)
func (*AWSClient) UntagResource ¶
func (*AWSClient) UpdateSecret ¶
func (c *AWSClient) UpdateSecret(_ context.Context, id, value, keyID, desc string) (*secretsmanager.UpdateSecretOutput, error)
Click to show internal directories.
Click to hide internal directories.