Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultDockerRootDirectory is the default directory where volumes will be created.
DefaultDockerRootDirectory = "/var/lib/docker-volumes"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability struct {
Scope string
}
Capability represents the list of capabilities a volume driver can return
type Driver ¶
type Driver interface { Create(Request) Response List(Request) Response Get(Request) Response Remove(Request) Response Path(Request) Response Mount(MountRequest) Response Unmount(UnmountRequest) Response Capabilities(Request) Response }
Driver represent the interface a driver must fulfill.
type Handler ¶
Handler forwards requests and responses between the docker daemon and the plugin.
func NewHandler ¶
NewHandler initializes the request handler with a driver implementation.
type MountRequest ¶
MountRequest structure for a volume mount request
type Response ¶
type Response struct { Mountpoint string Err string Volumes []*Volume Volume *Volume Capabilities Capability }
Response is the strucutre that the plugin's responses are serialized to.
type UnmountRequest ¶
UnmountRequest structure for a volume unmount request
Click to show internal directories.
Click to hide internal directories.