e2eutil

package
v2.0.7-beta.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABCommand

func ABCommand(arg ...string) *exec.Cmd

func CriCtlCommand

func CriCtlCommand(arg ...string) *exec.Cmd

func DockerCommand

func DockerCommand(arg ...string) *exec.Cmd

func DockerCopy added in v2.0.2

func DockerCopy(dst, src string) *exec.Cmd

func GetFileList

func GetFileList() []string

func GetFileURL

func GetFileURL(filePath string) string

func GetNoContentLengthFileURL added in v2.0.2

func GetNoContentLengthFileURL(filePath string) string

func GitCommand

func GitCommand(arg ...string) *exec.Cmd

func KubeCtlCommand

func KubeCtlCommand(arg ...string) *exec.Cmd

func KubeCtlCopyCommand

func KubeCtlCopyCommand(ns, pod, source, target string) *exec.Cmd

func UploadArtifactPProf added in v2.0.2

func UploadArtifactPProf(namespace, podName, logDirName, logPrefix string, pprofPort int) (string, error)

func UploadArtifactPrevStdout added in v2.0.2

func UploadArtifactPrevStdout(namespace, podName, logDirName, logPrefix string) error

func UploadArtifactStdout added in v2.0.2

func UploadArtifactStdout(namespace, podName, logDirName, logPrefix string) error

Types

type PodExec

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

func NewPodExec

func NewPodExec(namespace string, name string, container string) *PodExec

func (*PodExec) Command

func (p *PodExec) Command(arg ...string) *exec.Cmd

func (*PodExec) CurlCommand

func (p *PodExec) CurlCommand(method string, header map[string]string, data map[string]any, target string) *exec.Cmd

Jump to

Keyboard shortcuts

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