{"modulePath":"code.cloudfoundry.org/dockerdriver","version":"v0.118.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package dockerdriver\n\n## Constants\n\n```go\nconst (\n\tActivateRoute     = \"activate\"\n\tCreateRoute       = \"create\"\n\tGetRoute          = \"get\"\n\tListRoute         = \"list\"\n\tMountRoute        = \"mount\"\n\tPathRoute         = \"path\"\n\tRemoveRoute       = \"remove\"\n\tUnmountRoute      = \"unmount\"\n\tCapabilitiesRoute = \"capabilities\"\n)\n```\n\n## Variables\n\n```go\nvar Routes = rata.Routes{\n\t{Path: \"/Plugin.Activate\", Method: \"POST\", Name: ActivateRoute},\n\t{Path: \"/VolumeDriver.Create\", Method: \"POST\", Name: CreateRoute},\n\t{Path: \"/VolumeDriver.Get\", Method: \"POST\", Name: GetRoute},\n\t{Path: \"/VolumeDriver.List\", Method: \"POST\", Name: ListRoute},\n\t{Path: \"/VolumeDriver.Mount\", Method: \"POST\", Name: MountRoute},\n\t{Path: \"/VolumeDriver.Path\", Method: \"POST\", Name: PathRoute},\n\t{Path: \"/VolumeDriver.Remove\", Method: \"POST\", Name: RemoveRoute},\n\t{Path: \"/VolumeDriver.Unmount\", Method: \"POST\", Name: UnmountRoute},\n\t{Path: \"/VolumeDriver.Capabilities\", Method: \"POST\", Name: CapabilitiesRoute},\n}\n```\n\n## Functions\n\n```go\nfunc WriteDriverSpec(logger lager.Logger, pluginsDirectory string, driver string, extension string, contents []byte) error\n```\n\n## Types\n\n```go\ntype ActivateResponse struct {\n\tErr        string\n\tImplements []string\n}\n```\n\n```go\ntype CapabilitiesResponse struct {\n\tCapabilities CapabilityInfo\n}\n```\n\n```go\ntype CapabilityInfo struct {\n\tScope string\n}\n```\n\n```go\ntype CreateRequest struct {\n\tName string\n\tOpts map[string]interface{}\n}\n```\n\n```go\ntype Driver interface {\n\tActivate(env Env) ActivateResponse\n\tGet(env Env, getRequest GetRequest) GetResponse\n\tList(env Env) ListResponse\n\tMount(env Env, mountRequest MountRequest) MountResponse\n\tPath(env Env, pathRequest PathRequest) PathResponse\n\tUnmount(env Env, unmountRequest UnmountRequest) ErrorResponse\n\tCapabilities(env Env) CapabilitiesResponse\n\n\tProvisioner\n}\n```\n\n```go\ntype DriverSpec struct {\n\tName            string     `json:\"Name\"`\n\tAddress         string     `json:\"Addr\"`\n\tTLSConfig       *TLSConfig `json:\"TLSConfig\"`\n\tUniqueVolumeIds bool       `json:\"UniqueVolumeIds\"`\n}\n```\n\n```go\nfunc ReadDriverSpec(logger lager.Logger, specName string, driverPath string, specFile string) (*DriverSpec, error)\n```\n\n```go\ntype Env interface {\n\tLogger() lager.Logger\n\tContext() context.Context\n}\n```\n\n```go\ntype ErrorResponse struct {\n\tErr string\n}\n```\n\n```go\ntype GetRequest struct {\n\tName string\n}\n```\n\n```go\ntype GetResponse struct {\n\tVolume VolumeInfo\n\tErr    string\n}\n```\n\n```go\ntype ListResponse struct {\n\tVolumes []VolumeInfo\n\tErr     string\n}\n```\n\n```go\ntype MatchableDriver interface {\n\tMatches(lager.Logger, string, *TLSConfig) bool\n\n\tDriver\n}\n```\n\n```go\ntype MountRequest struct {\n\tName string\n}\n```\n\n```go\ntype MountResponse struct {\n\tErr        string\n\tMountpoint string\n}\n```\n\n```go\ntype PathRequest struct {\n\tName string\n}\n```\n\n```go\ntype PathResponse struct {\n\tErr        string\n\tMountpoint string\n}\n```\n\n```go\ntype Provisioner interface {\n\tCreate(env Env, createRequest CreateRequest) ErrorResponse\n\tRemove(env Env, removeRequest RemoveRequest) ErrorResponse\n}\n```\n\n```go\ntype RemoveRequest struct {\n\tName string\n}\n```\n\n```go\ntype SafeError struct {\n\tSafeDescription string `json:\"SafeDescription\"`\n}\n```\n\n```go\nfunc (s SafeError) Error() string\n```\n\n```go\ntype TLSConfig struct {\n\tInsecureSkipVerify bool   `json:\"InsecureSkipVerify\"`\n\tCAFile             string `json:\"CAFile\"`\n\tCertFile           string `json:\"CertFile\"`\n\tKeyFile            string `json:\"KeyFile\"`\n}\n```\n\n```go\ntype UnmountRequest struct {\n\tName string\n}\n```\n\n```go\ntype VolumeInfo struct {\n\tName       string\n\tMountpoint string\n\tMountCount int\n}\n```\n\n","path":"code.cloudfoundry.org/dockerdriver","name":"dockerdriver","synopsis":"","isRedistributable":true}
