Documentation ¶
Index ¶
- Constants
- Variables
- func DummyMarshall(value string) interface{}
- func Dump(private, full bool) (string, error)
- func FilterGlobalConfig(input []string) []string
- func RunInitFuncs(cfg *Config, initFuncs []InitFunc) error
- type CloudInit
- type Config
- type ConsoleConfig
- type ContainerConfig
- type DnsConfig
- type DockerConfig
- type InitFunc
- type InterfaceConfig
- type NetworkConfig
- type SshConfig
- type StateConfig
- type UpgradeConfig
Constants ¶
View Source
const ( VERSION = "0.2.0" CONSOLE_CONTAINER = "console" DOCKER_BIN = "/usr/bin/docker" DOCKER_SYSTEM_HOME = "/var/lib/system-docker" DOCKER_SYSTEM_HOST = "unix:///var/run/system-docker.sock" DOCKER_HOST = "unix:///var/run/docker.sock" IMAGES_PATH = "/" IMAGES_PATTERN = "images*.tar" SYS_INIT = "/sbin/init-sys" USER_INIT = "/sbin/init-user" MODULES_ARCHIVE = "/modules.tar" DEBUG = false )
Variables ¶
View Source
var ( CloudConfigFile = "/var/lib/rancher/conf/cloud-config-rancher.yml" ConfigFile = "/var/lib/rancher/conf/rancher.yml" PrivateConfigFile = "/var/lib/rancher/conf/rancher-private.yml" )
Functions ¶
func DummyMarshall ¶
func DummyMarshall(value string) interface{}
func FilterGlobalConfig ¶
func RunInitFuncs ¶
Types ¶
type Config ¶
type Config struct { Addons map[string]Config `yaml:"addons,omitempty"` BootstrapContainers []ContainerConfig `yaml:"bootstrap_containers,omitempty"` CloudInit CloudInit `yaml:"cloud_init,omitempty"` Console ConsoleConfig `yaml:"console,omitempty"` Debug bool `yaml:"debug,omitempty"` Disable []string `yaml:"disable,omitempty"` EnabledAddons []string `yaml:"enabled_addons,omitempty"` Modules []string `yaml:"modules,omitempty"` Network NetworkConfig `yaml:"network,omitempty"` Ssh SshConfig `yaml:"ssh,omitempty"` State StateConfig `yaml:"state,omitempty"` SystemContainers []ContainerConfig `yaml:"system_containers,omitempty"` SystemDocker DockerConfig `yaml:"system_docker,omitempty"` Upgrade UpgradeConfig `yaml:"upgrade,omitempty"` UserContainers []ContainerConfig `yaml:"user_containers,omitempty"` UserDocker DockerConfig `yaml:"user_docker,omitempty"` }
func LoadConfig ¶
type ConsoleConfig ¶ added in v0.2.0
type ContainerConfig ¶
type DockerConfig ¶ added in v0.2.0
type DockerConfig struct { TLS bool `yaml:"tls,omitempty"` TLSArgs []string `yaml:"tls_args,flow,omitempty"` Args []string `yaml:"args,flow,omitempty"` ServerCert string `yaml:"server_cert,omitempty"` ServerKey string `yaml:"server_key,omitempty"` CACert string `yaml:"ca_cert,omitempty"` CAKey string `yaml:"ca_key,omitempty"` }
type InterfaceConfig ¶
type NetworkConfig ¶
type NetworkConfig struct { Dns DnsConfig `yaml:"dns,omitempty"` Interfaces map[string]InterfaceConfig `yaml:"interfaces,omitempty"` PostRun *ContainerConfig `yaml:"post_run,omitempty"` }
type StateConfig ¶ added in v0.2.0
type UpgradeConfig ¶ added in v0.2.0
type UpgradeConfig struct {
Url string `yaml:"url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.