config

package
v0.0.2-0...-cd8339c Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindIP            string                  `yaml:"bind_ip" json:"bind_ip"`
	ManagementIp      string                  `yaml:"management_ip" json:"management_ip"`
	DNS               string                  `yaml:"dns" json:"dns"`
	DHCPRange         string                  `yaml:"dhcp_range" json:"dhcp_range"`
	DHCPServerPort    int                     `yaml:"dhcp_server_port" json:"dhcp_server_port"`
	TFTPServerPort    int                     `yaml:"tftp_server_port" json:"tftp_server_port"`
	HTTPPort          int                     `yaml:"http_port" json:"http_port"`
	NTPServer         string                  `yaml:"ntp_server" json:"ntp_server"`
	Nics              map[string]ServerConfig `yaml:"nics" json:"nics"`
	BootFile          string                  `yaml:"boot_file" json:"boot_file"`
	LeaseTime         int                     `yaml:"lease_time" json:"lease_time"`
	RootPath          string                  `yaml:"root_path" json:"root_path"`
	DHCPInterface     string                  `yaml:"dhcp_interface" json:"dhcp_interface"`
	Password          string                  `yaml:"password" json:"password"`
	BootConfigFile    string                  `yaml:"boot_config_file" json:"boot_config_file"`
	KickStartTemplate string                  `yaml:"kickstart_template" json:"kickstart_template"`
}

func LoadConfig

func LoadConfig(reader io.Reader) (*Config, error)

type ServerConfig

type ServerConfig struct {
	Ip       string `yaml:"ip" json:"ip"`
	Hostname string `yaml:"hostname" json:"hostname"`
	Gateway  string `yaml:"gateway" json:"gateway"`
	Netmask  string `yaml:"netmask" json:"netmask"`
}

Jump to

Keyboard shortcuts

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