Documentation ¶
Index ¶
- func Leave(ctx context.Context, txn *store.Txn, dockerCli command.Cli, opts LeaveOpts) error
- type Builder
- 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
- type Node
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
Builder represents an active builder object
func GetBuilders ¶
GetBuilders returns all builders
func (*Builder) ContextName ¶
ContextName returns builder context name if available.
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) 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 ¶ added in v0.13.0
type CreateOpts ¶ added in v0.13.0
type LoadNodesOption ¶ added in v0.12.0
type LoadNodesOption func(*loadNodesOptions)
func WithClientOpt ¶ added in v0.16.0
func WithClientOpt(clientOpt ...client.ClientOpt) LoadNodesOption
func WithData ¶ added in v0.12.0
func WithData() LoadNodesOption
func WithDialMeta ¶ added in v0.12.0
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 }
func (*Node) MarshalJSON ¶ added in v0.13.0
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 WithSkippedValidation ¶
func WithSkippedValidation() Option
WithSkippedValidation skips builder context validation.
Click to show internal directories.
Click to hide internal directories.