awssecretsmanager

package
v0.0.0-...-82ab749 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSCURRENT                = "" // the default when no stage is given is AWSCURRENT
	ResourceExistsException   = "ResourceExistsException"
	ResourceNotFoundException = "ResourceNotFoundException"
)

Variables

This section is empty.

Functions

func CachedSecret

func CachedSecret(ctx context.Context, cfg *awscfg.Config, name, stage string) (string, error)

func DeleteSecret

func DeleteSecret(ctx context.Context, cfg *awscfg.Config, name string) error

func GetSecretValue

func GetSecretValue(ctx context.Context, cfg *awscfg.Config, name, stage string) (string, error)

func Policy

func Policy(principal *policies.Principal) *policies.Document

Types

type CreateSecretOutput

type CreateSecretOutput = secretsmanager.CreateSecretOutput

func CreateSecret

func CreateSecret(ctx context.Context, cfg *awscfg.Config, name string) (*CreateSecretOutput, error)

type DescribeSecretOutput

type DescribeSecretOutput = secretsmanager.DescribeSecretOutput

func DescribeSecret

func DescribeSecret(ctx context.Context, cfg *awscfg.Config, name string) (*DescribeSecretOutput, error)

type PutResourcePolicyOutput

type PutResourcePolicyOutput = secretsmanager.PutResourcePolicyOutput

func PutResourcePolicy

func PutResourcePolicy(ctx context.Context, cfg *awscfg.Config, name string, doc *policies.Document) (*PutResourcePolicyOutput, error)

type PutSecretValueOutput

type PutSecretValueOutput = secretsmanager.PutSecretValueOutput

func EnsureSecret

func EnsureSecret(
	ctx context.Context,
	cfg *awscfg.Config,
	name string,
	doc *policies.Document,
	stage, value string,
) (*PutSecretValueOutput, error)

func PutSecretValue

func PutSecretValue(ctx context.Context, cfg *awscfg.Config, name, stage, value string) (*PutSecretValueOutput, error)

Jump to

Keyboard shortcuts

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