Documentation ¶
Overview ¶
Package parser is an implementation of yaml parser.
Package parser is an implementation of yaml parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployNode ¶
type DeployNode struct { // NodeType defines the type of the DockerNode. NodeType Applications []yaml.Application }
DeployNode is the type for deploy section in yml.
type DockerNode ¶
type DockerNode struct { // NodeType defines the type of the DockerNode. NodeType // Name of the node, when the node is running, the name is used to // service discovery. Name string // Commands is only for BuildNode and PreBuildNode, to support command list. Commands []string Image string Pull bool Privileged bool Environment []string Ports []string Links []string Entrypoint []string Command []string Volumes []string Devices []string ExtraHosts []string Net string DNS []string AuthConfig yaml.AuthConfig Memory int64 CPUSetCPUs string OomKillDisable bool Outputs []string DockerfilePath string DockerfileName string Vargs map[string]interface{} }
DockerNode represents a Docker container that should be launched as part of the build process.
type Tree ¶
type Tree struct { Root *ListNode // Now deploy is independent with CI. DeployConfig *DeployNode NumberContatiner int }
Tree is the representation of a parsed build configuration Yaml file.
func ParseString ¶
ParseString parses the Yaml build definition file and returns an execution Tree.
Click to show internal directories.
Click to hide internal directories.