forked from thecodeteam/csi-scaleio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.go
24 lines (18 loc) · 807 Bytes
/
plugin.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +build linux,plugin
//go:generate go generate ./core
package main
import "C"
import (
"github.com/thecodeteam/csi-scaleio/provider"
"github.com/thecodeteam/csi-scaleio/service"
)
////////////////////////////////////////////////////////////////////////////////
// Go Plug-in //
////////////////////////////////////////////////////////////////////////////////
// SupportedVersions is a space-delimited list of supported CSI versions.
var SupportedVersions = service.SupportedVersions
// ServiceProviders is an exported symbol that provides a host program
// with a map of the service provider names and constructors.
var ServiceProviders = map[string]func() interface{}{
service.Name: func() interface{} { return provider.New() },
}