app

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

func Abs(path string) (string, error)

func Client

func Client(c *cli.Context) (kubernetes.Client, error)

func EmptyDir added in v0.2.0

func EmptyDir(path, name string) (string, error)

func IsEmptyDir added in v0.2.0

func IsEmptyDir(path string) (bool, error)

func MustClient

func MustClient(c *cli.Context) kubernetes.Client

func MustName

func MustName(c *cli.Context) string

func MustNamespace

func MustNamespace(c *cli.Context) string

func MustPort

func MustPort(c *cli.Context) int

func MustPortOrRandom

func MustPortOrRandom(c *cli.Context, preference int) int

func MustPorts

func MustPorts(c *cli.Context) []int

func MustRandomPort

func MustRandomPort(c *cli.Context, preference int) int

func MustScope

func MustScope(c *cli.Context) string

func Name

func Name(c *cli.Context) string

func Namespace

func Namespace(c *cli.Context) string

func NamespaceOrDefault

func NamespaceOrDefault(c *cli.Context) string

func Port

func Port(c *cli.Context) int

func PortOrRandom

func PortOrRandom(c *cli.Context, preference int) (int, error)

func Ports

func Ports(c *cli.Context) []int

func RandomPort

func RandomPort(c *cli.Context, preference int) (int, error)

func Scope

func Scope(c *cli.Context) string

func ScopeOrDefault

func ScopeOrDefault(c *cli.Context) 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