Documentation ¶
Index ¶
- Constants
- Variables
- func DummyMarshall(value string) interface{}
- func FilterGlobalConfig(input []string) []string
- func RunInitFuncs(cfg *Config, initFuncs []InitFunc) error
- type CloudInit
- type Config
- type ConfigState
- type ContainerConfig
- type InitFunc
- type InterfaceConfig
- type NetworkConfig
- type SshInfo
- type UserDockerInfo
Constants ¶
View Source
const ( VERSION = "0.0.1" CONSOLE_CONTAINER = "console" DOCKER_BIN = "/usr/bin/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 (
ConfigFile = "/var/lib/rancher/conf/rancher.yml"
)
Functions ¶
func DummyMarshall ¶
func DummyMarshall(value string) interface{}
func FilterGlobalConfig ¶
func RunInitFuncs ¶
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug,omitempty"` Disable []string `yaml:"disable,omitempty"` Dns []string `yaml:"dns,flow,omitempty"` Rescue bool `yaml:"rescue,omitempty"` RescueContainer *ContainerConfig `yaml:"rescue_container,omitempty"` State ConfigState `yaml:"state,omitempty"` Userdocker UserDockerInfo `yaml:"userdocker,omitempty"` OsUpgradeChannel string `yaml:"os_upgrade_channel,omitempty"` SystemContainers []ContainerConfig `yaml:"system_containers,omitempty"` SystemDockerArgs []string `yaml:"system_docker_args,flow,omitempty"` Modules []string `yaml:"modules,omitempty"` CloudInit CloudInit `yaml:"cloud_init"` SshInfo SshInfo `yaml:"ssh"` EnabledAddons []string `yaml:"enabledAddons,omitempty"` Addons map[string]Config `yaml:"addons,omitempty"` Network NetworkConfig `yaml:"network_config,omitempty"` }
func LoadConfig ¶
func (*Config) ClearReadOnly ¶
func (c *Config) ClearReadOnly()
type ConfigState ¶
type ContainerConfig ¶
type InterfaceConfig ¶
type NetworkConfig ¶
type NetworkConfig struct { Interfaces []InterfaceConfig `yaml:"config"` PostRun *ContainerConfig `yaml:"post_run"` }
Click to show internal directories.
Click to hide internal directories.