cmd

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig added in v1.18.0

func GetClientConfig(kubeContext string) (clientcmd.ClientConfig, error)

func SetClientset added in v1.8.0

func SetClientset(client Client)

Types

type Client added in v1.18.0

type Client struct {
	RestConfig       *rest.Config
	FissionClientSet versioned.Interface
	KubernetesClient kubernetes.Interface
	Namespace        string
}

func NewClient added in v1.18.0

func NewClient(opts ClientOptions) (*Client, error)

func (*Client) SetFissionClientset added in v1.18.0

func (c *Client) SetFissionClientset(fissionClientSet versioned.Interface)

func (*Client) SetKubernetesClient added in v1.18.0

func (c *Client) SetKubernetesClient(kubernetesClient kubernetes.Interface)

type ClientOptions added in v1.18.0

type ClientOptions struct {
	KubeContext string
	Namespace   string
	RestConfig  *rest.Config
}

type CommandAction

type CommandAction func(input cli.Input) error

type CommandActioner added in v1.8.0

type CommandActioner struct{}

func (*CommandActioner) Client added in v1.8.0

func (c *CommandActioner) Client() Client

func (*CommandActioner) GetResourceNamespace added in v1.18.0

func (c *CommandActioner) GetResourceNamespace(input cli.Input, deprecatedFlag string) (namespace, currentNS string, err error)

Jump to

Keyboard shortcuts

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