Documentation ¶
Index ¶
- Variables
- func ExecutableContainerForConfig(cfg *container.Config) *types.ExecutableContainer
- type DebugManager
- func (d *DebugManager) AddSupportMount(image, mountID string)
- func (d *DebugManager) ConfigurationForImage(image string) types.ContainerDebugConfiguration
- func (d *DebugManager) HasMount(image string) bool
- func (d *DebugManager) Name() string
- func (d *DebugManager) Start(context.Context) error
- func (d *DebugManager) Stop()
- func (d *DebugManager) SupportMounts() map[string]mount.Mount
- func (d *DebugManager) TransformImage(ctx context.Context, artifact graph.Artifact, cfg *container.Config) ([]*container.Config, error)
- type DockerAdapter
- type Transform
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) Stop ¶
func (d *DebugManager) Stop()
func (*DebugManager) SupportMounts ¶
func (d *DebugManager) SupportMounts() map[string]mount.Mount
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
Click to show internal directories.
Click to hide internal directories.