Versions in this module Expand all Collapse all v0 v0.21.0 May 22, 2026 Changes in this version + const DaggerCallDigestEnv + const DaggerClientIDEnv + const DaggerEngineNumCPUEnv + const DaggerEngineVersionEnv + const DaggerHostnameAliasesEnv + const DaggerNoInitEnv + const DaggerQemuEmulatorMountPoint + const DaggerRedirectStderrEnv + const DaggerRedirectStdinEnv + const DaggerRedirectStdoutEnv + const DaggerSessionIDEnv + const DaggerSessionPortEnv + const DaggerSessionTokenEnv + const InstrumentationLibrary + const MaxExecErrorOutputBytes + const MaxFileContentsChunkSize + const MaxFileContentsSize + const MetaMountCombinedOutputPath + const MetaMountDestPath + const MetaMountExitCodePath + const MetaMountStderrPath + const MetaMountStdoutPath + const TruncationMessage + var SkipInputs = fmt.Errorf("skip inputs") + func NewSecretScrubReader(r io.Reader, env []string, secretEnvs []string, secretFiles []string) (io.Reader, error) + func ReadSnapshotPath(ctx context.Context, c *Client, mntable bkcache.MountableRef, filePath string, ...) ([]byte, error) + func RunInNetNS[T any](ctx context.Context, c *Client, ns Namespaced, fn func() (T, error)) (T, error) + func ShutdownGlobalNamespaceWorkerPool() — js/wasm, linux/amd64 + func ShutdownGlobalNamespaceWorkerPool() error — darwin/amd64, windows/amd64 + func StateIdx(ctx context.Context, st llb.State, idx solverpb.OutputIndex, ...) llb.State + func Tracer(ctx context.Context) trace.Tracer + type BlobOp struct + func (op *BlobOp) Digest() (digest.Digest, error) + type Client struct + func NewClient(ctx context.Context, opts *Opts) (*Client, error) + func (c *Client) AbsPath(ctx context.Context, path string) (string, error) + func (c *Client) Exec(ctx context.Context, id string, process executor.ProcessInfo) (err error) + func (c *Client) ExportContainerImage(ctx context.Context, destPath string, ...) (*imageexport.ExportResponse, error) + func (c *Client) GetCredential(ctx context.Context, protocol, host, path string) (*git.CredentialInfo, error) + func (c *Client) GetGitConfig(ctx context.Context) ([]*git.GitConfigEntry, error) + func (c *Client) GetSessionCaller(ctx context.Context) (_ SessionCaller, rerr error) + func (c *Client) IOReaderExport(ctx context.Context, r io.Reader, destPath string, destMode os.FileMode) (rerr error) + func (c *Client) ListenHostToContainer(ctx context.Context, hostListenAddr, proto, upstream string) (*h2c.ListenResponse, func() error, error) + func (c *Client) LocalDirExport(ctx context.Context, srcPath string, destPath string, merge bool, ...) (rerr error) + func (c *Client) LocalFileExport(ctx context.Context, srcPath string, filePath string, destPath string, ...) (rerr error) + func (c *Client) NewNetworkNamespace(ctx context.Context, hostname string) (Namespaced, error) + func (c *Client) OpenPipe(ctx context.Context) (io.ReadWriteCloser, error) + func (c *Client) OpenTerminal(ctx context.Context) (*TerminalClient, error) + func (c *Client) PromptAllowLLM(ctx context.Context, moduleRepoURL string) error + func (c *Client) PromptHumanHelp(ctx context.Context, title, question string) (string, error) + func (c *Client) PublishContainerImage(ctx context.Context, inputByPlatform map[string]ContainerExport, ...) (*imageexport.ExportResponse, error) + func (c *Client) ReadCallerHostFile(ctx context.Context, path string) ([]byte, error) + func (c *Client) ReadImage(ctx context.Context, name string) (*ImageReader, error) + func (c *Client) Run(ctx context.Context, id string, rootMount executor.Mount, ...) (rerr error) + func (c *Client) StatCallerHostPath(ctx context.Context, path string, returnAbsPath bool) (*fsutiltypes.Stat, error) + func (c *Client) WriteContainerImageTarball(ctx context.Context, w io.Writer, inputByPlatform map[string]ContainerExport, ...) error + func (c *Client) WriteImage(ctx context.Context, name string) (*ImageWriter, error) + type ContainerExport struct + Annotations []containerutil.ContainerAnnotation + Config dockerspec.DockerOCIImageConfig + Ref bkcache.ImmutableRef + type DiffOp struct + type ExecOp struct + func (exec *ExecOp) Input(i pb.InputIndex) *OpDAG + func (exec *ExecOp) OutputMount() *pb.Mount + func (exec *ExecOp) OutputMountBase() *OpDAG + type ExecutionMetadata struct + CallDigest digest.Digest + EnabledGPUs []string + ExtraSearchDomains []string + HostAliases map[string][]string + Internal bool + NoInit bool + RedirectStderrPath string + RedirectStdinPath string + RedirectStdoutPath string + SecretEnvNames []string + SecretFilePaths []string + SystemEnvNames []string + UseRecipeIDsByDefault bool + type FileOp struct + type GitOp struct + type GlobalNamespaceWorkerPool struct + func GetGlobalNamespaceWorkerPool() *GlobalNamespaceWorkerPool + func (gwp *GlobalNamespaceWorkerPool) RunInNamespaces(ctx context.Context, containerID string, namespaces []specs.LinuxNamespace, ...) error + func (gwp *GlobalNamespaceWorkerPool) RunInNamespaces(ctx context.Context, pid int, namespaces []specs.LinuxNamespace, ...) error + func (gwp *GlobalNamespaceWorkerPool) Start() + func (gwp *GlobalNamespaceWorkerPool) Start() error + func (gwp *GlobalNamespaceWorkerPool) Stop() + func (gwp *GlobalNamespaceWorkerPool) Stop() error + func (gwp *GlobalNamespaceWorkerPool) SubmitJob(ctx context.Context, job *NamespaceJob) error + type HTTPOp struct + type ImageOp struct + type ImageReader struct + ContentStore content.Store + ImagesStore images.Store + LeaseManager leases.Manager + Tarball io.ReadCloser + type ImageWriter struct + ContentStore content.Store + ImagesStore images.Store + LeaseManager leases.Manager + Tarball io.WriteCloser + type LocalOp struct + type MergeOp struct + type NamespaceJob struct + Container string + Fn func() error + Namespaces []specs.LinuxNamespace + PID int + ResultCh chan error + type Namespaced interface + NamespaceID func() string + Release func(context.Context) error + func NewDirectNS(id string) Namespaced + type OCIOp struct + type OpDAG struct + Inputs []*OpDAG + Metadata *pb.OpMetadata + OpDigest *digest.Digest + func DefToDAG(def *pb.Definition) (*OpDAG, error) + func (dag *OpDAG) AsBlob() (*BlobOp, bool) + func (dag *OpDAG) AsDiff() (*DiffOp, bool) + func (dag *OpDAG) AsExec() (*ExecOp, bool) + func (dag *OpDAG) AsFile() (*FileOp, bool) + func (dag *OpDAG) AsGit() (*GitOp, bool) + func (dag *OpDAG) AsHTTP() (*HTTPOp, bool) + func (dag *OpDAG) AsImage() (*ImageOp, bool) + func (dag *OpDAG) AsLocal() (*LocalOp, bool) + func (dag *OpDAG) AsMerge() (*MergeOp, bool) + func (dag *OpDAG) AsOCI() (*OCIOp, bool) + func (dag *OpDAG) EffectID() string + func (dag *OpDAG) Marshal() (*pb.Definition, error) + func (dag *OpDAG) OutputIndex() pb.OutputIndex + func (dag *OpDAG) String() string + func (dag *OpDAG) Walk(f func(*OpDAG) error) error + type Opts struct + ApparmorProfile string + Applier diff.Applier + CleanMntNS *os.File + ContentStore *containerdsnapshot.Store + DNSConfig *oci.DNSConfig + DefaultCgroupParent string + Dialer *net.Dialer + Differ diff.Comparer + Entitlements entitlements.Set + ExecutorRoot string + GetClientCaller func(context.Context, string) (SessionCaller, error) + GetHostServiceCaller func(context.Context, string) (SessionCaller, error) + GetMainClientCaller func(context.Context) (SessionCaller, error) + GetRegistryResolver func(context.Context) (*serverresolver.Resolver, error) + HostMntNS *os.File + ID string + IdentityMapping *idtools.IdentityMapping + Interactive bool + InteractiveCommand []string + Labels map[string]string + NetworkProviders map[pb.NetMode]network.Provider + Platforms []ocispecs.Platform + ProcessMode oci.ProcessMode + Runc *runc.Runc + SELinux bool + SessionHandler sessionHandler + Snapshotter bkcache.Snapshotter + TelemetryPubSub http.Handler + func NewOpts(opts Opts) (*Opts, error) + func (opts *Opts) Close() error + type SessionCaller interface + Conn func() *grpc.ClientConn + Supports func(method string) bool + type TerminalClient struct + Close func(exitCode int) error + ErrCh chan error + ResizeCh chan bkgw.WinSize + Stderr io.WriteCloser + Stdin io.ReadCloser + Stdout io.WriteCloser + type Trie struct + func (t *Trie) Insert(key []byte, value []byte) + func (t *Trie) Iter() *TrieIter + func (t *Trie) Step(ch byte) *TrieIter + func (t Trie) String() string + type TrieIter struct + func (t *TrieIter) Step(ch byte) *TrieIter + func (t *TrieIter) Value() []byte