-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
identity.go
39 lines (31 loc) · 1.07 KB
/
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
38
39
package driver
import (
"context"
"github.com/container-storage-interface/spec/lib/go/csi"
"k8s.io/klog"
)
func (d *GCSDriver) GetPluginInfo(ctx context.Context, req *csi.GetPluginInfoRequest) (*csi.GetPluginInfoResponse, error) {
klog.V(4).Infof("Method GetPluginInfo called with: %+v", req)
return &csi.GetPluginInfoResponse{
Name: d.name,
VendorVersion: driverVersion,
}, nil
}
func (d *GCSDriver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCapabilitiesRequest) (*csi.GetPluginCapabilitiesResponse, error) {
klog.V(4).Infof("Method GetPluginCapabilities called with: %+v", req)
return &csi.GetPluginCapabilitiesResponse{
Capabilities: []*csi.PluginCapability{
{
Type: &csi.PluginCapability_Service_{
Service: &csi.PluginCapability_Service{
Type: csi.PluginCapability_Service_CONTROLLER_SERVICE,
},
},
},
},
}, nil
}
func (d *GCSDriver) Probe(ctx context.Context, req *csi.ProbeRequest) (*csi.ProbeResponse, error) {
klog.V(4).Infof("Method Probe called with: %+v", req)
return &csi.ProbeResponse{}, nil
}