common

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	WorkerOSLinux   string = "linux"
	WorkerOSWindows string = "windows"
)
View Source
const (
	DefaultBSLName    string = "default"
	AdditionalBSLName string = "add-bsl"
)

Variables

This section is empty.

Functions

func CMDExecWithOutput

func CMDExecWithOutput(checkCMD *exec.Cmd) (*[]byte, error)

func CreateFileContent added in v1.14.0

func CreateFileContent(namespace, podName, volume string) string

func GetListByCmdPipes

func GetListByCmdPipes(ctx context.Context, cmdLines []*OsCommandLine) ([]string, error)

func GetResourceWithLabel added in v1.17.0

func GetResourceWithLabel(ctx context.Context, namespace, resourceName string, labels map[string]string) ([]string, error)

func WriteToFile

func WriteToFile(content, fileName string) error

Types

type OsCommandLine

type OsCommandLine struct {
	Cmd  string
	Args []string
}

Jump to

Keyboard shortcuts

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