Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Nextlinux Nextlinux `yaml:"nextlinux" mapstructure:"nextlinux"` // Nextlinux provides connection details for requests to Nextlinux
}
Application is the main nextlinuxctl application configuration.
func LoadApplicationConfig ¶
func LoadApplicationConfig(v *viper.Viper) (*Application, error)
LoadApplicationConfig populates the given viper object with application configuration discovered on disk
func (Application) String ¶
func (cfg Application) String() string
type HTTPConfig ¶
type HTTPConfig struct { Insecure bool `yaml:"insecure" mapstructure:"insecure"` TimeoutSeconds int `yaml:"timeoutSeconds" mapstructure:"timeoutSeconds"` }
Configurations for the HTTP Client itself (net/http)
type Nextlinux ¶
type Nextlinux struct { URL string `yaml:"url" mapstructure:"url"` User string `yaml:"user" mapstructure:"user"` Password string `yaml:"password" mapstructure:"password"` Account string `yaml:"account" mapstructure:"account"` HTTP HTTPConfig `yaml:"http" mapstructure:"http"` }
Information for posting in-use image details to Nextlinux (or any URL for that matter)
Click to show internal directories.
Click to hide internal directories.