Documentation ¶
Index ¶
- Constants
- Variables
- func Abs(path string) (string, error)
- func Client(c *cli.Context) (kubernetes.Client, error)
- func EmptyDir(path, name string) (string, error)
- func IsEmptyDir(path string) (bool, 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 NamespaceOrDefault(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
- func ScopeOrDefault(c *cli.Context) string
Constants ¶
View Source
const ( CategoryCluster = "CLUSTER" CategoryUtilities = "UTILITIES" CategoryDevelopment = "DEVELOPMENT" )
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 IsEmptyDir ¶ added in v0.2.0
func MustClient ¶
func MustClient(c *cli.Context) kubernetes.Client
func MustNamespace ¶
func NamespaceOrDefault ¶
func ScopeOrDefault ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.