Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSViewableErrorBuilder ¶
type AWSViewableErrorBuilder struct {
presenters.ElevenViewableErrorBuilder
}
func NewAWSViewableErrorBuilder ¶
func NewAWSViewableErrorBuilder() AWSViewableErrorBuilder
func (AWSViewableErrorBuilder) Build ¶
func (a AWSViewableErrorBuilder) Build(err error) (viewableError *views.ViewableError)
type UserConfigEnvVarsResolver ¶
type UserConfigEnvVarsResolver interface {
Resolve() (*userconfig.Config, error)
}
type UserConfigFilesResolver ¶
type UserConfigFilesResolver interface {
Resolve() (*userconfig.Config, error)
}
type UserConfigLocalResolver ¶
type UserConfigLocalResolver struct {
// contains filtered or unexported fields
}
UserConfigLocalResolver represents the default implementation of the UserConfigResolver interface, used by most AWS commands via the SDKConfigStaticBuilder.
It retrieves the AWS account configuration from environment variables (via the UserConfigLocalEnvVarsResolver interface) and fallback to config files (via the UserConfigLocalFilesResolver interface) otherwise.
func NewUserConfigLocalResolver ¶
func NewUserConfigLocalResolver( envVarsResolver UserConfigEnvVarsResolver, configFilesResolver UserConfigFilesResolver, opts UserConfigLocalResolverOpts, ) UserConfigLocalResolver
NewUserConfigLocalResolver constructs the UserConfigLocalResolver struct. Used by Wire in dependencies.
func (UserConfigLocalResolver) Resolve ¶
func (u UserConfigLocalResolver) Resolve() (*userconfig.Config, error)
Resolve retrieves the AWS account configuration from environment variables and fallback to config files if no environment variables were found.
If the Profile option is set, environment variables are ignored and the profile is directly loaded from config files.
type UserConfigLocalResolverOpts ¶
type UserConfigLocalResolverOpts struct {
Profile string
}