package dockerui
import "github.com/moby/buildkit/frontend/dockerui"
Index ¶
- Constants
- func DefaultMainContext(opts ...llb.LocalOption) *llb.State
- func DetectGitContext(ref string, keepGit *bool) (*llb.State, bool, error)
- func DetectHTTPContext(ref string) (*llb.State, string, bool)
- func WithInternalName(name string) llb.ConstraintsOpt
- type BuildFunc
- type Client
- func NewClient(c client.Client) (*Client, error)
- func (bc *Client) Build(ctx context.Context, fn BuildFunc) (*ResultBuilder, error)
- func (bc *Client) BuildOpts() client.BuildOpts
- func (bc *Client) DockerIgnorePatterns(ctx context.Context) ([]string, error)
- func (bc *Client) HandleSubrequest(ctx context.Context, h RequestHandler) (*client.Result, bool, error)
- func (bc *Client) IsNoCache(name string) bool
- func (bc *Client) MainContext(ctx context.Context, opts ...llb.LocalOption) (*llb.State, error)
- func (bc *Client) NamedContext(name string, opt ContextOpt) (*NamedContext, error)
- func (bc *Client) ReadEntrypoint(ctx context.Context, lang string, opts ...llb.LocalOption) (*Source, error)
- type Config
- type ContextOpt
- type NamedContext
- type RequestHandler
- type ResultBuilder
- func (rb *ResultBuilder) EachPlatform(ctx context.Context, fn func(ctx context.Context, id string, p ocispecs.Platform) error) error
- func (rb *ResultBuilder) Finalize() (*client.Result, error)
- type SBOM
- type Source
Constants ¶
const ( DefaultLocalNameContext = "context" DefaultLocalNameDockerfile = "dockerfile" DefaultDockerfileName = "Dockerfile" DefaultDockerignoreName = ".dockerignore" EmptyImageName = "scratch" )
Functions ¶
func DefaultMainContext ¶
func DefaultMainContext(opts ...llb.LocalOption) *llb.State
func DetectGitContext ¶
func DetectHTTPContext ¶
func WithInternalName ¶
func WithInternalName(name string) llb.ConstraintsOpt
Types ¶
type BuildFunc ¶
type BuildFunc func(ctx context.Context, platform *ocispecs.Platform, idx int) (r client.Reference, img, baseImg *dockerspec.DockerOCIImage, err error)
type Client ¶
type Client struct {
Config
// contains filtered or unexported fields
}
func NewClient ¶
func (*Client) Build ¶
func (*Client) BuildOpts ¶
func (*Client) DockerIgnorePatterns ¶
func (*Client) HandleSubrequest ¶
func (bc *Client) HandleSubrequest(ctx context.Context, h RequestHandler) (*client.Result, bool, error)
func (*Client) IsNoCache ¶
func (*Client) MainContext ¶
func (*Client) NamedContext ¶
func (bc *Client) NamedContext(name string, opt ContextOpt) (*NamedContext, error)
func (*Client) ReadEntrypoint ¶
func (bc *Client) ReadEntrypoint(ctx context.Context, lang string, opts ...llb.LocalOption) (*Source, error)
type Config ¶
type Config struct {
BuildArgs map[string]string
CacheIDNamespace string
CgroupParent string
Epoch *time.Time
ExtraHosts []llb.HostIP
Hostname string
ImageResolveMode llb.ResolveMode
Labels map[string]string
NetworkMode pb.NetMode
ShmSize int64
Target string
Ulimits []*pb.Ulimit
Devices []*pb.CDIDevice
LinterConfig *linter.Config
CacheImports []client.CacheOptionsEntry
TargetPlatforms []ocispecs.Platform // nil means default
BuildPlatforms []ocispecs.Platform
MultiPlatformRequested bool
SBOM *SBOM
}
type ContextOpt ¶
type ContextOpt struct {
NoDockerignore bool
AsyncLocalOpts func() []llb.LocalOption
Platform *ocispecs.Platform
ResolveMode string
CaptureDigest *digest.Digest
}
type NamedContext ¶
type NamedContext struct {
// contains filtered or unexported fields
}
func (*NamedContext) Load ¶
func (nc *NamedContext) Load(ctx context.Context) (*llb.State, *dockerspec.DockerOCIImage, error)
type RequestHandler ¶
type RequestHandler struct {
Outline func(context.Context) (*outline.Outline, error)
ListTargets func(context.Context) (*targets.List, error)
Lint func(context.Context) (*lint.LintResults, error)
AllowOther bool
}
type ResultBuilder ¶
func (*ResultBuilder) EachPlatform ¶
func (rb *ResultBuilder) EachPlatform(ctx context.Context, fn func(ctx context.Context, id string, p ocispecs.Platform) error) error
func (*ResultBuilder) Finalize ¶
func (rb *ResultBuilder) Finalize() (*client.Result, error)
type SBOM ¶
type Source ¶
Source Files ¶
attr.go build.go config.go context.go namedcontext.go requests.go
- Version
- v0.25.1
- Published
- Oct 7, 2025
- Platform
- darwin/amd64
- Imports
- 41 packages
- Last checked
- 24 minutes ago –
Tools for package owners.