Documentation
¶
Index ¶
- type BlkioConfig
- type Component
- func (c *Component) DisableHealthChecking()
- func (c *Component) GetDependencies() ([]Dependency, error)
- func (c *Component) Initialize(name string, client api.Controller, engine api.Engine)
- func (c *Component) Start(configuration *config.Configuration) error
- func (c *Component) Stop() error
- func (c *Component) WaitFor(exitChan chan<- ExitEvent)
- type ComposeProject
- type CopyConfig
- type Dependency
- type ExitEvent
- type Healthcheck
- type LoggingConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlkioConfig ¶
type BlkioConfig struct {
Weight uint16
WeightDevice []*blkiodev.WeightDevice `yaml:"weight_device"`
DeviceReadBps []*blkiodev.ThrottleDevice `yaml:"device_read_bps"`
DeviceWriteBps []*blkiodev.ThrottleDevice `yaml:"device_read_iops"`
DeviceReadIOps []*blkiodev.ThrottleDevice `yaml:"device_write_bps"`
DeviceWriteIOps []*blkiodev.ThrottleDevice `yaml:"device_write_iops"`
}
type Component ¶
type Component struct {
Image string
Entrypoint interface{}
Command interface{}
WorkingDir string `yaml:"working_dir"`
EnvFile interface{} `yaml:"env_file"`
Environment interface{}
Labels interface{}
Privileged bool
ReadOnly bool `yaml:"read_only"`
StdinOpen bool `yaml:"stdin_open"`
Tty bool
StopSignal string `yaml:"stop_signal"`
StopGracePeriod time.Duration `yaml:"stop_grace_period"`
User string
Runtime string
Tmpfs interface{}
Volumes []interface{}
Healthcheck *Healthcheck
OomScoreAdj *int `yaml:"oom_score_adj"`
OomKillDisable *bool `yaml:"oom_kill_disable"`
CapAdd []string `yaml:"cap_add"`
CapDrop []string `yaml:"cap_drop"`
GroupAdd []string `yaml:"group_add"`
SecurityOpt []string `yaml:"security_opt"`
StorageOpt map[string]string `yaml:"storage_opt"`
Sysctls interface{}
UsernsMode string `yaml:"userns_mode"`
Devices []string
DeviceCgroupRules []string `yaml:"device_cgroup_rules"`
Isolation string
MemoryLimit string `yaml:"mem_limit"`
MemoryReservation *int64 `yaml:"mem_reservation"`
MemorySwapLimit string `yaml:"memswap_limit"`
MemorySwappiness *int64 `yaml:"mem_swappiness"`
ShmSize *string `yaml:"shm_size"`
CPUs float64 `yaml:"cpus"`
CPUPeriod int64 `yaml:"cpu_period"`
CPUQuota int64 `yaml:"cpu_quota"`
CPURealtimePeriod int64 `yaml:"cpu_rt_period"`
CPURealtimeRuntime int64 `yaml:"cpu_rt_runtime"`
CpusetCpus string `yaml:"cpuset"`
CPUCount int64 `yaml:"cpu_count"`
CPUPercent int64 `yaml:"cpu_percent"`
BlkioConfig *BlkioConfig `yaml:"blkio_config"`
PidsLimit *int64 `yaml:"pids_limit"`
Ulimits map[string]interface{}
Logging *LoggingConfig
DependsOn interface{} `yaml:"depends_on"`
// the name and container ID set in runtime
Name string `yaml:"-"`
// contains filtered or unexported fields
}
func (*Component) DisableHealthChecking ¶
func (c *Component) DisableHealthChecking()
func (*Component) GetDependencies ¶
func (c *Component) GetDependencies() ([]Dependency, error)
func (*Component) Initialize ¶
type ComposeProject ¶
type CopyConfig ¶
type Dependency ¶
type Healthcheck ¶
type LoggingConfig ¶
Click to show internal directories.
Click to hide internal directories.