debugger

package
v1.35.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportVolumeMount = volume.VolumeCreateBody{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, mountID string)

func (*DebugManager) ConfigurationForImage added in v1.34.0

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