config

package
v0.0.0-...-8d63406 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

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