app

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 Client

func Client(ctx context.Context, cmd *cli.Command) (kubernetes.Client, error)

func Container added in v0.15.7

func Container(ctx context.Context, cmd *cli.Command) string

func ContainerName added in v0.15.7

func ContainerName(ctx context.Context, cmd *cli.Command) string

func MustClient

func MustClient(ctx context.Context, cmd *cli.Command) kubernetes.Client

func MustName

func MustName(ctx context.Context, cmd *cli.Command) string

func MustNamespace

func MustNamespace(ctx context.Context, cmd *cli.Command) string

func MustNamespaces added in v0.15.5

func MustNamespaces(ctx context.Context, cmd *cli.Command) []string

func MustPort

func MustPort(ctx context.Context, cmd *cli.Command) int

func MustPortOrRandom

func MustPortOrRandom(ctx context.Context, cmd *cli.Command, preference int) int

func MustPorts

func MustPorts(ctx context.Context, cmd *cli.Command) map[int]int

func MustRandomPort

func MustRandomPort(ctx context.Context, cmd *cli.Command, preference int) int

func MustScope

func MustScope(ctx context.Context, cmd *cli.Command) string

func Name

func Name(ctx context.Context, cmd *cli.Command) string

func Namespace

func Namespace(ctx context.Context, cmd *cli.Command) string

func Namespaces added in v0.15.5

func Namespaces(ctx context.Context, cmd *cli.Command) []string

func Port

func Port(ctx context.Context, cmd *cli.Command) int

func PortOrRandom

func PortOrRandom(ctx context.Context, cmd *cli.Command, preference int) (int, error)

func Ports

func Ports(ctx context.Context, cmd *cli.Command) (map[int]int, error)

func RandomPort

func RandomPort(ctx context.Context, cmd *cli.Command, preference int) (int, error)

func Scope

func Scope(ctx context.Context, cmd *cli.Command) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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