Documentation
¶
Index ¶
- func ParseLabel(in []byte) map[string]string
- func ParseLabelString(in string) map[string]string
- func ParsePlatform(in []byte) string
- func ParsePlatformDefault(in []byte, platform string) string
- func ParsePlatformString(in string) string
- type Auth
- type Axis
- type Build
- type Config
- type Constraint
- type ConstraintMap
- type Constraints
- type Container
- type Matrix
- type Network
- type Volume
- type Workspace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLabel ¶ added in v0.5.0
ParseLabel parses the labels section of the Yaml document.
func ParseLabelString ¶ added in v0.5.0
ParseLabelString parses the labels section of the Yaml document.
func ParsePlatform ¶ added in v0.5.0
ParsePlatform parses the platform section of the Yaml document.
func ParsePlatformDefault ¶ added in v0.5.0
ParsePlatformDefault parses the platform section of the Yaml document.
func ParsePlatformString ¶ added in v0.5.0
ParsePlatformString parses the platform section of the Yaml document.
Types ¶
type Axis ¶ added in v0.4.2
Axis represents a single permutation of entries from the build matrix.
func ParseMatrix ¶ added in v0.4.2
ParseMatrix parses the Yaml matrix definition.
func ParseMatrixString ¶ added in v0.4.2
ParseMatrixString parses the Yaml string matrix definition.
type Build ¶ added in v0.5.0
Build represents Docker image build instructions.
func (*Build) UnmarshalYAML ¶ added in v0.5.0
UnmarshalYAML implements custom Yaml unmarshaling.
type Config ¶
type Config struct {
Image string
Build *Build
Workspace *Workspace
Pipeline []*Container
Services []*Container
Volumes []*Volume
Networks []*Network
}
Config represents the build configuration Yaml document.
func ParseString ¶ added in v0.5.0
ParseString parses the Yaml configuration document.
type Constraint ¶ added in v0.5.0
Constraint defines an individual constraint.
func ParseBranch ¶ added in v0.4.2
func ParseBranch(in []byte) Constraint
ParseBranch parses the branch section of the Yaml document.
func ParseBranchString ¶ added in v0.4.2
func ParseBranchString(in string) Constraint
ParseBranchString parses the branch section of the Yaml document.
func (*Constraint) Excludes ¶ added in v0.5.0
func (c *Constraint) Excludes(v string) bool
Excludes returns true if the string matches matches the exclude patterns.
func (*Constraint) Includes ¶ added in v0.5.0
func (c *Constraint) Includes(v string) bool
Includes returns true if the string matches matches the include patterns.
func (*Constraint) Match ¶ added in v0.5.0
func (c *Constraint) Match(v string) bool
Match returns true if the string matches the include patterns and does not match any of the exclude patterns.
func (*Constraint) UnmarshalYAML ¶ added in v0.5.0
func (c *Constraint) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements custom Yaml unmarshaling.
type ConstraintMap ¶ added in v0.5.0
ConstraintMap defines an individual constraint for key value structures.
func (*ConstraintMap) Match ¶ added in v0.5.0
func (c *ConstraintMap) Match(params map[string]string) bool
Match returns true if the params matches the include key values and does not match any of the exclude key values.
func (*ConstraintMap) UnmarshalYAML ¶ added in v0.5.0
func (c *ConstraintMap) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements custom Yaml unmarshaling.
type Constraints ¶ added in v0.5.0
type Constraints struct {
Repo Constraint
Ref Constraint
Platform Constraint
Environment Constraint
Event Constraint
Branch Constraint
Status Constraint
Matrix ConstraintMap
Local types.BoolTrue
}
Constraints define constraints for container execution.
type Container ¶ added in v0.5.0
type Container struct {
ID string
Name string
Image string
Build string
Pull bool
AuthConfig Auth
Detached bool
Disabled bool
Privileged bool
WorkingDir string
Environment map[string]string
Labels map[string]string
Entrypoint []string
Command []string
Commands []string
ExtraHosts []string
Volumes []string
VolumesFrom []string
Devices []string
Network string
DNS []string
DNSSearch []string
MemSwapLimit int64
MemLimit int64
ShmSize int64
CPUQuota int64
CPUSet string
OomKillDisable bool
Constraints Constraints
Vargs map[string]interface{}
}
Container defines a Docker container.