Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mount ¶
type Mount struct { Source string Target string Permission Permission }
Mount describes mount settings.
type Option ¶
type Option func(options interface{}) error
Option specifies how a Docker plugin can be configured.
func WithOptions ¶
WithOptions constructs an option that forwards the given generic options to the plugin.
func WithPluginSocketDir ¶
WithPluginSocketDir constructs an option that specifies the plugin directory where Unix sockets live.
type Options ¶
type Options struct {
SocketDir string
}
Options describes generic volume plugin options.
type Permission ¶
type Permission uint32
const ( RW Permission = iota RO )
func ParsePermission ¶
func ParsePermission(mode string) (Permission, error)
type Volume ¶
type Volume interface { // Configure mutates the specified host config applying required settings. Configure(mount Mount, cfg *container.HostConfig) error }
Volume specifies volume interface, that is mounted within Docker containers.
type VolumeDriver ¶
type VolumeDriver interface { // CreateVolume creates a new volume using specified name and Option. CreateVolume(name string, options map[string]string) (Volume, error) // RemoveVolume removes an existing volume. RemoveVolume(name string) error // Close closes this driver, freeing all associated resources. Close() error }
VolumeDriver specifies volume driver interface, providing abilities to create new volumes for containers.
func NewCIFSVolumeDriver ¶
func NewCIFSVolumeDriver(ctx context.Context, options ...Option) (VolumeDriver, error)
NewCIFSVolumeDriver constructs and runs a new CIFS volume driver within the provided error group.
func NewNilVolumeDriver ¶
func NewNilVolumeDriver() VolumeDriver
NewNilVolumeDriver constructs a new volume driver that does nothing.
Used primarily in systems that are unable to manage Docker plugins for to be able to at least start the Worker.
func NewVolumeDriver ¶
NewVolumeDriver constructs a new volume driver.