Versions in this module Expand all Collapse all v0 v0.4.0 Mar 4, 2022 Changes in this version + const DebugContinue + const DebugNext + const DebugNone + const DebugRestart + const DebugStartStop + const DebugStep + const DebugStepOut + const DebugTerminate + const HistoryComment + const ModuleFilename + var Callables = map[ast.Kind]map[string]interface + var DefaultFilename = "build.hlb" + var ErrDebugExit = errors.Errorf("exiting debugger") + var PrototypeIn []reflect.Type + var PrototypeOut []reflect.Type + func Arg(ctx context.Context, n int) ast.Node + func Binding(ctx context.Context) *ast.Binding + func CheckPrototype(callable interface{}) error + func DefaultPlatform(ctx context.Context) specs.Platform + func ExecWithFS(ctx context.Context, cln *client.Client, fs Filesystem, opts Option, ...) error + func ExecWithSolveErr(ctx context.Context, c gateway.Client, se *solvererrdefs.SolveError, ...) error + func FramesToSources(frames []Frame) (sources []*errdefs.Source) + func FramesToSpans(ctx context.Context, frames []Frame) []*diagnostic.SpanError + func GlobalSolveOpts(ctx context.Context) []solver.SolveOption + func ImageResolver(ctx context.Context) llb.ImageMetaResolver + func Module(ctx context.Context) *ast.Module + func ModuleDir(ctx context.Context) string + func MultiWriter(ctx context.Context) *solver.MultiWriter + func NewCachedImageResolver(cln *client.Client) llb.ImageMetaResolver + func NopWriteCloser(w io.Writer) io.WriteCloser + func ParseModuleURI(ctx context.Context, cln *client.Client, dir ast.Directory, uri string) (*ast.Module, error) + func ProgramCounter(ctx context.Context) ast.Node + func Progress(ctx context.Context) solver.Progress + func ReflectTo(v Value, t reflect.Type) (reflect.Value, error) + func ReturnType(ctx context.Context) ast.Kind + func SessionID(ctx context.Context) string + func ShlexArgs(args []string, shlex bool) ([]string, error) + func SourceMap(ctx context.Context) (opts []llb.ConstraintsOpt) + func SubtestDebuggerBacktrace(t *testing.T, d Debugger) + func SubtestDebuggerBreakpoint(t *testing.T, d Debugger) + func SubtestDebuggerEarlyExit(t *testing.T, d Debugger) + func SubtestDebuggerMovement(t *testing.T, d Debugger) + func SubtestDebuggerSourceDefinedBreakpoint(t *testing.T, d Debugger) + func SubtestDebuggerSuite(t *testing.T, factory DebuggerFactory) + func WithArg(ctx context.Context, n int, arg ast.Node) context.Context + func WithBacktraceError(ctx context.Context, err error) error + func WithBinding(ctx context.Context, binding *ast.Binding) context.Context + func WithCallbackErrgroup(ctx context.Context, g *errgroup.Group) solver.SolveOption + func WithDebugger(ctx context.Context, dbgr Debugger) context.Context + func WithDefaultPlatform(ctx context.Context, platform specs.Platform) context.Context + func WithDockerAPI(ctx context.Context, cln dockerclient.APIClient, auth imagetools.Auth, ...) context.Context + func WithFrame(ctx context.Context, frame Frame) context.Context + func WithGlobalSolveOpts(ctx context.Context, opts ...solver.SolveOption) context.Context + func WithImageResolver(ctx context.Context, resolver llb.ImageMetaResolver) context.Context + func WithMultiWriter(ctx context.Context, mw *solver.MultiWriter) context.Context + func WithProgramCounter(ctx context.Context, node ast.Node) context.Context + func WithProgress(ctx context.Context, p solver.Progress) context.Context + func WithReturnType(ctx context.Context, kind ast.Kind) context.Context + func WithSessionID(ctx context.Context, sessionID string) context.Context + type AllowEmptyWildcard struct + func (aew AllowEmptyWildcard) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type AllowNotFound struct + func (anf AllowNotFound) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type AllowWildcard struct + func (aw AllowWildcard) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Breakpoint struct + Disabled bool + Index int + SourceDefined bool + func (bp *Breakpoint) ID() string + func (bp *Breakpoint) Print(ctx context.Context, w io.Writer, cleared bool) + type Cache struct + func (c Cache) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Checksum struct + func (c Checksum) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Chmod struct + func (c Chmod) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Chown struct + func (c Chown) Call(ctx context.Context, cln *client.Client, val Value, opts Option, owner string) (Value, error) + type Cmd struct + func (c Cmd) Call(ctx context.Context, cln *client.Client, val Value, opts Option, cmd ...string) (Value, error) + type CodeGen struct + func New(cln *client.Client, resolver Resolver) *CodeGen + func (cg *CodeGen) EmitBasicLit(ctx context.Context, scope *ast.Scope, lit *ast.BasicLit, ret Register) error + func (cg *CodeGen) EmitBinding(ctx context.Context, b *ast.Binding, args []Register, ret Register) error + func (cg *CodeGen) EmitBlock(ctx context.Context, scope *ast.Scope, block *ast.BlockStmt, b *ast.Binding, ...) error + func (cg *CodeGen) EmitBuiltinDecl(ctx context.Context, scope *ast.Scope, bd *ast.BuiltinDecl, args []Register, ...) (Value, error) + func (cg *CodeGen) EmitCallExpr(ctx context.Context, scope *ast.Scope, call *ast.CallExpr, ret Register) error + func (cg *CodeGen) EmitCallStmt(ctx context.Context, scope *ast.Scope, call *ast.CallStmt, b *ast.Binding, ...) error + func (cg *CodeGen) EmitExpr(ctx context.Context, scope *ast.Scope, expr *ast.Expr, opts Option, ...) error + func (cg *CodeGen) EmitFuncDecl(ctx context.Context, fd *ast.FuncDecl, args []Register, b *ast.Binding, ...) error + func (cg *CodeGen) EmitFuncLit(ctx context.Context, scope *ast.Scope, lit *ast.FuncLit, b *ast.Binding, ...) error + func (cg *CodeGen) EmitHeredoc(ctx context.Context, scope *ast.Scope, heredoc *ast.Heredoc, ret Register) error + func (cg *CodeGen) EmitIdentExpr(ctx context.Context, scope *ast.Scope, ie *ast.IdentExpr, lookup *ast.Ident, ...) error + func (cg *CodeGen) EmitImport(ctx context.Context, mod *ast.Module, id *ast.ImportDecl) (*ast.Module, error) + func (cg *CodeGen) EmitRawHeredoc(ctx context.Context, scope *ast.Scope, heredoc *ast.RawHeredoc, ret Register) error + func (cg *CodeGen) EmitStringLit(ctx context.Context, scope *ast.Scope, str *ast.StringLit, ret Register) error + func (cg *CodeGen) Evaluate(ctx context.Context, scope *ast.Scope, call ast.CallNode, b *ast.Binding) []Register + func (cg *CodeGen) Generate(ctx context.Context, mod *ast.Module, targets []Target) (result solver.Request, err error) + type ContentsOnly struct + func (co ContentsOnly) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Copy struct + func (m Copy) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type CopyAllowWildcard struct + func (caw CopyAllowWildcard) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type CreateDestPath struct + func (cdp CreateDestPath) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type CreateParents struct + func (cp CreateParents) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type CreatedTime struct + func (ct CreatedTime) Call(ctx context.Context, cln *client.Client, val Value, opts Option, t time.Time) (Value, error) + type DebugMode int + type Debugger interface + Backtrace func() ([]Frame, error) + Breakpoints func() ([]*Breakpoint, error) + ClearBreakpoint func(bp *Breakpoint) error + Continue func(Direction) (*State, error) + CreateBreakpoint func(bp *Breakpoint) (*Breakpoint, error) + Exec func(ctx context.Context, stdin io.ReadCloser, stdout, stderr io.Writer, ...) error + GetState func() (*State, error) + Next func(Direction) (*State, error) + Restart func() (*State, error) + Step func(Direction) (*State, error) + StepOut func(Direction) (*State, error) + Terminate func() error + func GetDebugger(ctx context.Context) Debugger + func NewDebugger(cln *client.Client, opts ...DebuggerOption) Debugger + type DebuggerFactory func() Debugger + type DebuggerOption func(*debugger) + func WithInitialMode(mode DebugMode) DebuggerOption + type Diff struct + func (d Diff) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Dir struct + func (d Dir) Call(ctx context.Context, cln *client.Client, val Value, opts Option, wd string) (Value, error) + type Direction int8 + const BackwardDirection + const ForwardDirection + const NoneDirection + type DockerAPIClient struct + Auth imagetools.Auth + Err error + Moby bool + func DockerAPI(ctx context.Context) DockerAPIClient + type DockerLoad struct + func (dl DockerLoad) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ref string) (Value, error) + type DockerPush struct + func (dp DockerPush) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ref string) (Value, error) + type Download struct + func (d Download) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type DownloadDockerTarball struct + func (dot DownloadDockerTarball) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type DownloadOCITarball struct + func (dot DownloadOCITarball) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type DownloadTarball struct + func (dt DownloadTarball) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Entrypoint struct + func (e Entrypoint) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Env struct + func (e Env) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type ExcludePatterns struct + func (ep ExcludePatterns) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Expose struct + func (e Expose) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Filename struct + func (f Filename) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Filesystem struct + Image *solver.ImageSpec + Platform specs.Platform + SessionOpts []llbutil.SessionOption + SolveOpts []solver.SolveOption + State llb.State + func (fs Filesystem) Digest(ctx context.Context) (digest.Digest, error) + func (fs Filesystem) Tree() (treeprint.Tree, error) + type FollowSymlinks struct + func (fs FollowSymlinks) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Format struct + func (f Format) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Forward struct + func (f Forward) Call(ctx context.Context, cln *client.Client, val Value, opts Option, src *url.URL, ...) (Value, error) + type Frame struct + Name string + func Backtrace(ctx context.Context) []Frame + func NewFrame(scope *ast.Scope, node ast.Node) Frame + type Frontend struct + func (f Frontend) Call(ctx context.Context, cln *client.Client, val Value, opts Option, source string) (Value, error) + type FrontendInput struct + func (fi FrontendInput) Call(ctx context.Context, cln *client.Client, val Value, opts Option, key string, ...) (Value, error) + type FrontendOpt struct + func (fo FrontendOpt) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type GID struct + func (g GID) Call(ctx context.Context, cln *client.Client, val Value, opts Option, gid int) (Value, error) + type Git struct + func (g Git) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type HTTP struct + func (h HTTP) Call(ctx context.Context, cln *client.Client, val Value, opts Option, url string) (Value, error) + type Host struct + func (s Host) Call(ctx context.Context, cln *client.Client, val Value, opts Option, host string, ...) (Value, error) + type IgnoreCache struct + func (ig IgnoreCache) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type IgnoreError struct + func (ie IgnoreError) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Image struct + func (i Image) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ref string) (Value, error) + type IncludePatterns struct + func (ip IncludePatterns) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type IncludeStderr struct + func (is IncludeStderr) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type KeepGitDir struct + func (kgd KeepGitDir) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Label struct + func (l Label) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Local struct + func (l Local) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type LocalArch struct + func (la LocalArch) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type LocalCwd struct + func (lc LocalCwd) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type LocalEnv struct + func (le LocalEnv) Call(ctx context.Context, cln *client.Client, val Value, opts Option, key string) (Value, error) + type LocalOS struct + func (lo LocalOS) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type LocalPaths struct + func (lp LocalPaths) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type LocalRun struct + func (lr LocalRun) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type LocalRunOption struct + IgnoreError bool + IncludeStderr bool + OnlyStderr bool + type Manifest struct + func (m Manifest) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ref string) (Value, error) + type Merge struct + func (m Merge) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Mkdir struct + func (m Mkdir) Call(ctx context.Context, cln *client.Client, val Value, opts Option, path string, ...) (Value, error) + type Mkfile struct + func (m Mkfile) Call(ctx context.Context, cln *client.Client, val Value, opts Option, path string, ...) (Value, error) + type Mount struct + Bind string + Image *solver.ImageSpec + func (m Mount) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type MountTarget struct + func (mt MountTarget) Call(ctx context.Context, cln *client.Client, val Value, opts Option, target string) (Value, error) + type Network struct + func (n Network) Call(ctx context.Context, cln *client.Client, val Value, opts Option, mode string) (Value, error) + type OnlyStderr struct + func (os OnlyStderr) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Option []interface + type Platform struct + func (p Platform) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Prototype struct + func (p Prototype) Call(ctx context.Context, cln *client.Client, v Value, opts Option) (Value, error) + type Readonly struct + func (r Readonly) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type ReadonlyRootfs struct + func (rr ReadonlyRootfs) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Register interface + Set func(interface{}) error + SetAsync func(func(Value) (Value, error)) + Value func() Value + func NewRegister(ctx context.Context) Register + type Resolve struct + func (ir Resolve) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Resolver interface + Resolve func(ctx context.Context, id *ast.ImportDecl, fs Filesystem) (ast.Directory, error) + type Rm struct + func (m Rm) Call(ctx context.Context, cln *client.Client, val Value, opts Option, path string) (Value, error) + type Run struct + func (r Run) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type RunDir struct + func (rd RunDir) Call(ctx context.Context, cln *client.Client, val Value, opts Option, path string) (Value, error) + type RunEnv struct + func (re RunEnv) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type RunUser struct + func (ru RunUser) Call(ctx context.Context, cln *client.Client, val Value, opts Option, name string) (Value, error) + type SSH struct + func (s SSH) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Scratch struct + func (s Scratch) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type Secret struct + func (s Secret) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Security struct + func (s Security) Call(ctx context.Context, cln *client.Client, val Value, opts Option, mode string) (Value, error) + type SetBreakpoint struct + func (sb SetBreakpoint) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Shlex struct + func (s Shlex) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type SourcePath struct + func (sp SourcePath) Call(ctx context.Context, cln *client.Client, val Value, opts Option, path string) (Value, error) + type Stage struct + func (s Stage) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Stargz struct + func (s Stargz) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type State struct + Ctx context.Context + Err error + Node ast.Node + Options Option + Scope *ast.Scope + StopReason string + Value Value + type StopSignal struct + func (ss StopSignal) Call(ctx context.Context, cln *client.Client, val Value, opts Option, signal string) (Value, error) + type StringField struct + func (sf StringField) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type Target struct + Name string + type Template struct + func (t Template) Call(ctx context.Context, cln *client.Client, val Value, opts Option, text string) (Value, error) + type TemplateField struct + Name string + Value interface{} + type Tmpfs struct + func (t Tmpfs) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type UID struct + func (u UID) Call(ctx context.Context, cln *client.Client, val Value, opts Option, uid int) (Value, error) + type Unpack struct + func (u Unpack) Call(ctx context.Context, cln *client.Client, val Value, opts Option) (Value, error) + type User struct + func (u User) Call(ctx context.Context, cln *client.Client, val Value, opts Option, name string) (Value, error) + type UtilChmod struct + func (uc UtilChmod) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error) + type UtilChown struct + func (uc UtilChown) Call(ctx context.Context, cln *client.Client, val Value, opts Option, owner string) (Value, error) + type UtilCreatedTime struct + func (uct UtilCreatedTime) Call(ctx context.Context, cln *client.Client, val Value, opts Option, t time.Time) (Value, error) + type Value interface + Filesystem func() (Filesystem, error) + Int func() (int, error) + Kind func() ast.Kind + Option func() (Option, error) + Reflect func(reflect.Type) (reflect.Value, error) + Request func() (solver.Request, error) + String func() (string, error) + func NewValue(ctx context.Context, iface interface{}) (Value, error) + func ZeroValue(ctx context.Context) Value + type Volumes struct + func (Volumes) Call(ctx context.Context, cln *client.Client, val Value, opts Option, ...) (Value, error)