aws

package
v0.0.0-...-71d9b56 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoZoneFound   = errors.New("no zone found")
	ErrNoRecordFound = errors.New("no record found")
)

Functions

func CreateZone

func CreateZone(ctx context.Context, domain string, r53 *route53.Client) (string, error)

func GetAccountID

func GetAccountID(arn string) string

func GetRecordsValue

func GetRecordsValue(ctx context.Context, zoneId, name string, recordType types.RRType, r53 *route53.Client) ([]string, error)

func GetZoneIdFromDomain

func GetZoneIdFromDomain(ctx context.Context, domain string, r53 *route53.Client) (string, error)

func IsParameterNotFoundError

func IsParameterNotFoundError(err error) bool

func IsS3NoSuchKeyError

func IsS3NoSuchKeyError(err error) bool

func LoadDefaultConfig

func LoadDefaultConfig(ctx context.Context, region Region) (aws.Config, error)

Types

type Aws

type Aws struct {
	Region Region
}

func (*Aws) DeleteSecrets

func (a *Aws) DeleteSecrets(ctx context.Context, names ...string) error

func (*Aws) IsValidSecret

func (a *Aws) IsValidSecret(ctx context.Context, name string) (bool, error)

func (*Aws) ListSecrets

func (a *Aws) ListSecrets(ctx context.Context) ([]string, error)

func (*Aws) ListSecretsByPrefix

func (a *Aws) ListSecretsByPrefix(ctx context.Context, prefix string) ([]string, error)

func (*Aws) LoadConfig

func (a *Aws) LoadConfig(ctx context.Context) (aws.Config, error)

func (*Aws) PutSecret

func (a *Aws) PutSecret(ctx context.Context, name, value string) error

type Region

type Region string

func (Region) String

func (r Region) String() string

Directories

Path Synopsis
ecs
cfn

Jump to

Keyboard shortcuts

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