kube

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirCp

type DirCp struct {
	// contains filtered or unexported fields
}

func NewDirCp

func NewDirCp(exec Exec) DirCp

func (DirCp) Down

func (s DirCp) Down(localDir, remoteDir string) error

func (DirCp) Up

func (s DirCp) Up(localDir, remoteDir string) error

type Exec

type Exec struct {
	// contains filtered or unexported fields
}

func NewExec

func NewExec(pod corev1.Pod, container string, coreClient kubernetes.Interface, restConfig *rest.Config) Exec

func (Exec) Execute

func (s Exec) Execute(cmd []string, opts ExecuteOpts) error

type ExecuteOpts

type ExecuteOpts struct {
	Stdout io.Writer
	Stderr io.Writer
	Stdin  io.Reader
}

type TarBuilder

type TarBuilder struct{}

func (TarBuilder) Build

func (b TarBuilder) Build(srcPath, destPath string, opts TarBuilderOpts, writer io.Writer) error

type TarBuilderOpts

type TarBuilderOpts struct {
	ExcludedPaths []string

	ReportFileExcluded func(string)
	ReportFileIncluded func(string)
}

type Tarball

type Tarball struct {
	// contains filtered or unexported fields
}

func (Tarball) Extract

func (t Tarball) Extract(destFile string) error

Jump to

Keyboard shortcuts

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