podbase

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KotoolsPath = "/kotools"

Variables

This section is empty.

Functions

This section is empty.

Types

type PodBase

type PodBase struct {
	Namespace  string
	PodName    string
	Container  string
	K8sClient  *kubernetes.Clientset
	RestClient *rest.Config
}

func (*PodBase) Exec

func (p *PodBase) Exec(stdin io.Reader, command ...string) ([]byte, error)

func (*PodBase) ExecCommand

func (p *PodBase) ExecCommand(commands []string) (string, error)

func (*PodBase) GetUserPath

func (p *PodBase) GetUserPath() (string, error)

func (*PodBase) InstallKOTools

func (p *PodBase) InstallKOTools() error

func (*PodBase) NewPodExec

func (p *PodBase) NewPodExec() *podexec.PodExec

func (*PodBase) OsAndArch

func (p *PodBase) OsAndArch(nodeName string) (osType string, arch string)

func (*PodBase) PodInfo

func (p *PodBase) PodInfo() (*coreV1.Pod, error)

Jump to

Keyboard shortcuts

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