forked from rexray/csi-blockdevices
/
identity.go
37 lines (31 loc) · 819 Bytes
/
identity.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
25
26
27
28
29
30
31
32
33
34
35
36
37
package services
import (
"golang.org/x/net/context"
"github.com/codedellemc/gocsi/csi"
)
func (s *StoragePlugin) GetSupportedVersions(
ctx context.Context,
req *csi.GetSupportedVersionsRequest) (
*csi.GetSupportedVersionsResponse, error) {
return &csi.GetSupportedVersionsResponse{
Reply: &csi.GetSupportedVersionsResponse_Result_{
Result: &csi.GetSupportedVersionsResponse_Result{
SupportedVersions: CSIVersions,
},
},
}, nil
}
func (s *StoragePlugin) GetPluginInfo(
ctx context.Context,
req *csi.GetPluginInfoRequest) (
*csi.GetPluginInfoResponse, error) {
return &csi.GetPluginInfoResponse{
Reply: &csi.GetPluginInfoResponse_Result_{
Result: &csi.GetPluginInfoResponse_Result{
Name: SpName,
VendorVersion: spVersion,
Manifest: nil,
},
},
}, nil
}