key

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterStatusConditionCreated  = "Created"
	ClusterStatusConditionCreating = "Creating"

	ClusterStatusConditionDeleted  = "Deleted"
	ClusterStatusConditionDeleting = "Deleting"

	ClusterStatusConditionUpdated  = "Updated"
	ClusterStatusConditionUpdating = "Updating"
)
View Source
const (
	// IDChars represents the character set used to generate cluster IDs.
	// (does not contain 1 and l, to avoid confusion)
	IDChars = "023456789abcdefghijkmnopqrstuvwxyz"
	// IDLength represents the number of characters used to create a cluster ID.
	IDLength = 5
)
View Source
const (
	ProviderAWS   = "aws"
	ProviderAzure = "azure"
	ProviderKVM   = "kvm"
)
View Source
const AppCRTemplate = `
{{- .UserConfigConfigMapCR -}}
---
{{ .UserConfigSecretCR -}}
---
{{ .AppCR -}}
`
View Source
const AppCatalogCRTemplate = `
{{- .ConfigmapCR -}}
---
{{ .SecretCR -}}
---
{{ .AppCatalogCR -}}
`
View Source
const ClusterCRsTemplate = `
{{- .ClusterCR -}}
---
{{ .AWSClusterCR -}}
---
{{ .G8sControlPlaneCR -}}
---
{{ .AWSControlPlaneCR -}}
`
View Source
const MachineDeploymentCRsTemplate = `
{{- .MachineDeploymentCR -}}
---
{{ .AWSMachineDeploymentCR -}}
`

Variables

This section is empty.

Functions

func GenerateAssetName added in v0.2.0

func GenerateAssetName(values ...string) string

func GenerateID

func GenerateID() string

func IsClusterIDInvalid added in v0.3.0

func IsClusterIDInvalid(err error) bool

IsClusterIDInvalid asserts clusterIDInvalidError.

func IsUnmashalToMapFailed added in v0.2.0

func IsUnmashalToMapFailed(err error) bool

IsUnmashalToMapFailed asserts unmashalToMapFailedError.

func ReadConfigMapYamlFromFile added in v0.2.0

func ReadConfigMapYamlFromFile(fs afero.Fs, path string) (string, error)

readConfigMapFromFile reads a configmap from a YAML file.

func ReadSecretYamlFromFile added in v0.2.0

func ReadSecretYamlFromFile(fs afero.Fs, path string) (map[string][]byte, error)

readSecretFromFile reads a configmap from a YAML file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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