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)
- 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) 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(ctx context.Context, name string, opt ContextOpt) (*llb.State, *image.Image, error)
- func (bc *Client) ReadEntrypoint(ctx context.Context, lang string, opts ...llb.LocalOption) (*Source, error)
- type Config
- type ContextOpt
- 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) (client.Reference, *image.Image, error)
type Client ¶
type Client struct {
Config
// contains filtered or unexported fields
}
func NewClient ¶
func (*Client) Build ¶
func (*Client) BuildOpts ¶
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(ctx context.Context, name string, opt ContextOpt) (*llb.State, *image.Image, 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
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 RequestHandler ¶
type RequestHandler struct {
Outline func(context.Context) (*outline.Outline, error)
ListTargets func(context.Context) (*targets.List, 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 SBOM struct {
Generator string
}
type Source ¶
Source Files ¶
attr.go build.go config.go context.go namedcontext.go requests.go
- Version
- v0.13.0-beta2
- Published
- Jan 30, 2024
- Platform
- linux/amd64
- Imports
- 37 packages
- Last checked
- 2 minutes ago –
Tools for package owners.