common

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yellow = "\033[33m"
	Green  = "\033[32m"
	Red    = "\033[31m"
	Reset  = "\033[0m"
	Blue   = "\033[34m"
	Cyan   = "\033[36m"
)

ANSI escape codes for colors

Variables

This section is empty.

Functions

func CreateDeploymentSpinner

func CreateDeploymentSpinner(infoMsg string) *spinner.Spinner

func LoadKubeConfig

func LoadKubeConfig() (*rest.Config, error)

LoadKubeConfig loads the kubeconfig from the default location

func PromptConfirmation

func PromptConfirmation(message string) bool

func PromptK8sContext

func PromptK8sContext() (clusterName string, err error)

PromptK8sContext retrieves Kubernetes contexts from kubeconfig.

func RemoveInstallerEntry

func RemoveInstallerEntry(name string) error

Types

type InstallerEntry

type InstallerEntry struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
	Version   string `yaml:"version"`
	Status    string `yaml:"status"` // todo ideally should be a heartbeat
}

InstallerEntry represents an entry in the installer.yaml file

func PromptClusterSelection

func PromptClusterSelection(entries []InstallerEntry) (InstallerEntry, error)

func ReadInstallerConfigMap

func ReadInstallerConfigMap() ([]InstallerEntry, error)

ReadInstallerConfigMap fetches and parses installer data from a ConfigMap

Jump to

Keyboard shortcuts

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