util

package
v2.1.65 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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

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

func GetFileList

func GetFileList() []string

func GetFileURL

func GetFileURL(filePath string) string

func GetNoContentLengthFileURL

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

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

func UploadArtifactPrevStdout

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

func UploadArtifactStdout

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