common

package
v0.0.0-...-528dc70 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSecret

func CreateSecret(ctx context.Context,
	api SecretsManagerCreateSecretAPI,
	name string,
	value string,
	description string) (string, error)

This creates a secret and returns out its ARN.

func DeleteSecret

func DeleteSecret(ctx context.Context, api SecretsManagerDeleteSecretAPI, secretId string) error

func GetSecret

func GetSecret(ctx context.Context, api SecretsManagerGetSecretAPI, secretId string) (string, error)

func ListSecrets

func ListSecrets(ctx context.Context, api SecretsManagerListSecretAPI) ([]string, error)

func UpdateSecret

func UpdateSecret(ctx context.Context, api SecretsManagerUpdateSecretAPI, secretId string, newValue string) error

Types

type SecretsManagerCreateSecretAPI

type SecretsManagerCreateSecretAPI interface {
	CreateSecret(ctx context.Context,
		params *secretsmanager.CreateSecretInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error)
}

type SecretsManagerDeleteSecretAPI

type SecretsManagerDeleteSecretAPI interface {
	DeleteSecret(ctx context.Context,
		params *secretsmanager.DeleteSecretInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.DeleteSecretOutput, error)
}

type SecretsManagerGetSecretAPI

type SecretsManagerGetSecretAPI interface {
	GetSecretValue(ctx context.Context,
		params *secretsmanager.GetSecretValueInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
}

type SecretsManagerListSecretAPI

type SecretsManagerListSecretAPI interface {
	ListSecrets(ctx context.Context,
		params *secretsmanager.ListSecretsInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.ListSecretsOutput, error)
}

type SecretsManagerUpdateSecretAPI

type SecretsManagerUpdateSecretAPI interface {
	UpdateSecret(ctx context.Context,
		params *secretsmanager.UpdateSecretInput,
		optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error)
}

Jump to

Keyboard shortcuts

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