Documentation
¶
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 (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
- type SBOM
- type Source
Constants ¶
View Source
const ( DefaultLocalNameContext = "context" DefaultLocalNameDockerfile = "dockerfile" DefaultDockerfileName = "Dockerfile" DefaultDockerignoreName = ".dockerignore" EmptyImageName = "scratch" )
Variables ¶
This section is empty.
Functions ¶
func DefaultMainContext ¶
func DefaultMainContext(opts ...llb.LocalOption) *llb.State
func WithInternalName ¶
func WithInternalName(name string) llb.ConstraintsOpt
Types ¶
type Client ¶
type Client struct { Config // contains filtered or unexported fields }
func (*Client) HandleSubrequest ¶
func (*Client) MainContext ¶
func (*Client) NamedContext ¶
func (*Client) ReadEntrypoint ¶
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 RequestHandler ¶
type ResultBuilder ¶
func (*ResultBuilder) EachPlatform ¶
Click to show internal directories.
Click to hide internal directories.