config

package
v0.0.0-...-bbc0b7c Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config struct {
		Hostname string `koanf:"hostname"`
		Site     string `koanf:"site"`
		Remarks  string `koanf:"remarks"`
		TLSPath  string `koanf:"tls_path"`

		API struct {
			Host string `koanf:"host"`
			Port int    `koanf:"port"`
		} `koanf:"api"`

		Libvirt struct {
			Host string `koanf:"host"`
			Port int    `koanf:"port"`
		} `koanf:"libvirt"`

		Eve struct {
			Serial string `koanf:"serial"`
		} `koanf:"eve"`

		Storage map[string]struct {
			Enabled    bool   `koanf:"enabled"`
			Type       string `koanf:"type"`
			Path       string `koanf:"path"`
			Iso        bool   `koanf:"iso"`
			Disk       bool   `koanf:"disk"`
			CloudImage bool   `koanf:"cloud_image"`
			Remarks    string `koanf:"remarks"`
		} `koanf:"storage"`

		CloudInit struct {
			Enabled bool   `koanf:"enabled"`
			Type    string `koanf:"type"`
			Path    string `koanf:"path"`
		} `koanf:"cloud_init"`

		Network map[string]struct {
			Enabled bool   `koanf:"enabled"`
			Type    string `koanf:"type"`
			Remarks string `koanf:"remarks"`
		}
	}
)

Functions

func Load

func Load(configPath string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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