config

package
v0.0.0-...-b723b64 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSAccessKeyIDPattern     = "^[A-Z0-9]{20}$"
	AWSSecretAccessKeyPattern = "^[A-Za-z0-9/+=]{40}$"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalidAccessKeyID

type ErrInvalidAccessKeyID struct {
	AccessKeyID string
}

ErrInvalidAccessKeyID represents the error returned when the access key ID in user config is invalid.

func (ErrInvalidAccessKeyID) Error

func (ErrInvalidAccessKeyID) Error() string

type ErrInvalidRegion

type ErrInvalidRegion struct {
	Region string
}

ErrInvalidRegion represents the error returned when the region in user config is invalid.

func (ErrInvalidRegion) Error

func (ErrInvalidRegion) Error() string

type ErrInvalidSecretAccessKey

type ErrInvalidSecretAccessKey struct {
	SecretAccessKey string
}

ErrInvalidSecretAccessKey represents the error returned when the secret access key in user config is invalid.

func (ErrInvalidSecretAccessKey) Error

type ProfileLoader

type ProfileLoader struct{}

func NewProfileLoader

func NewProfileLoader() ProfileLoader

func (ProfileLoader) Load

func (ProfileLoader) Load(
	profile string,
	credentialsPath string,
	configPath string,
) (config.SharedConfig, error)

type UserConfigLoader

type UserConfigLoader struct{}

func NewUserConfigLoader

func NewUserConfigLoader() UserConfigLoader

func (UserConfigLoader) Load

func (UserConfigLoader) Load(userConfig *userconfig.Config) (aws.Config, error)

type UserConfigValidator

type UserConfigValidator struct{}

func NewUserConfigValidator

func NewUserConfigValidator() UserConfigValidator

func (UserConfigValidator) Validate

func (u UserConfigValidator) Validate(userConfig *userconfig.Config) error

Jump to

Keyboard shortcuts

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