Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { BackendOptions map[string]any `yaml:"backend_options,omitempty"` Commands base.StringOrSlice `yaml:"commands,omitempty"` Entrypoint base.StringOrSlice `yaml:"entrypoint,omitempty"` Detached bool `yaml:"detach,omitempty"` Directory string `yaml:"directory,omitempty"` Failure string `yaml:"failure,omitempty"` Group string `yaml:"group,omitempty"` Image string `yaml:"image,omitempty"` Name string `yaml:"name,omitempty"` Pull bool `yaml:"pull,omitempty"` Settings map[string]any `yaml:"settings"` Volumes Volumes `yaml:"volumes,omitempty"` When constraint.When `yaml:"when,omitempty"` Ports []string `yaml:"ports,omitempty"` DependsOn base.StringOrSlice `yaml:"depends_on,omitempty"` // TODO make []string in 3.x Secrets Secrets `yaml:"secrets,omitempty"` // TODO make map[string]any in 3.x Environment base.SliceOrMap `yaml:"environment,omitempty"` // Docker and Kubernetes Specific Privileged bool `yaml:"privileged,omitempty"` // Undocumented CPUQuota base.StringOrInt `yaml:"cpu_quota,omitempty"` CPUSet string `yaml:"cpuset,omitempty"` Devices []string `yaml:"devices,omitempty"` DNSSearch base.StringOrSlice `yaml:"dns_search,omitempty"` DNS base.StringOrSlice `yaml:"dns,omitempty"` ExtraHosts []string `yaml:"extra_hosts,omitempty"` MemLimit base.MemStringOrInt `yaml:"mem_limit,omitempty"` MemSwapLimit base.MemStringOrInt `yaml:"memswap_limit,omitempty"` NetworkMode string `yaml:"network_mode,omitempty"` Networks Networks `yaml:"networks,omitempty"` ShmSize base.MemStringOrInt `yaml:"shm_size,omitempty"` Tmpfs []string `yaml:"tmpfs,omitempty"` }
Container defines a container.
func (*Container) IsTrustedCloneImage ¶
type ContainerList ¶
type ContainerList struct {
ContainerList []*Container
}
ContainerList denotes an ordered collection of containers.
func (*ContainerList) UnmarshalYAML ¶
func (c *ContainerList) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements the Unmarshaler interface.
type Network ¶
type Network struct { Name string `yaml:"-"` Aliases []string `yaml:"aliases,omitempty"` IPv4Address string `yaml:"ipv4_address,omitempty"` IPv6Address string `yaml:"ipv6_address,omitempty"` }
Network represents a service network in compose file.
type Networks ¶
type Networks struct {
Networks []*Network
}
Networks represents a list of service networks in compose file. It has several representation, hence this specific struct.
func (Networks) MarshalYAML ¶
MarshalYAML implements the Marshaller interface.
type Secrets ¶
type Secrets struct {
Secrets []*Secret
}
Secrets defines a collection of secrets.
func (*Secrets) UnmarshalYAML ¶
UnmarshalYAML implements the Unmarshaler interface.
type Volume ¶
type Volume struct { Source string `yaml:"-"` Destination string `yaml:"-"` AccessMode string `yaml:"-"` }
Volume represent a service volume
type Volumes ¶
type Volumes struct {
Volumes []*Volume
}
Volumes represents a list of service volumes in compose file. It has several representation, hence this specific struct.
func (Volumes) MarshalYAML ¶
MarshalYAML implements the Marshaller interface.
type Workflow ¶
type Workflow struct { When constraint.When `yaml:"when,omitempty"` Workspace Workspace `yaml:"workspace,omitempty"` Clone ContainerList `yaml:"clone,omitempty"` Steps ContainerList `yaml:"steps,omitempty"` Services ContainerList `yaml:"services,omitempty"` Labels map[string]string `yaml:"labels,omitempty"` DependsOn []string `yaml:"depends_on,omitempty"` RunsOn []string `yaml:"runs_on,omitempty"` SkipClone bool `yaml:"skip_clone"` // Undocumented Cache base.StringOrSlice `yaml:"cache,omitempty"` Networks WorkflowNetworks `yaml:"networks,omitempty"` Volumes WorkflowVolumes `yaml:"volumes,omitempty"` // Deprecated PlatformDoNotUseIt string `yaml:"platform,omitempty"` // TODO: remove in next major version // Deprecated BranchesDoNotUseIt *constraint.List `yaml:"branches,omitempty"` // TODO: remove in next major version // Deprecated PipelineDoNotUseIt ContainerList `yaml:"pipeline,omitempty"` // TODO: remove in next major version }
Workflow defines a workflow configuration.
type WorkflowNetwork ¶
type WorkflowNetwork struct { Name string `yaml:"name,omitempty"` Driver string `yaml:"driver,omitempty"` DriverOpts map[string]string `yaml:"driver_opts,omitempty"` }
WorkflowNetwork defines a container network.
type WorkflowNetworks ¶
type WorkflowNetworks struct {
WorkflowNetworks []*WorkflowNetwork
}
WorkflowNetworks defines a collection of networks.
func (*WorkflowNetworks) UnmarshalYAML ¶
func (n *WorkflowNetworks) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements the Unmarshaler interface.
type WorkflowVolume ¶
type WorkflowVolume struct { Name string `yaml:"name,omitempty"` Driver string `yaml:"driver,omitempty"` DriverOpts map[string]string `yaml:"driver_opts,omitempty"` }
WorkflowVolume defines a container volume.
type WorkflowVolumes ¶
type WorkflowVolumes struct {
WorkflowVolumes []*WorkflowVolume
}
WorkflowVolumes defines a collection of volumes.
func (*WorkflowVolumes) UnmarshalYAML ¶
func (v *WorkflowVolumes) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements the Unmarshaler interface.