Documentation ¶
Index ¶
Constants ¶
const PlainOutputFormat = "PLAIN"
Variables ¶
var COMMIT = "unknown"
COMMIT is the short hash of the source tree. This should be substituted by Git commit hash during the build process.
var VERSION = "dev"
VERSION is the current version of decK. This should be substituted by git tag during the build process.
Functions ¶
func Execute ¶
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
NewRootCmd represents the base command when called without any subcommands
Types ¶
type LintResult ¶ added in v1.28.0
Source Files ¶
- common.go
- common_konnect.go
- completion.go
- file.go
- file_addplugins.go
- file_addtags.go
- file_convert.go
- file_lint.go
- file_listtags.go
- file_merge.go
- file_namespace.go
- file_openapi2kong.go
- file_patch.go
- file_removetags.go
- file_render.go
- gateway.go
- gateway_diff.go
- gateway_dump.go
- gateway_ping.go
- gateway_reset.go
- gateway_sync.go
- gateway_validate.go
- konnect.go
- konnect_diff.go
- konnect_dump.go
- konnect_ping.go
- konnect_sync.go
- root.go
- utils.go
- version.go