Documentation ¶
Index ¶
- Variables
- 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
- type Breakpoint
- type BreakpointHandler
- type BreakpointInfo
- type Breakpoints
- type ContainerConfig
- type DebugConfig
- type Handler
- type Location
- type RegisteredStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExit = errors.New("exit") ErrReload = errors.New("reload") )
Functions ¶
func ExecContainer ¶
func ExecContainer(ctx context.Context, cfg ContainerConfig) (_ gwclient.ContainerProcess, _ func(), retErr error)
Types ¶
type BreakContext ¶
type BreakContext struct { Handler *Handler Info *RegisteredStatus Locs []*Location Hits map[string]BreakpointInfo }
type Breakpoint ¶
type Breakpoint interface { IsMarked(source *pb.SourceInfo, line int64) bool String() string // contains filtered or unexported methods }
func NewLineBreakpoint ¶
func NewLineBreakpoint(filename string, line int64) Breakpoint
func NewOnFailBreakpoint ¶
func NewOnFailBreakpoint() Breakpoint
type BreakpointHandler ¶
type BreakpointHandler func(ctx context.Context, bCtx BreakContext) error
type BreakpointInfo ¶
type Breakpoints ¶
type Breakpoints struct {
// contains filtered or unexported fields
}
func NewBreakpoints ¶
func NewBreakpoints() *Breakpoints
func (*Breakpoints) Add ¶
func (b *Breakpoints) Add(key string, bp Breakpoint) (string, error)
func (*Breakpoints) Clear ¶
func (b *Breakpoints) Clear(key string)
func (*Breakpoints) ClearAll ¶
func (b *Breakpoints) ClearAll()
func (*Breakpoints) ForEach ¶
func (b *Breakpoints) ForEach(f func(key string, bp Breakpoint) bool)
func (*Breakpoints) Get ¶
func (b *Breakpoints) Get(key string) (Breakpoint, bool)
type ContainerConfig ¶
type ContainerConfig struct { GatewayClient gwclient.Client Info *RegisteredStatus Args []string Tty bool Stdin io.ReadCloser Stdout, Stderr io.WriteCloser Image gwclient.Reference Mountroot string InputMount bool Env []string Cwd string WatchSignal func(ctx context.Context, proc gwclient.ContainerProcess, con console.Console) NoSetRaw bool // TODO: FIXME: execContainer should be agnostic about console config }
type DebugConfig ¶
type DebugConfig struct { BreakpointHandler BreakpointHandler DebugImage string Breakpoints *Breakpoints StopOnEntry bool DisableBreakpoints bool CleanupAll bool }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) BreakEachVertex ¶
func (*Handler) Breakpoints ¶
func (h *Handler) Breakpoints() *Breakpoints
func (*Handler) DebuggerImage ¶
func (*Handler) GatewayClient ¶
Click to show internal directories.
Click to hide internal directories.