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 CapabilitiesResponse ¶
type CapabilitiesResponse struct {
Capabilities CapabilityInfo
}
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 GetResponse ¶
type GetResponse struct { Volume VolumeInfo Err string }
type ListResponse ¶
type ListResponse struct { Volumes []VolumeInfo Err string }
type MatchableDriver ¶
type Provisioner ¶
type Provisioner interface { Create(env Env, createRequest CreateRequest) ErrorResponse Remove(env Env, removeRequest RemoveRequest) ErrorResponse }
type TLSConfig ¶
Source Files
¶
- driver_spec.go
- resources.go
Click to show internal directories.
Click to hide internal directories.