Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HetznerViewableErrorBuilder ¶
type HetznerViewableErrorBuilder struct {
presenters.ElevenViewableErrorBuilder
}
func NewHetznerViewableErrorBuilder ¶
func NewHetznerViewableErrorBuilder() HetznerViewableErrorBuilder
func (HetznerViewableErrorBuilder) Build ¶
func (h HetznerViewableErrorBuilder) 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 Hetzner commands via the SDKConfigStaticBuilder.
It retrieves the Hetzner 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 Hetzner 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 {
Context string
}