Documentation
¶
Overview ¶
Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0
Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0
Portions Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotConnecting = errors.Errorf("driver not connecting")
View Source
var ErrNotRunning = errors.Errorf("driver not running")
Functions ¶
func GetFactories ¶
Types ¶
type BuilderClients ¶ added in v0.1.4
type BuilderClients struct {
// The builder on the chosen node/pod
ChosenNode NodeClient
// If multiple builders present, clients to the other builders (excluding the chosen pod)
OtherNodes []NodeClient
}
type BuildkitConfig ¶
type BuildkitConfig struct {
}
type Driver ¶
type Driver interface {
Factory() Factory
Bootstrap(context.Context, progress.Logger) error
Info(context.Context) (*Info, error)
Stop(ctx context.Context, force bool) error
Rm(ctx context.Context, force bool) error
Clients(ctx context.Context) (*BuilderClients, error)
Features() map[Feature]bool
List(ctx context.Context) ([]Builder, error)
RuntimeSockProxy(ctx context.Context, name string) (net.Conn, error)
GetVersion(ctx context.Context) (string, error)
// TODO - do we really need both? Seems like some cleanup needed here...
GetAuthWrapper(string) imagetools.Auth
GetAuthProvider(secretName string, stderr io.Writer) session.Attachable
GetAuthHintMessage() string
}
type Factory ¶
type Factory interface {
Name() string
Usage() string
Priority(context.Context) int
New(ctx context.Context, cfg InitConfig) (Driver, error)
AllowsInstances() bool
}
func GetDefaultFactory ¶
func GetFactory ¶
type Feature ¶
type Feature string
const CacheExport Feature = "cache export"
const ContainerdExporter Feature = "Containerd exporter"
const DockerExporter Feature = "Docker exporter"
const MultiPlatform Feature = "multiple platforms"
const OCIExporter Feature = "OCI exporter"
type InitConfig ¶
type InitConfig struct {
// This object needs updates to be generic for different drivers
Name string
//DockerAPI dockerclient.APIClient
KubeClientConfig clientcmd.ClientConfig
BuildkitFlags []string
ConfigFile string
DriverOpts map[string]string
// ContextPathHash can be used for determining pods in the driver instance
ContextPathHash string
}
type NodeClient ¶ added in v0.1.4
Directories
¶
| Path | Synopsis |
|---|---|
|
execconn
Portions Copyright (C) 2020 VMware, Inc.
|
Portions Copyright (C) 2020 VMware, Inc. |
|
manifest
Portions Copyright (C) 2020 VMware, Inc.
|
Portions Copyright (C) 2020 VMware, Inc. |
|
podchooser
Portions Copyright (C) 2020 VMware, Inc.
|
Portions Copyright (C) 2020 VMware, Inc. |
Click to show internal directories.
Click to hide internal directories.