commands

package
v0.0.0-...-50af7b8 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Apply = cli.Command{
	Name:    "apply",
	Aliases: []string{"upload", "set", "sync"},
	Usage:   "Apply a yaml file to a Kong service",
	Action:  applyCommand,
}
View Source
var Context = cli.Command{
	Name:    "context",
	Aliases: []string{"ctx", "domain"},
	Usage:   "Manage the context",
	Action:  showCommand,
	Subcommands: []cli.Command{
		{
			Name:   "switch",
			Usage:  "Switch to another context",
			Action: switchCommand,
		},
		{
			Name:   "list",
			Usage:  "List all contexts",
			Action: listCommand,
		},
	},
}
View Source
var Describe = cli.Command{
	Name:    "describe",
	Aliases: []string{"desc", "inspect"},
	Usage:   "Describe a resource",
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "enabled, e",
			Usage: "Only show enabled resources",
		},
	},
	Subcommands: []cli.Command{
		{
			Name:   "plugins",
			Usage:  "List plugins",
			Action: describePluginCommand,
		},
		{
			Name:   "apis",
			Usage:  "List apis",
			Action: describeApiCommand,
		},
	},
}
View Source
var Export = cli.Command{
	Name:    "export",
	Aliases: []string{"download", "fetch", "grab"},
	Usage:   "Export resources to a yaml file",
	Action:  exportCommand,
}

Functions

func SetKongApi

func SetKongApi(k *kong.Kong)

Types

This section is empty.

Jump to

Keyboard shortcuts

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