Documentation ¶
Index ¶
- Variables
- func Client(c *cli.Context) (kubernetes.Client, error)
- func MustClient(c *cli.Context) kubernetes.Client
- func MustName(c *cli.Context) string
- func MustNamespace(c *cli.Context) string
- func MustPort(c *cli.Context) int
- func MustPortOrRandom(c *cli.Context, preference int) int
- func MustPorts(c *cli.Context) []int
- func MustRandomPort(c *cli.Context, preference int) int
- func MustScope(c *cli.Context) string
- func Name(c *cli.Context) string
- func Namespace(c *cli.Context) string
- func Port(c *cli.Context) int
- func PortOrRandom(c *cli.Context, preference int) (int, error)
- func Ports(c *cli.Context) []int
- func RandomPort(c *cli.Context, preference int) (int, error)
- func Scope(c *cli.Context) string
Constants ¶
This section is empty.
Variables ¶
View Source
var KubeconfigFlag = &cli.StringFlag{
Name: "kubeconfig",
Usage: "path to the kubeconfig file",
}
View Source
var NameFlag = &cli.StringFlag{
Name: "name",
Usage: "name",
}
View Source
var NamespaceFlag = &cli.StringFlag{ Name: "namespace", Usage: "namespace scope for this request", }
View Source
var PortFlag = &cli.IntFlag{
Name: "port",
Usage: "port",
}
View Source
var PortsFlag = &cli.IntSliceFlag{
Name: "port",
Usage: "port",
}
View Source
var ScopeFlag = &cli.StringFlag{ Name: "scope", Usage: "scope", }
Functions ¶
func MustClient ¶
func MustClient(c *cli.Context) kubernetes.Client
func MustNamespace ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.