cmd

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 46 Imported by: 1

Documentation

Index

Constants

View Source
const PlainOutputFormat = "PLAIN"

Variables

View Source
var COMMIT = "unknown"

COMMIT is the short hash of the source tree. This should be substituted by Git commit hash during the build process.

View Source
var VERSION = "dev"

VERSION is the current version of decK. This should be substituted by git tag during the build process.

Functions

func Execute

func Execute(ctx context.Context)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetKongClientForKonnectMode added in v1.16.0

func GetKongClientForKonnectMode(
	ctx context.Context, konnectConfig *utils.KonnectConfig,
) (*kong.Client, error)

GetKongClientForKonnectMode abstracts the different cloud environments users may be using, creating a Konnect client with the proper attributes set. This also includes a fallback mechanism using an address pool to establish a session with Konnect, making the different cloud environments completely transparent to users.

func NewRootCmd added in v1.12.0

func NewRootCmd() *cobra.Command

NewRootCmd represents the base command when called without any subcommands

func RemoveConsumerPlugins added in v1.40.2

func RemoveConsumerPlugins(targetContentPlugins []file.FPlugin) []file.FPlugin

Types

type ApplyType added in v1.43.1

type ApplyType int
const (
	ApplyTypeFull ApplyType = iota
	ApplyTypePartial
)

Jump to

Keyboard shortcuts

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