exec

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(commandDetails *PodDetails, clients clients.ClientSets, command []string) (string, error)

Exec function will run the provide commands inside the target container

func SetExecCommandAttributes

func SetExecCommandAttributes(podDetails *PodDetails, PodName, ContainerName, Namespace string)

SetExecCommandAttributes initialise all the pod details to run exec command

Types

type PodDetails

type PodDetails struct {
	PodName       string
	Namespace     string
	ContainerName string
}

PodDetails contains all the required variables to exec inside a container

Jump to

Keyboard shortcuts

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