debugger

package
v2.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportVolumeMount = volume.CreateOptions{Name: debug.DebuggingSupportFilesVolume}
	TransformImage     = transformImage // For testing
)

Functions

func ExecutableContainerForConfig

func ExecutableContainerForConfig(cfg *container.Config) *types.ExecutableContainer

Types

type DebugManager

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

func NewDebugManager

func NewDebugManager(insecureRegistries map[string]bool, debugHelpersRegistry string) *DebugManager

func (*DebugManager) AddSupportMount

func (d *DebugManager) AddSupportMount(image string, m mount.Mount)

func (*DebugManager) ConfigurationForImage

func (d *DebugManager) ConfigurationForImage(image string) types.ContainerDebugConfiguration

func (*DebugManager) HasMount

func (d *DebugManager) HasMount(image string) bool

func (*DebugManager) Name

func (d *DebugManager) Name() string

func (*DebugManager) Start

func (d *DebugManager) Start(context.Context) error

func (*DebugManager) Stop

func (d *DebugManager) Stop()

func (*DebugManager) SupportMounts

func (d *DebugManager) SupportMounts() map[string]mount.Mount

func (*DebugManager) TransformImage

func (d *DebugManager) TransformImage(ctx context.Context, artifact graph.Artifact, cfg *container.Config) ([]*container.Config, error)

type DockerAdapter

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

func NewAdapter

func NewAdapter(cfg *container.Config) *DockerAdapter

func (*DockerAdapter) Apply

func (d *DockerAdapter) Apply()

Apply transfers the configuration changes from the intermediate container to the underlying container config. Since container.Config doesn't have an Args field, we use the ExecutableContainer Command as the Entrypoint, or the Args as the Cmd. Note: these are mutually exclusive transformations.

func (*DockerAdapter) GetContainer

func (d *DockerAdapter) GetContainer() *types.ExecutableContainer

type Transform

type Transform func(string) string

Jump to

Keyboard shortcuts

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