util

package
v0.0.0-...-8d22e20 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyArtifactsFromPod

func CopyArtifactsFromPod(srcPath string, destPath string, podName string, namespace string, containerName string) error

CopyArtifactsFromPod copy files from a given pod to local directory where che-inspector it is executed

func ExecInContainer

func ExecInContainer(podName string, container string, namespace string, command string) error

func ExecuteBashCommand

func ExecuteBashCommand(command string) error

func IsCommandAvailable

func IsCommandAvailable(name string) bool

func Untar

func Untar(fileSource string, destination string) error

Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

func UntarAll

func UntarAll(reader io.Reader, destDir, prefix string) error

Comment

Types

type CommandGroup

type CommandGroup struct {
	Message  string
	Commands []*cobra.Command
}

type CommandGroups

type CommandGroups []CommandGroup

func (CommandGroups) Add

func (g CommandGroups) Add(c *cobra.Command)

Jump to

Keyboard shortcuts

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