package
0.0.0-20230628214157-3bfe64699e82
Repository: https://github.com/gravitational/gravity.git
Documentation: pkg.go.dev

# Functions

NewRunner creates a new application hook runner instance.

# Constants

ApplicationPackageEnv specifies the name of the environment variable that defines the name of the application package the hook originated from.
ContainerBackupDir defines a directory mounted inside a hook container that the backup/restore hooks store/read backup results to/from.
ContainerHostBinDir is where /usr/bin directory from host gets mounted inside hook containers.
ContainerPath is the default PATH inside hook containers.
GravityDir is the root directory with gravity state.
Helm3Path is where helm3 binary gets mounted inside hook containers.
HelmDir is the directory inside hooks where helm values files is mounted.
HelmPath is where helm binary gets mounted inside hook containers.
HelmValuesFile is the name of the file with helm values.
InitContainerName is the name for the init container.
KubectlPath is where kubectl binary gets mounted inside hook containers.
PodIPEnv specifies the name of variable associated with Pod IP address.
ResourcesDir is where the app's resources directory is mounted inside a hook container.
StateDir specifies the directory for temporary state during hook's lifetime.
VolumeBackup is the name of the volume that stores results of the backup hook as mounted inside the hook container.
VolumeBin is the name of the volume with host's /usr/bin dir.
VolumeCerts is the name of the volume with host's certificates.
VolumeGravity is the name of the volume with local gravity state.
VolumeHelm is the name of the volume with helm values file.
VolumeHelm3Bin is the name of the volume with helm3 binary.
VolumeHelmBin is the name of the volume with helm binary.
VolumeKubectlBin is the name of the volume with kubectl.
VolumeResources is the name of the volume with unpacked app resources.
VolumeStateDir is the name of the volume for temporary state.

# Variables

InitContainerImage is the image for the init container.

# Structs

DeleteJobRequest combines parameters for job deletion.
JobRef is a reference to a hook job.
Params specifies hook parameters.
Runner encapsulates the process of running an application hook.