remote

package
v0.0.2-pre Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PodExecuteCommand

func PodExecuteCommand(req ExecCommandRequest) (int, error)

func PodUploadFile

func PodUploadFile(req UploadFileRequest) (int, error)

func Run

func Run(kube *KubeRequest, t tools.Tool, cmd []string) error

Run ...

func WrapAsTar

func WrapAsTar(fileNameOnTar string, fileContent []byte) ([]byte, error)

Types

type ExecCommandRequest

type ExecCommandRequest struct {
	*KubeRequest
	Command []string
	StdIn   io.Reader
	StdOut  io.Writer
	StdErr  io.Writer
}

type KubeRequest

type KubeRequest struct {
	Clientset  *kubernetes.Clientset
	RestConfig *rest.Config
	Namespace  string
	Pod        string
	Container  string
}

type NopWriter

type NopWriter struct {
}

func (*NopWriter) Write

func (w *NopWriter) Write(p []byte) (n int, err error)

type UploadFileRequest

type UploadFileRequest struct {
	*KubeRequest
	Src string
	Dst string
}

type Writer

type Writer struct {
	Output string
}

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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