Documentation ¶
Index ¶
Constants ¶
const ( VariableHostName = "inventory_name" // VariableGlobalHosts the key is host_name, the value is host_var which defined in inventory. VariableGlobalHosts = "inventory_hosts" // VariableGroups the key is group's name, the value is a host_name slice VariableGroups = "groups" )
variable specific key of top level
const LocalHostName = "localhost"
LocalHostName is the default local host name in inventory.
const ProjectDir = "projects"
ProjectDir is a fixed directory name under workdir, used to store the Ansible project.
const ProjectPlaybooksDir = "playbooks"
ProjectPlaybooksDir is a fixed directory name under ansible-project. used to store executable playbook files.
const ProjectRolesDefaultsDir = "defaults"
ProjectRolesDefaultsDir is a fixed directory name under roleName. it set default variables to role.
const ProjectRolesDefaultsMainFile = "main"
ProjectRolesDefaultsMainFile is a fixed file under defaults. support *.yaml or *yml
const ProjectRolesDir = "roles"
ProjectRolesDir is a fixed directory name under ansible-project. used to store roles which playbook need.
const ProjectRolesFilesDir = "files"
ProjectRolesFilesDir is a fixed directory name under roleName. used to store files which task need.
const ProjectRolesTasksDir = "tasks"
ProjectRolesTasksDir is a fixed directory name under roleName. used to store task which role need.
const ProjectRolesTasksMainFile = "main"
ProjectRolesTasksMainFile is a fixed file under tasks. it must run if the role run. support *.yaml or *yml
const ProjectRolesTemplateDir = "templates"
ProjectRolesTemplateDir is a fixed directory name under roleName. used to store template which task need.
const RuntimeDir = "runtime"
RuntimeDir is a fixed directory name under workdir, used to store the runtime data of the current task execution.
const RuntimePipelineDir = "pipelines"
RuntimePipelineDir store Pipeline resources
const RuntimePipelineVariableDir = "variable"
RuntimePipelineVariableDir is a fixed directory name under runtime, used to store the task execution parameters.
Variables ¶
var ( // Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered. // NOTE: If you are copying this file to start a new api group, STOP! Copy the // extensions group instead. This Scheme is special and should appear ONLY in // the api group, unless you really know what you're doing. // TODO(lavalamp): make the above error impossible. Scheme = newScheme() // Codecs provides access to encoding and decoding for the scheme Codecs = serializer.NewCodecFactory(Scheme) // ParameterCodec handles versioning of objects that are converted to query parameters. ParameterCodec = runtime.NewParameterCodec(Scheme) )
Functions ¶
func GetRuntimeDir ¶
func GetRuntimeDir() string
GetRuntimeDir returns the absolute path of the runtime directory.
func RuntimeDirFromPipeline ¶
Types ¶
This section is empty.