Skip to content

Commit ae988a3

Browse files
committed
Unimplemented RPC Method stubs for Snapshots and NodeGetInfo
1 parent 7c9df23 commit ae988a3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pkg/gce-csi-driver/controller.go

+14
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ type GCEControllerServer struct {
3737
CloudProvider gce.GCECompute
3838
}
3939

40+
var _ csi.ControllerServer = &GCEControllerServer{}
41+
4042
const (
4143
// MaxVolumeSizeInBytes is the maximum standard and ssd size of 64TB
4244
MaxVolumeSizeInBytes int64 = 64 * 1024 * 1024 * 1024 * 1024
@@ -425,3 +427,15 @@ func (gceCS *GCEControllerServer) ControllerGetCapabilities(ctx context.Context,
425427
Capabilities: gceCS.Driver.cscap,
426428
}, nil
427429
}
430+
431+
func (gceCS *GCEControllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.CreateSnapshotResponse, error) {
432+
return nil, status.Error(codes.Unimplemented, "")
433+
}
434+
435+
func (gceCS *GCEControllerServer) DeleteSnapshot(ctx context.Context, req *csi.DeleteSnapshotRequest) (*csi.DeleteSnapshotResponse, error) {
436+
return nil, status.Error(codes.Unimplemented, "")
437+
}
438+
439+
func (gceCS *GCEControllerServer) ListSnapshots(ctx context.Context, req *csi.ListSnapshotsRequest) (*csi.ListSnapshotsResponse, error) {
440+
return nil, status.Error(codes.Unimplemented, "")
441+
}

pkg/gce-csi-driver/node.go

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ type GCENodeServer struct {
3535
mux sync.Mutex
3636
}
3737

38+
var _ csi.NodeServer = &GCENodeServer{}
39+
3840
func (ns *GCENodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error) {
3941
ns.mux.Lock()
4042
defer ns.mux.Unlock()
@@ -262,3 +264,7 @@ func (ns *GCENodeServer) NodeGetCapabilities(ctx context.Context, req *csi.NodeG
262264
Capabilities: ns.Driver.nscap,
263265
}, nil
264266
}
267+
268+
func (ns *GCENodeServer) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error) {
269+
return nil, status.Error(codes.Unimplemented, "")
270+
}

0 commit comments

Comments
 (0)