_const

package
v4.0.0-alpha.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// VariableLocalHost is the default local host name in inventory.
	VariableLocalHost = "localhost"
	// VariableIPv4 is the ipv4 in inventory.
	VariableIPv4 = "internal_ipv4"
	// VariableIPv6 is the ipv6 in inventory.
	VariableIPv6 = "internal_ipv6"
	// VariableGroups the value is a host_name slice
	VariableGroups = "groups"
	// VariableConnector is connector parameter in inventory.
	VariableConnector = "connector"
	// VariableConnectorType is connected type for VariableConnector.
	VariableConnectorType = "type"
	// VariableConnectorHost is connected address for VariableConnector.
	VariableConnectorHost = "host"
	// VariableConnectorPort is connected address for VariableConnector.
	VariableConnectorPort = "port"
	// VariableConnectorUser is connected user for VariableConnector.
	VariableConnectorUser = "user"
	// VariableConnectorPassword is connected type for VariableConnector.
	VariableConnectorPassword = "password"
	// VariableConnectorPrivateKey is connected auth key for VariableConnector.
	VariableConnectorPrivateKey = "private_key"
	// VariableConnectorKubeconfig is connected auth key for VariableConnector.
	VariableConnectorKubeconfig = "kubeconfig"
)

variable specific key in system

View Source
const (
	// VariableInventoryName the value which defined in inventory.spec.host.
	VariableInventoryName = "inventory_name"
	// VariableHostName the value is node hostname, default VariableInventoryName.
	// If VariableInventoryName is "localhost". try to set the actual name.
	VariableHostName = "hostname"
	// VariableGlobalHosts the value is host_var which defined in inventory.
	VariableGlobalHosts = "inventory_hosts"
	// VariableGroupsAll the value is a all host_name slice of VariableGroups.
	VariableGroupsAll = "all"
)
View Source
const (
	// VariableOS the value is os information.
	VariableOS = "os"
	// VariableOSRelease the value is os-release of VariableOS.
	VariableOSRelease = "release"
	// VariableOSKernelVersion the value is kernel version of VariableOS.
	VariableOSKernelVersion = "kernel_version"
	// VariableOSHostName the value is hostname of VariableOS.
	VariableOSHostName = "hostname"
	// VariableOSArchitecture the value is architecture of VariableOS.
	VariableOSArchitecture = "architecture"
	// VariableProcess the value is process information.
	VariableProcess = "process"
	// VariableProcessCPU the value is cpu info of VariableProcess.
	VariableProcessCPU = "cpuInfo"
	// VariableProcessMemory the value is memory info of VariableProcess.
	VariableProcessMemory = "memInfo"
)
View Source
const ArtifactDir = "kubekey"

ArtifactDir is the default directory name under the working directory. It is used to store files required when executing the kubekey command (such as: docker, etcd, image packages, etc.). These files will be downloaded locally and distributed to remote nodes.

View Source
const ArtifactImagesDir = "images"

ArtifactImagesDir store images files. contains blobs and manifests.

View Source
const KubernetesDir = "kubernetes"

KubernetesDir represents the remote host directory for each kubernetes connection

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.

View Source
const (
	// VariableItem for "loop" argument when run a task.
	VariableItem = "item"
)

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.
	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 kkcorev1.Pipeline) string

RuntimeDirFromPipeline returns the absolute path of the runtime directory for specify Pipeline

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