hetzner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 8 Imported by: 0

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

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
}

Jump to

Keyboard shortcuts

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