_const

package
v4.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
const LocalHostName = "localhost"

LocalHostName is the default local host name in inventory.

View Source
const ProjectDir = "projects"

ProjectDir is a fixed directory name under workdir, used to store the Ansible project.

View Source
const ProjectPlaybooksDir = "playbooks"

ProjectPlaybooksDir is a fixed directory name under ansible-project. used to store executable playbook files.

View Source
const ProjectRolesDefaultsDir = "defaults"

ProjectRolesDefaultsDir is a fixed directory name under roleName. it set default variables to role.

View Source
const ProjectRolesDefaultsMainFile = "main"

ProjectRolesDefaultsMainFile is a fixed file under defaults. support *.yaml or *yml

View Source
const ProjectRolesDir = "roles"

ProjectRolesDir is a fixed directory name under ansible-project. used to store roles which playbook need.

View Source
const ProjectRolesFilesDir = "files"

ProjectRolesFilesDir is a fixed directory name under roleName. used to store files which task need.

View Source
const ProjectRolesTasksDir = "tasks"

ProjectRolesTasksDir is a fixed directory name under roleName. used to store task which role need.

View Source
const ProjectRolesTasksMainFile = "main"

ProjectRolesTasksMainFile is a fixed file under tasks. it must run if the role run. support *.yaml or *yml

View Source
const ProjectRolesTemplateDir = "templates"

ProjectRolesTemplateDir is a fixed directory name under roleName. used to store template which task need.

View Source
const RuntimeDir = "runtime"

RuntimeDir is a fixed directory name under workdir, used to store the runtime data of the current task execution.

View Source
const RuntimePipelineDir = "pipelines"

RuntimePipelineDir store Pipeline resources

View Source
const RuntimePipelineVariableDir = "variable"

RuntimePipelineVariableDir is a fixed directory name under runtime, used to store the task execution parameters.

Variables

View Source
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 GetWorkDir

func GetWorkDir() string

GetWorkDir returns the workdir.

func RuntimeDirFromPipeline

func RuntimeDirFromPipeline(obj kubekeyv1.Pipeline) string

func SetWorkDir

func SetWorkDir(wd string)

SetWorkDir sets the workdir once.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL