Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvDaggerCloudToken = "DAGGER_CLOUD_TOKEN" EnvGPUSupport = "_EXPERIMENTAL_DAGGER_GPU_SUPPORT" )
View Source
const InstrumentationLibrary = "dagger.io/client.drivers"
Variables ¶
View Source
var (
TLSHandshakeTimeout = 15 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector interface {
// Connect creates a connection to a dagger instance.
//
// Connect can be called multiple times during attempts to establish a
// connection - but a connector can choose to block this call until
// previously returned connections have been closed.
Connect(ctx context.Context) (net.Conn, error)
}
type Driver ¶
type Driver interface {
// Available returns true if the driver backend is running and available for use.
Available(ctx context.Context) (bool, error)
// Provision creates any underlying resources for a driver, and returns a
// Connector that can connect to it.
Provision(ctx context.Context, url *url.URL, opts *DriverOpts) (Connector, error)
// ImageLoader returns an optional associated image loader - not all
// drivers will have this!
ImageLoader(ctx context.Context) imageload.Backend
}
type DriverOpts ¶
Click to show internal directories.
Click to hide internal directories.