Documentation ¶
Index ¶
- func WithK8S(fn ActionFunc) cli.ActionFunc
- type ActionFunc
- type Context
- func (c *Context) Ctx() context.Context
- func (c *Context) Exec(ctx context.Context, namespace, podName string, cmd ...string) error
- func (c *Context) KubeClient() *kubernetes.Clientset
- func (c *Context) KubeConfig() *restclient.Config
- func (c *Context) Namespace() string
- func (c *Context) PortForward(ctx context.Context, namespace, podName, localPort, remotePort string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithK8S ¶
func WithK8S(fn ActionFunc) cli.ActionFunc
WithK8S is a wrapper for cli.ActionFunc to add kubernetes API capabilities.
Types ¶
type ActionFunc ¶
type Context ¶
type Context struct { *cli.Context // contains filtered or unexported fields }
func (*Context) KubeClient ¶
func (c *Context) KubeClient() *kubernetes.Clientset
func (*Context) KubeConfig ¶
func (c *Context) KubeConfig() *restclient.Config
Click to show internal directories.
Click to hide internal directories.