Documentation
¶
Index ¶
- func CalculateEJobOutputSecretPrefixAndName(secretType DeploymentSecretType, deploymentName string, containerName string, ...) (string, string)
- func CalculateSecretName(secretType DeploymentSecretType, deploymentName, name string) string
- func GetPrefixFromVersionedSecretName(name string) string
- func GetStatefulSetName(name string) string
- func GetVersionFromName(name string, offset int) (int, error)
- func GetVersionFromVersionedSecretName(name string) (int, error)
- func JobName(eJobName, podName string) (string, error)
- func OrdinalFromPodName(name string) int
- func ServiceName(deploymentName, instanceName string, index int) string
- type DeploymentSecretType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateEJobOutputSecretPrefixAndName ¶
func CalculateEJobOutputSecretPrefixAndName(secretType DeploymentSecretType, deploymentName string, containerName string, versioned bool) (string, string)
CalculateEJobOutputSecretPrefixAndName generates a Secret prefix for the output of an Extended Job given a name, and calculates the final Secret name, given a container name
func CalculateSecretName ¶
func CalculateSecretName(secretType DeploymentSecretType, deploymentName, name string) string
CalculateSecretName generates a Secret name for a given name and a deployment
func GetPrefixFromVersionedSecretName ¶
GetPrefixFromVersionedSecretName gets prefix from versioned secret name
func GetStatefulSetName ¶
GetStatefulSetName gets statefulset name from podName
func GetVersionFromName ¶
GetVersionFromName fetches version from name
func GetVersionFromVersionedSecretName ¶
GetVersionFromVersionedSecretName gets version from versioned secret name return -1 if not find valid version
func JobName ¶
JobName returns a unique, short name for a given eJob, pod(if exists) combination k8s allows 63 chars, but the pod will have -\d{6} appended
func OrdinalFromPodName ¶
OrdinalFromPodName returns ordinal from pod name
Types ¶
type DeploymentSecretType ¶
type DeploymentSecretType int
DeploymentSecretType lists all the types of secrets used in the lifecycle of a BOSHDeployment
const ( // DeploymentSecretTypeManifestWithOps is a manifest that has ops files applied DeploymentSecretTypeManifestWithOps DeploymentSecretType = iota // DeploymentSecretTypeManifestAndVars is a manifest whose variables have been interpolated DeploymentSecretTypeManifestAndVars // DeploymentSecretTypeGeneratedVariable is a BOSH variable generated using an ExtendedSecret DeploymentSecretTypeGeneratedVariable // DeploymentSecretTypeInstanceGroupResolvedProperties is a YAML file containing all properties needed to render an Instance Group DeploymentSecretTypeInstanceGroupResolvedProperties // DeploymentSecretTypeImplicitVariable is a BOSH variable provided by the user as a Secret DeploymentSecretTypeImplicitVariable // DeploymentSecretBpmInformation is a YAML file containing the BPM information for one instance group DeploymentSecretBpmInformation )
func (DeploymentSecretType) String ¶
func (s DeploymentSecretType) String() string
Source Files
¶
- names.go