Documentation ¶
Index ¶
- Variables
- func Boot(ctx, clientContext context.Context, d Driver, pw progress.Writer) (*client.Client, error)
- func HistoryAPISupported(ctx context.Context, c *client.Client) bool
- func Register(f Factory)
- type Auth
- type BuildkitConfig
- type Driver
- type Factory
- type Feature
- type Info
- type InitConfig
- type KubeClientConfig
- type KubeClientConfigInCluster
- type Status
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 ¶
Types ¶
type Auth ¶ added in v0.5.0
type Auth interface {
GetAuthConfig(registryHostname string) (clitypes.AuthConfig, error)
}
type BuildkitConfig ¶
type BuildkitConfig struct { }
type Driver ¶
type Driver interface { Factory() Factory Bootstrap(context.Context, progress.Logger) error Info(context.Context) (*Info, error) Version(context.Context) (string, error) Stop(ctx context.Context, force bool) error Rm(ctx context.Context, force, rmVolume, rmDaemon bool) error Client(ctx context.Context) (*client.Client, error) Features(ctx context.Context) map[Feature]bool IsMobyDriver() bool Config() InitConfig }
type Factory ¶
type Factory interface { Name() string Usage() string Priority(ctx context.Context, endpoint string, api dockerclient.APIClient) int New(ctx context.Context, cfg InitConfig) (Driver, error) AllowsInstances() bool }
func GetDefaultFactory ¶
func GetFactories ¶ added in v0.3.0
type Feature ¶
type Feature string
const CacheExport Feature = "Cache export"
const DockerExporter Feature = "Docker exporter"
const HistoryAPI Feature = "History API"
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 EndpointAddr string DockerAPI dockerclient.APIClient KubeClientConfig KubeClientConfig BuildkitFlags []string Files map[string][]byte DriverOpts map[string]string Auth Auth Platforms []specs.Platform // ContextPathHash can be used for determining pods in the driver instance ContextPathHash string }
type KubeClientConfig ¶ added in v0.5.0
type KubeClientConfigInCluster ¶ added in v0.5.0
type KubeClientConfigInCluster struct{}
func (KubeClientConfigInCluster) ClientConfig ¶ added in v0.5.0
func (k KubeClientConfigInCluster) ClientConfig() (*rest.Config, error)
Click to show internal directories.
Click to hide internal directories.