Documentation
¶
Index ¶
- Variables
- func CompleteCellNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteContainerNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteOutputFormat(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteRealmNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteSpaceNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func CompleteStackNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func DefaultConfigFile() string
- func DefaultProfilesFile() string
- func DefaultRunPath() string
- func GetProfilesFileFromEnvAndFlags(cmd *cobra.Command, viperKey string) (string, error)
- func GetRunPathFromEnvAndFlags(cmd *cobra.Command, viperKey string) (string, error)
- func KV(v Var, value string) string
- type MockControllerKey
- type Var
Constants ¶
This section is empty.
Variables ¶
var ( //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_VERBOSE = DefineKV("KUKEON_VERBOSE", "kukeon/verbose") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_RUN_PATH = DefineKV("KUKEON_RUN_PATH", "kukeon/runPath") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_CONFIG_FILE = DefineKV("KUKEON_CONFIG_FILE", "kukeon/configFile") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_LOG_LEVEL = DefineKV("KUKEON_LOG_LEVEL", "kukeon/logLevel", "info") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_CONTAINERD_SOCKET = DefineKV("KUKEON_CONTAINERD_SOCKET", "kukeon/containerd.socket") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_HOST = DefineKV("KUKEON_HOST", "kukeon/host", "unix:///run/kukeon/kukeond.sock") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEON_ROOT_NO_DAEMON = DefineKV("KUKEON_NO_DAEMON", "kukeon/noDaemon", "false") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKEOND_SOCKET = DefineKV("KUKEOND_SOCKET", "kukeond/socket", "/run/kukeon/kukeond.sock") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_INIT_REALM = DefineKV("KUKE_INIT_REALM", "kuke/init/realm") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_INIT_SPACE = DefineKV("KUKE_INIT_SPACE", "kuke/init/space") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_INIT_KUKEOND_IMAGE = DefineKV("KUKE_INIT_KUKEOND_IMAGE", "kuke/init/kukeondImage") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_INIT_NO_WAIT = DefineKV("KUKE_INIT_NO_WAIT", "kuke/init/noWait", "false") // Create command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_REALM_NAME = DefineKV("KUKE_CREATE_REALM_NAME", "kuke/create/realm/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_SPACE_NAME = DefineKV("KUKE_CREATE_SPACE_NAME", "kuke/create/space/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_SPACE_REALM = DefineKV("KUKE_CREATE_SPACE_REALM", "kuke/create/space/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_STACK_NAME = DefineKV("KUKE_CREATE_STACK_NAME", "kuke/create/stack/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_STACK_REALM = DefineKV("KUKE_CREATE_STACK_REALM", "kuke/create/stack/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_STACK_SPACE = DefineKV("KUKE_CREATE_STACK_SPACE", "kuke/create/stack/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CELL_NAME = DefineKV("KUKE_CREATE_CELL_NAME", "kuke/create/cell/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CELL_REALM = DefineKV("KUKE_CREATE_CELL_REALM", "kuke/create/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CELL_SPACE = DefineKV("KUKE_CREATE_CELL_SPACE", "kuke/create/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CELL_STACK = DefineKV("KUKE_CREATE_CELL_STACK", "kuke/create/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_NAME = DefineKV("KUKE_CREATE_CONTAINER_NAME", "kuke/create/container/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_REALM = DefineKV("KUKE_CREATE_CONTAINER_REALM", "kuke/create/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_SPACE = DefineKV("KUKE_CREATE_CONTAINER_SPACE", "kuke/create/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_STACK = DefineKV("KUKE_CREATE_CONTAINER_STACK", "kuke/create/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_CELL = DefineKV("KUKE_CREATE_CONTAINER_CELL", "kuke/create/container/cell") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_IMAGE = DefineKV( "KUKE_CREATE_CONTAINER_IMAGE", "kuke/create/container/image", "docker.io/library/debian:latest", ) //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_ENV = DefineKV("KUKE_CREATE_CONTAINER_ENV", "kuke/create/container/env") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_PORTS = DefineKV("KUKE_CREATE_CONTAINER_PORTS", "kuke/create/container/ports") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_VOLUMES = DefineKV("KUKE_CREATE_CONTAINER_VOLUMES", "kuke/create/container/volumes") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_NETWORKS = DefineKV("KUKE_CREATE_CONTAINER_NETWORKS", "kuke/create/container/networks") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_NETWORK_ALIASES = DefineKV( "KUKE_CREATE_CONTAINER_NETWORK_ALIASES", "kuke/create/container/networkAliases", ) //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_PRIVILEGED = DefineKV( "KUKE_CREATE_CONTAINER_PRIVILEGED", "kuke/create/container/privileged", "false", ) //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_ROOT = DefineKV("KUKE_CREATE_CONTAINER_ROOT", "kuke/create/container/root", "false") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_CNI_CONFIG_PATH = DefineKV( "KUKE_CREATE_CONTAINER_CNI_CONFIG_PATH", "kuke/create/container/cniConfigPath", ) //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_RESTART_POLICY = DefineKV( "KUKE_CREATE_CONTAINER_RESTART_POLICY", "kuke/create/container/restartPolicy", ) //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_CREATE_CONTAINER_LABELS = DefineKV("KUKE_CREATE_CONTAINER_LABELS", "kuke/create/container/labels") // Get command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_REALM_NAME = DefineKV("KUKE_GET_REALM_NAME", "kuke/get/realm/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_SPACE_NAME = DefineKV("KUKE_GET_SPACE_NAME", "kuke/get/space/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_SPACE_REALM = DefineKV("KUKE_GET_SPACE_REALM", "kuke/get/space/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_STACK_NAME = DefineKV("KUKE_GET_STACK_NAME", "kuke/get/stack/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_STACK_REALM = DefineKV("KUKE_GET_STACK_REALM", "kuke/get/stack/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_STACK_SPACE = DefineKV("KUKE_GET_STACK_SPACE", "kuke/get/stack/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CELL_NAME = DefineKV("KUKE_GET_CELL_NAME", "kuke/get/cell/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CELL_REALM = DefineKV("KUKE_GET_CELL_REALM", "kuke/get/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CELL_SPACE = DefineKV("KUKE_GET_CELL_SPACE", "kuke/get/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CELL_STACK = DefineKV("KUKE_GET_CELL_STACK", "kuke/get/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CONTAINER_NAME = DefineKV("KUKE_GET_CONTAINER_NAME", "kuke/get/container/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CONTAINER_REALM = DefineKV("KUKE_GET_CONTAINER_REALM", "kuke/get/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CONTAINER_SPACE = DefineKV("KUKE_GET_CONTAINER_SPACE", "kuke/get/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CONTAINER_STACK = DefineKV("KUKE_GET_CONTAINER_STACK", "kuke/get/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_CONTAINER_CELL = DefineKV("KUKE_GET_CONTAINER_CELL", "kuke/get/container/cell") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_GET_OUTPUT = DefineKV("KUKE_GET_OUTPUT", "kuke/get/output") // Delete command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_REALM_NAME = DefineKV("KUKE_DELETE_REALM_NAME", "kuke/delete/realm/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_SPACE_NAME = DefineKV("KUKE_DELETE_SPACE_NAME", "kuke/delete/space/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_SPACE_REALM = DefineKV("KUKE_DELETE_SPACE_REALM", "kuke/delete/space/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_STACK_NAME = DefineKV("KUKE_DELETE_STACK_NAME", "kuke/delete/stack/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_STACK_REALM = DefineKV("KUKE_DELETE_STACK_REALM", "kuke/delete/stack/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_STACK_SPACE = DefineKV("KUKE_DELETE_STACK_SPACE", "kuke/delete/stack/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CELL_NAME = DefineKV("KUKE_DELETE_CELL_NAME", "kuke/delete/cell/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CELL_REALM = DefineKV("KUKE_DELETE_CELL_REALM", "kuke/delete/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CELL_SPACE = DefineKV("KUKE_DELETE_CELL_SPACE", "kuke/delete/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CELL_STACK = DefineKV("KUKE_DELETE_CELL_STACK", "kuke/delete/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CONTAINER_NAME = DefineKV("KUKE_DELETE_CONTAINER_NAME", "kuke/delete/container/name") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CONTAINER_REALM = DefineKV("KUKE_DELETE_CONTAINER_REALM", "kuke/delete/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CONTAINER_SPACE = DefineKV("KUKE_DELETE_CONTAINER_SPACE", "kuke/delete/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CONTAINER_STACK = DefineKV("KUKE_DELETE_CONTAINER_STACK", "kuke/delete/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CONTAINER_CELL = DefineKV("KUKE_DELETE_CONTAINER_CELL", "kuke/delete/container/cell") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_FORCE = DefineKV("KUKE_DELETE_FORCE", "kuke/delete/force") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_DELETE_CASCADE = DefineKV("KUKE_DELETE_CASCADE", "kuke/delete/cascade") // Purge command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_SPACE_REALM = DefineKV("KUKE_PURGE_SPACE_REALM", "kuke/purge/space/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_STACK_REALM = DefineKV("KUKE_PURGE_STACK_REALM", "kuke/purge/stack/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_STACK_SPACE = DefineKV("KUKE_PURGE_STACK_SPACE", "kuke/purge/stack/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CELL_REALM = DefineKV("KUKE_PURGE_CELL_REALM", "kuke/purge/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CELL_SPACE = DefineKV("KUKE_PURGE_CELL_SPACE", "kuke/purge/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CELL_STACK = DefineKV("KUKE_PURGE_CELL_STACK", "kuke/purge/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CONTAINER_REALM = DefineKV("KUKE_PURGE_CONTAINER_REALM", "kuke/purge/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CONTAINER_SPACE = DefineKV("KUKE_PURGE_CONTAINER_SPACE", "kuke/purge/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CONTAINER_STACK = DefineKV("KUKE_PURGE_CONTAINER_STACK", "kuke/purge/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CONTAINER_CELL = DefineKV("KUKE_PURGE_CONTAINER_CELL", "kuke/purge/container/cell") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_FORCE = DefineKV("KUKE_PURGE_FORCE", "kuke/purge/force") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_PURGE_CASCADE = DefineKV("KUKE_PURGE_CASCADE", "kuke/purge/cascade") // Start command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CELL_REALM = DefineKV("KUKE_START_CELL_REALM", "kuke/start/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CELL_SPACE = DefineKV("KUKE_START_CELL_SPACE", "kuke/start/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CELL_STACK = DefineKV("KUKE_START_CELL_STACK", "kuke/start/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CONTAINER_REALM = DefineKV("KUKE_START_CONTAINER_REALM", "kuke/start/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CONTAINER_SPACE = DefineKV("KUKE_START_CONTAINER_SPACE", "kuke/start/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CONTAINER_STACK = DefineKV("KUKE_START_CONTAINER_STACK", "kuke/start/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_START_CONTAINER_CELL = DefineKV("KUKE_START_CONTAINER_CELL", "kuke/start/container/cell") // Stop command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CELL_REALM = DefineKV("KUKE_STOP_CELL_REALM", "kuke/stop/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CELL_SPACE = DefineKV("KUKE_STOP_CELL_SPACE", "kuke/stop/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CELL_STACK = DefineKV("KUKE_STOP_CELL_STACK", "kuke/stop/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CONTAINER_REALM = DefineKV("KUKE_STOP_CONTAINER_REALM", "kuke/stop/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CONTAINER_SPACE = DefineKV("KUKE_STOP_CONTAINER_SPACE", "kuke/stop/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CONTAINER_STACK = DefineKV("KUKE_STOP_CONTAINER_STACK", "kuke/stop/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_STOP_CONTAINER_CELL = DefineKV("KUKE_STOP_CONTAINER_CELL", "kuke/stop/container/cell") // Kill command variables //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CELL_REALM = DefineKV("KUKE_KILL_CELL_REALM", "kuke/kill/cell/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CELL_SPACE = DefineKV("KUKE_KILL_CELL_SPACE", "kuke/kill/cell/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CELL_STACK = DefineKV("KUKE_KILL_CELL_STACK", "kuke/kill/cell/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CONTAINER_REALM = DefineKV("KUKE_KILL_CONTAINER_REALM", "kuke/kill/container/realm", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CONTAINER_SPACE = DefineKV("KUKE_KILL_CONTAINER_SPACE", "kuke/kill/container/space", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CONTAINER_STACK = DefineKV("KUKE_KILL_CONTAINER_STACK", "kuke/kill/container/stack", "default") //nolint:revive,gochecknoglobals,staticcheck // ignore linter warning about this variable KUKE_KILL_CONTAINER_CELL = DefineKV("KUKE_KILL_CONTAINER_CELL", "kuke/kill/container/cell") )
---- Declare statically (Viper key optional per var) ----.
var KukeondImageRepo = "ghcr.io/eminwux/kukeon"
KukeondImageRepo is the OCI image reference (without tag) that `kuke init` will provision for the kukeond system cell when the user does not pass --kukeond-image. The release pipeline injects the ghcr.io path that the matching kukeond image is published to.
var Version = "0.1.0"
Version is the kuke/kukeond build version.
Functions ¶
func CompleteCellNames ¶
func CompleteCellNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteCellNames provides shell completion for cell names by listing existing cells. This function can be used as a ValidArgsFunction or for flag completion in commands that accept cell names. It optionally filters by realm, space, and stack if --realm, --space, and --stack flags are set. When used as ValidArgsFunction, it requires --realm, --space, and --stack flags to be set before completing positional arguments.
func CompleteContainerNames ¶
func CompleteContainerNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteContainerNames provides shell completion for container names by listing existing containers. This function can be used as a ValidArgsFunction or for flag completion in commands that accept container names. It requires --realm, --space, --stack, and --cell flags to be set to filter containers. When used as ValidArgsFunction, it requires --realm, --space, --stack, and --cell flags to be set before completing positional arguments.
func CompleteOutputFormat ¶
func CompleteOutputFormat(_ *cobra.Command, _ []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteOutputFormat provides shell completion for output format values (yaml, json, table). This function can be used for flag completion in commands that accept output format flags.
func CompleteRealmNames ¶
func CompleteRealmNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteRealmNames provides shell completion for realm names by listing existing realms. This function can be used as a ValidArgsFunction or for flag completion in commands that accept realm names.
func CompleteSpaceNames ¶
func CompleteSpaceNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteSpaceNames provides shell completion for space names by listing existing spaces. This function can be used as a ValidArgsFunction or for flag completion in commands that accept space names. It optionally filters by realm if --realm flag is set. When used as ValidArgsFunction, it requires --realm flag to be set before completing positional arguments.
func CompleteStackNames ¶
func CompleteStackNames(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
CompleteStackNames provides shell completion for stack names by listing existing stacks. This function can be used as a ValidArgsFunction or for flag completion in commands that accept stack names. It optionally filters by realm and space if --realm and --space flags are set. When used as ValidArgsFunction, it requires --realm and --space flags to be set before completing positional arguments.
func DefaultConfigFile ¶
func DefaultConfigFile() string
func DefaultProfilesFile ¶
func DefaultProfilesFile() string
func DefaultRunPath ¶
func DefaultRunPath() string
Types ¶
type MockControllerKey ¶
type MockControllerKey struct{}
MockControllerKey is used to inject mock controllers in tests via context.
type Var ¶
type Var struct {
Key string // e.g. "KUKEON_RUN_PATH"
ViperKey string // optional, e.g. "global.runPath"
CobraKey string // optional, e.g. "run-path"
Default string // optional
HasDefault bool
}
func (*Var) DefaultValue ¶
func (*Var) SetDefault ¶
func (*Var) ValueOrDefault ¶
ValueOrDefault defines precedence: viper (if ViperKey set and value present) → OS env → default → "".