package builder
import "github.com/docker/buildx/builder"
Index ¶
- func Leave(ctx context.Context, txn *store.Txn, dockerCli command.Cli, opts LeaveOpts) error
- type Builder
- func Create(ctx context.Context, txn *store.Txn, dockerCli command.Cli, opts CreateOpts) (*Builder, error)
- func GetBuilders(dockerCli command.Cli, txn *store.Txn) ([]*Builder, error)
- func New(dockerCli command.Cli, opts ...Option) (_ *Builder, err error)
- func (b *Builder) Boot(ctx context.Context) (bool, error)
- func (b *Builder) ContextName() string
- func (b *Builder) Err() error
- func (b *Builder) Factory(ctx context.Context, dialMeta map[string][]string) (_ driver.Factory, err error)
- func (b *Builder) ImageOpt() (imagetools.Opt, error)
- func (b *Builder) Inactive() bool
- func (b *Builder) LoadNodes(ctx context.Context, opts ...LoadNodesOption) (_ []Node, err error)
- func (b *Builder) MarshalJSON() ([]byte, error)
- func (b *Builder) Nodes() []Node
- func (b *Builder) Validate() error
- type CreateOpts
- type LeaveOpts
- type LoadNodesOption
- func WithClientOpt(clientOpt ...client.ClientOpt) LoadNodesOption
- func WithData() LoadNodesOption
- func WithDialMeta(dialMeta map[string][]string) LoadNodesOption
- type Node
- type Option
Functions ¶
func Leave ¶
Types ¶
type Builder ¶
Builder represents an active builder object
func Create ¶
func Create(ctx context.Context, txn *store.Txn, dockerCli command.Cli, opts CreateOpts) (*Builder, error)
func GetBuilders ¶
GetBuilders returns all builders
func New ¶
New initializes a new builder client
func (*Builder) Boot ¶
Boot bootstrap a builder
func (*Builder) ContextName ¶
ContextName returns builder context name if available.
func (*Builder) Err ¶
Err returns error if any.
func (*Builder) Factory ¶
func (b *Builder) Factory(ctx context.Context, dialMeta map[string][]string) (_ driver.Factory, err error)
Factory returns the driver factory.
func (*Builder) ImageOpt ¶
func (b *Builder) ImageOpt() (imagetools.Opt, error)
ImageOpt returns registry auth configuration
func (*Builder) Inactive ¶
Inactive checks if all nodes are inactive for this builder.
func (*Builder) LoadNodes ¶
LoadNodes loads and returns nodes for this builder. TODO: this should be a method on a Node object and lazy load data for each driver.
func (*Builder) MarshalJSON ¶
func (*Builder) Nodes ¶
Nodes returns nodes for this builder.
func (*Builder) Validate ¶
Validate validates builder context
type CreateOpts ¶
type CreateOpts struct { Name string Driver string NodeName string Platforms []string BuildkitdFlags string BuildkitdConfigFile string DriverOpts []string Use bool Endpoint string Append bool }
type LeaveOpts ¶
type LoadNodesOption ¶
type LoadNodesOption func(*loadNodesOptions)
func WithClientOpt ¶
func WithClientOpt(clientOpt ...client.ClientOpt) LoadNodesOption
func WithData ¶
func WithData() LoadNodesOption
func WithDialMeta ¶
func WithDialMeta(dialMeta map[string][]string) LoadNodesOption
type Node ¶
type Node struct { store.Node Builder string Driver *driver.DriverHandle DriverInfo *driver.Info ImageOpt imagetools.Opt ProxyConfig map[string]string Version string Err error // worker settings IDs []string Platforms []ocispecs.Platform GCPolicy []client.PruneInfo Labels map[string]string CDIDevices []client.CDIDevice }
func (*Node) MarshalJSON ¶
type Option ¶
type Option func(b *Builder)
Option provides a variadic option for configuring the builder.
func WithContextPathHash ¶
WithContextPathHash is used for determining pods in k8s driver instance.
func WithName ¶
WithName sets builder name.
func WithSkippedValidation ¶
func WithSkippedValidation() Option
WithSkippedValidation skips builder context validation.
func WithStore ¶
WithStore sets a store instance used at init.
Source Files ¶
- Version
- v0.22.0 (latest)
- Published
- Mar 17, 2025
- Platform
- js/wasm
- Imports
- 33 packages
- Last checked
- 3 weeks ago –
Tools for package owners.