common

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 18 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_PROVIDER_AZURE = "azure"
)
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()

View Source
var Version string

Functions

func CoerceBase64String

func CoerceBase64String(s string) string

func CreateKubeClient added in v0.0.5

func CreateKubeClient(kubeconfig string) (*genericclioptions.ConfigFlags, *runclient.Options, client.Client, error)

func CreateMinioClient added in v0.0.5

func CreateMinioClient() (*minio.Client, error)

func ExitOnCtrlC added in v0.0.5

func ExitOnCtrlC(err error)

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 QueryConfigKey added in v0.0.5

func QueryConfigKey(configKey string, fn func() (any, error)) error

func RandHex

func RandHex(bytes int) string

func WithValidator added in v0.0.5

func WithValidator(tag string) survey.AskOpt

Types

This section is empty.

Jump to

Keyboard shortcuts

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