remote

package
v0.0.0-...-0f0168f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClient

type K8sClient struct {
	// kubernetes.Interface should be used instead of kubernets.Inteface for unit test (mocking)
	ClientSet kubernetes.Interface
	Config    *rest.Config
}

func NewK8sClient

func NewK8sClient() (*K8sClient, error)

func NewMockK8sClient

func NewMockK8sClient(objs []runtime.Object) (*K8sClient, error)

return a mock of K8sClient struct, for unit testing

func (*K8sClient) CopyFromK8s

func (client *K8sClient) CopyFromK8s(src, dest string) error

func (*K8sClient) CopyToK8s

func (client *K8sClient) CopyToK8s(dest string, size *int64, buffer *io.ReadCloser) error

func (*K8sClient) Exec

func (client *K8sClient) Exec(namespace, podName, containerName string, command []string, stdin io.Reader) (*bytes.Buffer, *bytes.Buffer, error)

Jump to

Keyboard shortcuts

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