Versions in this module Expand all Collapse all v0 v0.4.1 Sep 5, 2022 v0.4.0 Sep 5, 2022 Changes in this version + var ErrReload = errors.New("reload") v0.4.0-test Sep 5, 2022 v0.3.0 Jul 1, 2022 Changes in this version + var ErrExit = errors.New("exit") + func Debug(ctx context.Context, cfg *config.Config, solveOpt *client.SolveOpt, ...) error + func Du(ctx context.Context, cfg *config.Config, w io.Writer) error + func ExecContainer(ctx context.Context, cfg ContainerConfig) (_ gwclient.ContainerProcess, _ func(), retErr error) + func Prune(ctx context.Context, cfg *config.Config, all bool, w io.Writer) error + type BreakContext struct + Handler *Handler + Hits map[string]BreakpointInfo + Info *RegisteredStatus + Locs []*Location + type Breakpoint interface + IsMarked func(source *pb.SourceInfo, line int64) bool + String func() string + func NewLineBreakpoint(filename string, line int64) Breakpoint + func NewOnFailBreakpoint() Breakpoint + type BreakpointHandler func(ctx context.Context, bCtx BreakContext) error + type BreakpointInfo struct + Description string + Hits []*Location + type Breakpoints struct + func NewBreakpoints() *Breakpoints + func (b *Breakpoints) Add(key string, bp Breakpoint) (string, error) + func (b *Breakpoints) Clear(key string) + func (b *Breakpoints) ClearAll() + func (b *Breakpoints) ForEach(f func(key string, bp Breakpoint) bool) + func (b *Breakpoints) Get(key string) (Breakpoint, bool) + type ContainerConfig struct + Args []string + Cwd string + Env []string + GatewayClient gwclient.Client + Image gwclient.Reference + Info *RegisteredStatus + InputMount bool + Mountroot string + NoSetRaw bool + Stderr io.WriteCloser + Stdin io.ReadCloser + Stdout io.WriteCloser + Tty bool + WatchSignal func(ctx context.Context, proc gwclient.ContainerProcess, con console.Console) + type DebugConfig struct + BreakpointHandler BreakpointHandler + Breakpoints *Breakpoints + CleanupAll bool + DebugImage string + DisableBreakpoints bool + StopOnEntry bool + type Handler struct + func (h *Handler) BreakEachVertex(b bool) + func (h *Handler) Breakpoints() *Breakpoints + func (h *Handler) DebuggerImage() gwclient.Reference + func (h *Handler) GatewayClient() gwclient.Client + type Location struct + Ranges []*pb.Range + Source *pb.SourceInfo + func (l *Location) String() string + type RegisteredStatus struct + DebugID string + Err error + InputIDs []string + MountIDs []string + Name string + Op *pb.Op + Vertex digest.Digest