Documentation
¶
Index ¶
- Variables
- func Client(ctx context.Context, cmd *cli.Command) (kubernetes.Client, error)
- func Cluster(ctx context.Context, cmd *cli.Command) (provider.Provider, string, error)
- func MustApplication(ctx context.Context, client kubernetes.Client, namespace string) resource.Application
- func MustClient(ctx context.Context, cmd *cli.Command) kubernetes.Client
- func MustCluster(ctx context.Context, cmd *cli.Command) (provider.Provider, 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 MustProvider(ctx context.Context, cmd *cli.Command) provider.Provider
- func MustRandomPort(ctx context.Context, cmd *cli.Command, preference int) int
- 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 Provider(ctx context.Context, cmd *cli.Command) (provider.Provider, error)
- func RandomPort(ctx context.Context, cmd *cli.Command, preference int) (int, error)
- func SelectApplication(ctx context.Context, client kubernetes.Client, namespace string) (*resource.Application, error)
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 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 MustCluster ¶ added in v0.0.7
func MustPortOrRandom ¶
func MustProvider ¶ added in v0.0.7
func MustRandomPort ¶
func PortOrRandom ¶
func RandomPort ¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.