Documentation ¶
Index ¶
- Constants
- Variables
- func WriteDriverSpec(logger lager.Logger, pluginsDirectory string, driver string, extension string, ...) error
- type ActivateResponse
- type CapabilitiesResponse
- type CapabilityInfo
- type CreateRequest
- type Driver
- type DriverSpec
- type Env
- type ErrorResponse
- type GetRequest
- type GetResponse
- type ListResponse
- type MatchableDriver
- type MountRequest
- type MountResponse
- type PathRequest
- type PathResponse
- type Provisioner
- type RemoveRequest
- type SafeError
- type TLSConfig
- type UnmountRequest
- type VolumeInfo
Constants ¶
View Source
const ( ActivateRoute = "activate" CreateRoute = "create" GetRoute = "get" ListRoute = "list" MountRoute = "mount" PathRoute = "path" RemoveRoute = "remove" UnmountRoute = "unmount" CapabilitiesRoute = "capabilities" )
Variables ¶
View Source
var Routes = rata.Routes{ {Path: "/Plugin.Activate", Method: "POST", Name: ActivateRoute}, {Path: "/VolumeDriver.Create", Method: "POST", Name: CreateRoute}, {Path: "/VolumeDriver.Get", Method: "POST", Name: GetRoute}, {Path: "/VolumeDriver.List", Method: "POST", Name: ListRoute}, {Path: "/VolumeDriver.Mount", Method: "POST", Name: MountRoute}, {Path: "/VolumeDriver.Path", Method: "POST", Name: PathRoute}, {Path: "/VolumeDriver.Remove", Method: "POST", Name: RemoveRoute}, {Path: "/VolumeDriver.Unmount", Method: "POST", Name: UnmountRoute}, {Path: "/VolumeDriver.Capabilities", Method: "POST", Name: CapabilitiesRoute}, }
Functions ¶
Types ¶
type ActivateResponse ¶
type CapabilitiesResponse ¶
type CapabilitiesResponse struct {
Capabilities CapabilityInfo
}
type CapabilityInfo ¶
type CapabilityInfo struct {
Scope string
}
type CreateRequest ¶
type Driver ¶
type Driver interface { Activate(env Env) ActivateResponse Get(env Env, getRequest GetRequest) GetResponse List(env Env) ListResponse Mount(env Env, mountRequest MountRequest) MountResponse Path(env Env, pathRequest PathRequest) PathResponse Unmount(env Env, unmountRequest UnmountRequest) ErrorResponse Capabilities(env Env) CapabilitiesResponse Provisioner }
type DriverSpec ¶
type DriverSpec struct { Name string `json:"Name"` Address string `json:"Addr"` TLSConfig *TLSConfig `json:"TLSConfig"` UniqueVolumeIds bool `json:"UniqueVolumeIds"` }
func ReadDriverSpec ¶
func ReadDriverSpec(logger lager.Logger, specName string, driverPath string, specFile string) (*DriverSpec, error)
type ErrorResponse ¶
type ErrorResponse struct {
Err string
}
type GetRequest ¶
type GetRequest struct {
Name string
}
type GetResponse ¶
type GetResponse struct { Volume VolumeInfo Err string }
type ListResponse ¶
type ListResponse struct { Volumes []VolumeInfo Err string }
type MatchableDriver ¶
type MountRequest ¶
type MountRequest struct {
Name string
}
type MountResponse ¶
type PathRequest ¶
type PathRequest struct {
Name string
}
type PathResponse ¶
type Provisioner ¶
type Provisioner interface { Create(env Env, createRequest CreateRequest) ErrorResponse Remove(env Env, removeRequest RemoveRequest) ErrorResponse }
type RemoveRequest ¶
type RemoveRequest struct {
Name string
}
type UnmountRequest ¶
type UnmountRequest struct {
Name string
}
type VolumeInfo ¶
Click to show internal directories.
Click to hide internal directories.