secretsmanager

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package secretsmanager provides a client to make API requests to AWS Secrets Manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrSecretAlreadyExists

type ErrSecretAlreadyExists struct {
	// contains filtered or unexported fields
}

ErrSecretAlreadyExists occurs if a secret with the same name already exists.

func (*ErrSecretAlreadyExists) Error

func (err *ErrSecretAlreadyExists) Error() string

type SecretsManager

type SecretsManager struct {
	// contains filtered or unexported fields
}

SecretsManager wraps the AWS SecretManager client.

func New

func New() (*SecretsManager, error)

New returns a SecretsManager configured with the default session.

func (*SecretsManager) CreateSecret

func (s *SecretsManager) CreateSecret(secretName, secretString string) (string, error)

CreateSecret creates a secret using the default KMS key "aws/secretmanager" to encrypt the secret and returns its ARN.

func (*SecretsManager) DeleteSecret

func (s *SecretsManager) DeleteSecret(secretName string) error

DeleteSecret force removes the secret from SecretsManager.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL