common

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROVIDER_AWS       = "provider-aws"
	PROVIDER_AZURE     = "provider-azure"
	PROVIDER_GCP       = "provider-gcp"
	PROVIDER_OPENSTACK = "provider-openstack"
	PROVIDER_ALICLOUD  = "provider-alicloud"
)
View Source
const (
	DNS_PROVIDER_AWS_ROUTE_53        = "aws-route53"
	DNS_PROVIDER_AZURE_DNS           = "azure-dns"
	DNS_PROVIDER_AZURE_PRIVATE_DNS   = "azure-private-dns"
	DNS_PROVIDER_GOOGLE_CLOUDDNS     = "google-clouddns"
	DNS_PROVIDER_OPENSTACK_DESIGNATE = "openstack-designate"
	DNS_PROVIDER_ALICLOUD_DNS        = "alicloud-dns"
)
View Source
const BASE_23KE_KS_NAME = "23ke-base"
View Source
const BASE_ADDONS_23KE_KS_NAME = "23ke-base-addons"
View Source
const BUCKET_NAME = "23ke"
View Source
const BUCKET_SECRET_NAME = "bucket-credentials"
View Source
const CONFIG_23KE_GITREPO_KEY = "23ke-config-key"
View Source
const CONFIG_23KE_GITREPO_NAME = "23ke-config"
View Source
const CONFIG_KS_NAME = "23ke-config"
View Source
const FLUX_NAMESPACE = "flux-system"

Variables

View Source
var PrintErr = color.New(colorErr).PrintlnFunc()
View Source
var PrintHighlight = color.New(colorHighlight).PrintlnFunc()
View Source
var PrintWarn = color.New(colorWarn).PrintlnFunc()

var printSuccess = color.New(colorSuccess).PrintlnFunc()

Functions

func CoerceBase64String

func CoerceBase64String(s string) string

func List23keTags

func List23keTags(publicKeys *ssh.PublicKeys) ([]string, error)

list23keTag ...

func MakeValidatorFn

func MakeValidatorFn(tag string) func(value interface{}) error

Available validators: https://pkg.go.dev/github.com/go-playground/validator/v10

func PressEnterToContinue

func PressEnterToContinue()

func RandHex

func RandHex(bytes int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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