config

package
v0.0.0-...-869d168 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: BSD-3-Clause Imports: 2 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 {
	Release          string
	HTTPPort         int         `json:"http_port"`
	AdminAPIToken    string      `json:"admin_api_token"`
	AdminTokenHeader string      `json:"admin_token_header"`
	GoVersion        string      `json:"go_version"`
	Filesystem       *Filesystem `json:"filesystem"`
	Network          *Network    `json:"network"`
	Jails            *Jails      `json:"jails"`
}

Config contains the parameters necessary to run sky-island

func Load

func Load(confFile string) (*Config, error)

Load prses the given file and creates a new value of type Config pointer

type Filesystem

type Filesystem struct {
	ZFSDataset  string `json:"zfs_dataset"`
	Compression bool   `json:"compression"`
}

Filesystem

type IP4

type IP4 struct {
	Interface string   `json:"interface"`
	StartAddr string   `json:"start_addr"`
	Mask      string   `json:"mask"`
	Range     int      `json:"range"`
	Gateway   string   `json:"gateway"`
	DNS       []string `json:"dns"`
}

IP4 contains necessary components for network connectivity

type Jails

type Jails struct {
	BaseJailDir            string `json:"base_jail_dir"`
	CacheDefaultExpiration string `json:"cache_default_expiration"`
	CachePurgeAfter        string `json:"cache_purge_after"`
	ChildrenMax            int    `json:"children_max"`
	MonitoringAddr         string `json:"monitoring_addr"`
	BuildTimeout           string `json:"build_timeout"`
	ExecTimeout            string `json:"exec_timeout"`
}

Jails contains necessary components to setup the necessary jails

type Network

type Network struct {
	IP4 *IP4 `json:"ip4"`
}

Network

Jump to

Keyboard shortcuts

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