names

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func GetPrefixFromVersionedSecretName(name string) string

GetPrefixFromVersionedSecretName gets prefix from versioned secret name

func GetStatefulSetName

func GetStatefulSetName(name string) string

GetStatefulSetName gets statefulset name from podName

func GetVersionFromName

func GetVersionFromName(name string, offset int) (int, error)

GetVersionFromName fetches version from name

func GetVersionFromVersionedSecretName

func GetVersionFromVersionedSecretName(name string) (int, error)

GetVersionFromVersionedSecretName gets version from versioned secret name return -1 if not find valid version

func JobName

func JobName(eJobName, podName string) (string, error)

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

func OrdinalFromPodName(name string) int

OrdinalFromPodName returns ordinal from pod name

func ServiceName

func ServiceName(deploymentName, instanceName string, index int) string

ServiceName returns a unique, short name for a given instance

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

Jump to

Keyboard shortcuts

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