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 Repositories
- type Repository
- type SshConfig
- type StateConfig
- type UpgradeConfig
Constants ¶
View Source
const ( DEFAULT_IMAGE_VERSION = "v0.3.1" 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 LABEL = "label" HASH = "io.rancher.os.hash" ID = "io.rancher.os.id" DETACH = "io.rancher.os.detach" REMOVE = "io.rancher.os.remove" CREATE_ONLY = "io.rancher.os.createonly" RELOAD_CONFIG = "io.rancher.os.reloadconfig" SCOPE = "io.rancher.os.scope" SYSTEM = "system" )
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { Environment map[string]string `yaml:"environment,omitempty"` Services map[string]*project.ServiceConfig `yaml:"services,omitempty"` BootstrapContainers map[string]*project.ServiceConfig `yaml:"bootstrap_containers,omitempty"` BootstrapDocker DockerConfig `yaml:"bootstrap_docker,omitempty"` CloudInit CloudInit `yaml:"cloud_init,omitempty"` Console ConsoleConfig `yaml:"console,omitempty"` Debug bool `yaml:"debug,omitempty"` Disable []string `yaml:"disable,omitempty"` ServicesInclude map[string]bool `yaml:"services_include,omitempty"` Modules []string `yaml:"modules,omitempty"` Network NetworkConfig `yaml:"network,omitempty"` Repositories Repositories `yaml:"repositories,omitempty"` Ssh SshConfig `yaml:"ssh,omitempty"` State StateConfig `yaml:"state,omitempty"` SystemContainers map[string]*project.ServiceConfig `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"` }
type ConsoleConfig ¶ added in v0.2.0
type ContainerConfig ¶
type ContainerConfig struct { Id string `yaml:"id,omitempty"` Cmd string `yaml:"run,omitempty"` MigrateVolumes bool `yaml:"migrate_volumes,omitempty"` ReloadConfig bool `yaml:"reload_config,omitempty"` CreateOnly bool `yaml:create_only,omitempty` Service *project.ServiceConfig `yaml:service,omitempty` }
type DnsConfig ¶ added in v0.2.0
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"` ExtraArgs []string `yaml:"extra_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"` }
func (*DockerConfig) BridgeConfig ¶ added in v0.3.0
func (d *DockerConfig) BridgeConfig() (string, string)
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 Repositories ¶ added in v0.3.0
type Repositories map[string]Repository
func (Repositories) ToArray ¶ added in v0.3.0
func (r Repositories) ToArray() []string
type SshConfig ¶ added in v0.2.0
type StateConfig ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.