e2eutil

package
v2.1.36 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FeatureGates = featuregate.NewFeatureGate()

	FeatureGateRange                 featuregate.Feature = "dfget-range"
	FeatureGateOpenRange             featuregate.Feature = "dfget-open-range"
	FeatureGateCommit                featuregate.Feature = "dfget-commit"
	FeatureGateNoLength              featuregate.Feature = "dfget-no-length"
	FeatureGateEmptyFile             featuregate.Feature = "dfget-empty-file"
	FeatureGateRecursive             featuregate.Feature = "dfget-recursive"
	FeatureGatePreheatMultiArchImage featuregate.Feature = "manager-preheat-multi-arch-image"
)

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