Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextLoader ¶
type ContextLoader struct{}
func NewContextLoader ¶
func NewContextLoader() ContextLoader
func (ContextLoader) Load ¶
func (ContextLoader) Load( context string, configFilePath string, ) (*userconfig.Config, error)
type ErrContextNotFound ¶
ErrContextNotFound represents the error returned when the context passed in option was not found.
func (ErrContextNotFound) Error ¶
func (ErrContextNotFound) Error() string
type ErrInvalidAPIToken ¶
type ErrInvalidAPIToken struct {
APIToken string
}
ErrInvalidAPIToken represents the error returned when the API token in user config is invalid.
func (ErrInvalidAPIToken) Error ¶
func (ErrInvalidAPIToken) 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 TOMLConfig ¶
type TOMLConfig struct { ActiveContext string `toml:"active_context,omitempty"` Contexts []TOMLConfigContext `toml:"contexts"` }
type TOMLConfigContext ¶
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.