app

package
v0.21.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterFlag = &cli.StringFlag{
	Name:  "cluster",
	Usage: "cluster instance",
}
View Source
var PortFlag = &cli.IntFlag{
	Name:  "port",
	Usage: "port",
}
View Source
var PortsFlag = &cli.StringSliceFlag{
	Name:  "port",
	Usage: "port mappings",
}
View Source
var ProviderFlag = &cli.StringFlag{
	Name:  "provider",
	Usage: "cluster provider",
}

Functions

func Client added in v0.20.0

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

func Cluster added in v0.20.0

func Cluster(ctx context.Context, cmd *cli.Command) (provider.Provider, string, error)

func MustApplication added in v0.20.2

func MustApplication(ctx context.Context, client kubernetes.Client, namespace string) resource.Application

func MustClient added in v0.20.0

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

func MustCluster added in v0.0.7

func MustCluster(ctx context.Context, cmd *cli.Command) (provider.Provider, 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 added in v0.20.0

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

func MustProvider added in v0.0.7

func MustProvider(ctx context.Context, cmd *cli.Command) provider.Provider

func MustRandomPort

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

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 added in v0.20.0

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

func Provider added in v0.0.7

func Provider(ctx context.Context, cmd *cli.Command) (provider.Provider, error)

func RandomPort

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

func SelectApplication added in v0.20.2

func SelectApplication(ctx context.Context, client kubernetes.Client, namespace string) (*resource.Application, error)

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