Documentation
¶
Index ¶
- func CheckError(err error)
- type Aliases
- type Build
- type BuildAux
- type Command
- type CpusMem
- type Deploy
- type Dns
- type DnsSearch
- type DockerCompose
- type Entrypoint
- type EnvFile
- type Environment
- type Healthcheck
- type Limits
- type Logging
- type Networks
- type Placement
- type Port
- type Ports
- type Resources
- type RestartPolicy
- type Secret
- type Secrets
- type Service
- type Tmpfs
- type Ulimits
- type UpdateConfig
- type Volume
- type Volumes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
Types ¶
type Build ¶
type Build struct { Context string `yaml:"context,omitempty"` Dockerfile string `yaml:"dockerfile,omitempty"` Args map[string]string `yaml:"args,omitempty"` CacheFrom []string `yaml:"cache_from,omitempty"` Labels []string `yaml:"labels,omitempty"` }
func (*Build) UnmarshalYAML ¶
type Deploy ¶
type Deploy struct { Replicas int `yaml:"replicas,omitempty"` UpdateConfig UpdateConfig `yaml:"update_config,omitempty"` RestartPolicy RestartPolicy `yaml:"restart_policy,omitempty"` Mode string `yaml:"mode,omitempty"` Placement Placement `yaml:"placement,omitempty"` Resources Resources `yaml:"resources,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` }
type DockerCompose ¶
func (DockerCompose) MarshalToFile ¶
func (d DockerCompose) MarshalToFile(path string) error
func (*DockerCompose) UnmarshalFromFile ¶
func (d *DockerCompose) UnmarshalFromFile(path string) error
type Entrypoint ¶
type Entrypoint []string
func (*Entrypoint) UnmarshalYAML ¶
func (c *Entrypoint) UnmarshalYAML(unmarshal func(interface{}) error) error
type Environment ¶
func (*Environment) UnmarshalYAML ¶
func (e *Environment) UnmarshalYAML(unmarshal func(interface{}) error) error
type Healthcheck ¶
type Limits ¶
func (*Limits) UnmarshalYAML ¶
type RestartPolicy ¶
type Service ¶
type Service struct { Command Command `yaml:"command,omitempty"` Ports Ports `yaml:"ports,omitempty"` Build Build `yaml:"build,omitempty"` Image string `yaml:"image,omitempty"` Depends_on []string `yaml:"depends_on,omitempty"` Environment Environment `yaml:"environment,omitempty"` Deploy Deploy `yaml:"deploy,omitempty"` Volumes Volumes `yaml:"volumes,omitempty"` Stop_grace_period string `yaml:"stop_grace_period,omitempty"` Working_dir string `yaml:"working_dir,omitempty"` Privileged bool `yaml:"privileged,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` Expose []int `yaml:"expose,omitempty"` EnvFile EnvFile `yaml:"env_file,omitempty"` MemLimit string `yaml:"mem_limit,omitempty"` Links []string `yaml:"links,omitempty"` CapAdd []string `yaml:"cap_add,omitempty"` CapDrop []string `yaml:"cap_drop,omitempty"` Logging Logging `yaml:"logging,omitempty"` CgroupParent string `yaml:"cgroup_parent,omitempty"` ContainerName string `yaml:"container_name,omitempty"` Devices []string `yaml:"devices,omitempty"` Dns Dns `yaml:"dns,omitempty"` DnsSearch DnsSearch `yaml:"dns_search,omitempty"` Entrypoint Entrypoint `yaml:"entrypoint,omitempty"` ExternalLinks []string `yaml:"external_links,omitempty"` ExtraHosts []string `yaml:"extra_hosts,omitempty"` Isolation string `yaml:"isolation,omitempty"` Networks Networks `yaml:"networks,omitempty"` Pid string `yaml:"pid,omitempty"` Secrets Secrets `yaml:"secrets,omitempty"` SecurityOpt []string `yaml:"security_opt,omitempty"` StopSignal string `yaml:"stop_signal,omitempty"` Sysctls map[string]string `yaml:"sysctls,omitempty"` Tmpfs Tmpfs `yaml:"tmpfs,omitempty"` UsernsMode string `yaml:"userns_mode,omitempty"` Ulimits Ulimits `yaml:"ulimits,omitempty"` Healthcheck Healthcheck `yaml:"healthcheck,omitempty"` }
type UpdateConfig ¶
Source Files
¶
- DnsSearch.go
- aliases.go
- build.go
- command.go
- cpus-mem.go
- custom-yaml-unmarshaler.go
- deploy.go
- dns.go
- docker-compose-base.go
- entrypoint.go
- env-file.go
- environment.go
- healthcheck.go
- limits.go
- logging.go
- networks.go
- placement.go
- port.go
- resources.go
- restart-policy.go
- secrets.go
- service.go
- tmpfs.go
- ulimits.go
- update-config.go
- utils.go
- volumes.go
Click to show internal directories.
Click to hide internal directories.