debug

package
v1.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CAP_SYS_PTRACE = "SYS_PTRACE"
	CAP_SYS_ADMIN  = "SYS_ADMIN"
)

Variables

This section is empty.

Functions

func NewLauncherCmd

func NewLauncherCmd(streams IOStreams) *cobra.Command

NewLauncherCmd create the launcher command

Types

type IOStreams

type IOStreams struct {
	In     io.ReadCloser
	Out    io.WriteCloser
	ErrOut io.WriteCloser
}

type Launcher

type Launcher struct {
	IOStreams
	// contains filtered or unexported fields
}

Launcher is responsible for launching debug container

func NewLauncher

func NewLauncher(streams IOStreams) *Launcher

NewLauncher create a launcher instance

func (*Launcher) Run

func (l *Launcher) Run(args []string) error

Run launches the debug container and attach it. We could alternatively just run docker exec in command line, but this brings shell and docker client to the image, which is unwanted.

type Streams

type Streams struct {
	In  *streams.In
	Out *streams.Out
	Err io.Writer
}

Jump to

Keyboard shortcuts

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