pod

package
v0.0.0-...-74b680d Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

func NewInspector

func NewInspector(
	ctx context.Context,
	xc *app.ExecutionContext,
	logger *log.Entry,
	workload *kubernetes.Workload,
	kubectl kubernetes.Kubectl,
	kubeClient *kubernetes.Client,
	imageInspector *image.Inspector,
	keepPerms bool,
	pathPerms map[string]*fsutil.AccessInfo,

	doDebug bool,
	logLevel string,
	logFormat string,
	rtaSourcePT bool,
	statePath string,
	contOverrides *config.ContainerOverrides,
	sensorIPCEndpoint string,
	portBindings map[dockerapi.Port][]dockerapi.PortBinding,
	doPublishExposedPorts bool,
) (*Inspector, error)

func (*Inspector) AvailablePorts

func (i *Inspector) AvailablePorts() map[dockerapi.Port]dockerapi.PortBinding

func (*Inspector) Exec

func (i *Inspector) Exec(cmd string, args ...string) ([]byte, error)

func (*Inspector) FinishMonitoring

func (i *Inspector) FinishMonitoring()

func (*Inspector) HasCollectedData

func (i *Inspector) HasCollectedData() bool

func (*Inspector) PodName

func (i *Inspector) PodName() string

func (*Inspector) PodPortList

func (i *Inspector) PodPortList() string

func (*Inspector) PodPortsInfo

func (i *Inspector) PodPortsInfo() string

func (*Inspector) ProcessCollectedData

func (i *Inspector) ProcessCollectedData() error

func (*Inspector) RunPod

func (i *Inspector) RunPod() error

func (*Inspector) ShowPodLogs

func (i *Inspector) ShowPodLogs()

func (*Inspector) ShutdownPod

func (i *Inspector) ShutdownPod(resetChanges bool)

func (*Inspector) TargetHost

func (i *Inspector) TargetHost() string

Jump to

Keyboard shortcuts

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