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 ¶
func (ErrInvalidSecretAccessKey) Error() string
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
Click to show internal directories.
Click to hide internal directories.