aws

package
v0.0.0-...-689dbae Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretPathExp = `^arn:.*:secretsmanager:(?P<region>[^:]+):(?P<account>[^:]+):secret:(?P<name>[^:]+)-[^-]+$`
)

Variables

This section is empty.

Functions

func CheckSecretPath

func CheckSecretPath(secretPath string) bool

func ParseSecretArn

func ParseSecretArn(secretPath string) (name, accountID, region string, err error)

Types

type AWSSM

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

func NewSecretClient

func NewSecretClient(ctx context.Context, region string) (*AWSSM, error)

func (*AWSSM) AddVersion

func (s *AWSSM) AddVersion(secretName string, secretContent []byte) (string, error)

func (*AWSSM) GetValue

func (s *AWSSM) GetValue(secretName string) ([]byte, error)

func (*AWSSM) GetVersion

func (s *AWSSM) GetVersion(secretName string, version string) (secretContent []byte, err error)

Jump to

Keyboard shortcuts

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