channel

package
v1.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFunc

func NewClientFunc() manager.NewClientFunc

NewClientFunc returns the controller client

Types

type Client

type Client struct {
	kubernetes.Interface
	client.Client
	Config *rest.Config
}

Client contains the kubernetes client, operator client and kubeconfig

func (*Client) Exec

func (c *Client) Exec(options *ExecOptions) interface{}

Exec command in pod

type ExecOptions

type ExecOptions struct {
	StreamOptions
	PodName       string
	PodNamespace  string
	ContainerName string
	Command       []string
	IgnoreOutput  bool
}

type IOStreams

type IOStreams struct {
	In     io.Reader
	Out    io.Writer
	ErrOut io.Writer
}

type StreamOptions

type StreamOptions struct {
	IOStreams
	Stdin      bool
	TTY        bool
	OutDecoder func(bytes []byte) interface{}
	ErrDecoder func(bytes []byte) interface{}
}

Jump to

Keyboard shortcuts

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