Documentation ¶
Index ¶
- Variables
- func Client(ctx context.Context, cmd *cli.Command) (kubernetes.Client, error)
- func Container(ctx context.Context, cmd *cli.Command) string
- func ContainerName(ctx context.Context, cmd *cli.Command) string
- func MustClient(ctx context.Context, cmd *cli.Command) kubernetes.Client
- func MustName(ctx context.Context, cmd *cli.Command) string
- func MustNamespace(ctx context.Context, cmd *cli.Command) string
- func MustNamespaces(ctx context.Context, cmd *cli.Command) []string
- func MustPort(ctx context.Context, cmd *cli.Command) int
- func MustPortOrRandom(ctx context.Context, cmd *cli.Command, preference int) int
- func MustPorts(ctx context.Context, cmd *cli.Command) map[int]int
- func MustRandomPort(ctx context.Context, cmd *cli.Command, preference int) int
- func MustScope(ctx context.Context, cmd *cli.Command) string
- func Name(ctx context.Context, cmd *cli.Command) string
- func Namespace(ctx context.Context, cmd *cli.Command) string
- func Namespaces(ctx context.Context, cmd *cli.Command) []string
- func Port(ctx context.Context, cmd *cli.Command) int
- func PortOrRandom(ctx context.Context, cmd *cli.Command, preference int) (int, error)
- func Ports(ctx context.Context, cmd *cli.Command) (map[int]int, error)
- func RandomPort(ctx context.Context, cmd *cli.Command, preference int) (int, error)
- func Scope(ctx context.Context, cmd *cli.Command) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ContainerFlag = &cli.StringFlag{ Name: "container", Usage: "container", }
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 NamespacesFlag = &cli.StringSliceFlag{ Name: "namespace", Usage: "namespaces for this request", }
View Source
var PortFlag = &cli.IntFlag{
Name: "port",
Usage: "port",
}
View Source
var PortsFlag = &cli.StringSliceFlag{
Name: "port",
Usage: "port mappings",
}
View Source
var ScopeFlag = &cli.StringFlag{ Name: "scope", Usage: "scope", }
Functions ¶
func ContainerName ¶ added in v0.15.7
func MustClient ¶
func MustNamespaces ¶ added in v0.15.5
func MustPortOrRandom ¶
func MustRandomPort ¶
func PortOrRandom ¶
func RandomPort ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.