channel

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 7

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

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

type IOStreams added in v0.7.0

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

type StreamOptions added in v0.7.0

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