From 516ed49085e5183f1ec8eb25c162768835d3da2f Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Wed, 14 Oct 2020 16:38:56 -0700 Subject: [PATCH] Revert "Add WriteVolumeCache API" --- client/api/volume/v1beta2/api.pb.go | 1313 ----------------- client/api/volume/v1beta2/api.proto | 132 -- .../groups/volume/v1beta2/client_generated.go | 92 -- integrationtests/volume_test.go | 1 - internal/os/volume/api.go | 10 - internal/server/volume/api_group_generated.go | 7 - internal/server/volume/internal/types.go | 7 - .../server/volume/internal/types_generated.go | 1 - .../volume/internal/v1beta2/conversion.go | 3 - .../internal/v1beta2/conversion_generated.go | 408 ----- .../internal/v1beta2/server_generated.go | 218 --- internal/server/volume/server.go | 19 - internal/server/volume/server_test.go | 4 - .../client/api/volume/v1beta2/api.pb.go | 1313 ----------------- .../client/api/volume/v1beta2/api.proto | 132 -- vendor/modules.txt | 1 - 16 files changed, 3661 deletions(-) delete mode 100644 client/api/volume/v1beta2/api.pb.go delete mode 100644 client/api/volume/v1beta2/api.proto delete mode 100644 client/groups/volume/v1beta2/client_generated.go delete mode 100644 internal/server/volume/internal/v1beta2/conversion.go delete mode 100644 internal/server/volume/internal/v1beta2/conversion_generated.go delete mode 100644 internal/server/volume/internal/v1beta2/server_generated.go delete mode 100644 vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.pb.go delete mode 100644 vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.proto diff --git a/client/api/volume/v1beta2/api.pb.go b/client/api/volume/v1beta2/api.pb.go deleted file mode 100644 index 2bc4962c..00000000 --- a/client/api/volume/v1beta2/api.pb.go +++ /dev/null @@ -1,1313 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: client/api/volume/v1beta2/api.proto - -package v1beta2 - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type ListVolumesOnDiskRequest struct { - // Disk device ID of the disk to query for volumes - DiskId string `protobuf:"bytes,1,opt,name=disk_id,json=diskId,proto3" json:"disk_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListVolumesOnDiskRequest) Reset() { *m = ListVolumesOnDiskRequest{} } -func (m *ListVolumesOnDiskRequest) String() string { return proto.CompactTextString(m) } -func (*ListVolumesOnDiskRequest) ProtoMessage() {} -func (*ListVolumesOnDiskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{0} -} - -func (m *ListVolumesOnDiskRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListVolumesOnDiskRequest.Unmarshal(m, b) -} -func (m *ListVolumesOnDiskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListVolumesOnDiskRequest.Marshal(b, m, deterministic) -} -func (m *ListVolumesOnDiskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesOnDiskRequest.Merge(m, src) -} -func (m *ListVolumesOnDiskRequest) XXX_Size() int { - return xxx_messageInfo_ListVolumesOnDiskRequest.Size(m) -} -func (m *ListVolumesOnDiskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesOnDiskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListVolumesOnDiskRequest proto.InternalMessageInfo - -func (m *ListVolumesOnDiskRequest) GetDiskId() string { - if m != nil { - return m.DiskId - } - return "" -} - -type ListVolumesOnDiskResponse struct { - // Volume device IDs of volumes on the specified disk - VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListVolumesOnDiskResponse) Reset() { *m = ListVolumesOnDiskResponse{} } -func (m *ListVolumesOnDiskResponse) String() string { return proto.CompactTextString(m) } -func (*ListVolumesOnDiskResponse) ProtoMessage() {} -func (*ListVolumesOnDiskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{1} -} - -func (m *ListVolumesOnDiskResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListVolumesOnDiskResponse.Unmarshal(m, b) -} -func (m *ListVolumesOnDiskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListVolumesOnDiskResponse.Marshal(b, m, deterministic) -} -func (m *ListVolumesOnDiskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesOnDiskResponse.Merge(m, src) -} -func (m *ListVolumesOnDiskResponse) XXX_Size() int { - return xxx_messageInfo_ListVolumesOnDiskResponse.Size(m) -} -func (m *ListVolumesOnDiskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesOnDiskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListVolumesOnDiskResponse proto.InternalMessageInfo - -func (m *ListVolumesOnDiskResponse) GetVolumeIds() []string { - if m != nil { - return m.VolumeIds - } - return nil -} - -type MountVolumeRequest struct { - // Volume device ID of the volume to mount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // Path in the host's file system where the volume needs to be mounted - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MountVolumeRequest) Reset() { *m = MountVolumeRequest{} } -func (m *MountVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*MountVolumeRequest) ProtoMessage() {} -func (*MountVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{2} -} - -func (m *MountVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MountVolumeRequest.Unmarshal(m, b) -} -func (m *MountVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MountVolumeRequest.Marshal(b, m, deterministic) -} -func (m *MountVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MountVolumeRequest.Merge(m, src) -} -func (m *MountVolumeRequest) XXX_Size() int { - return xxx_messageInfo_MountVolumeRequest.Size(m) -} -func (m *MountVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MountVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MountVolumeRequest proto.InternalMessageInfo - -func (m *MountVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *MountVolumeRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -type MountVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MountVolumeResponse) Reset() { *m = MountVolumeResponse{} } -func (m *MountVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*MountVolumeResponse) ProtoMessage() {} -func (*MountVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{3} -} - -func (m *MountVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MountVolumeResponse.Unmarshal(m, b) -} -func (m *MountVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MountVolumeResponse.Marshal(b, m, deterministic) -} -func (m *MountVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MountVolumeResponse.Merge(m, src) -} -func (m *MountVolumeResponse) XXX_Size() int { - return xxx_messageInfo_MountVolumeResponse.Size(m) -} -func (m *MountVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MountVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MountVolumeResponse proto.InternalMessageInfo - -type DismountVolumeRequest struct { - // Volume device ID of the volume to dismount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // Path where the volume has been mounted. - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DismountVolumeRequest) Reset() { *m = DismountVolumeRequest{} } -func (m *DismountVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*DismountVolumeRequest) ProtoMessage() {} -func (*DismountVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{4} -} - -func (m *DismountVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DismountVolumeRequest.Unmarshal(m, b) -} -func (m *DismountVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DismountVolumeRequest.Marshal(b, m, deterministic) -} -func (m *DismountVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DismountVolumeRequest.Merge(m, src) -} -func (m *DismountVolumeRequest) XXX_Size() int { - return xxx_messageInfo_DismountVolumeRequest.Size(m) -} -func (m *DismountVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DismountVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DismountVolumeRequest proto.InternalMessageInfo - -func (m *DismountVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *DismountVolumeRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -type DismountVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DismountVolumeResponse) Reset() { *m = DismountVolumeResponse{} } -func (m *DismountVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*DismountVolumeResponse) ProtoMessage() {} -func (*DismountVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{5} -} - -func (m *DismountVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DismountVolumeResponse.Unmarshal(m, b) -} -func (m *DismountVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DismountVolumeResponse.Marshal(b, m, deterministic) -} -func (m *DismountVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DismountVolumeResponse.Merge(m, src) -} -func (m *DismountVolumeResponse) XXX_Size() int { - return xxx_messageInfo_DismountVolumeResponse.Size(m) -} -func (m *DismountVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DismountVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DismountVolumeResponse proto.InternalMessageInfo - -type IsVolumeFormattedRequest struct { - // Volume device ID of the volume to check - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsVolumeFormattedRequest) Reset() { *m = IsVolumeFormattedRequest{} } -func (m *IsVolumeFormattedRequest) String() string { return proto.CompactTextString(m) } -func (*IsVolumeFormattedRequest) ProtoMessage() {} -func (*IsVolumeFormattedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{6} -} - -func (m *IsVolumeFormattedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsVolumeFormattedRequest.Unmarshal(m, b) -} -func (m *IsVolumeFormattedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsVolumeFormattedRequest.Marshal(b, m, deterministic) -} -func (m *IsVolumeFormattedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsVolumeFormattedRequest.Merge(m, src) -} -func (m *IsVolumeFormattedRequest) XXX_Size() int { - return xxx_messageInfo_IsVolumeFormattedRequest.Size(m) -} -func (m *IsVolumeFormattedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsVolumeFormattedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IsVolumeFormattedRequest proto.InternalMessageInfo - -func (m *IsVolumeFormattedRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type IsVolumeFormattedResponse struct { - // Is the volume formatted with NTFS - Formatted bool `protobuf:"varint,1,opt,name=formatted,proto3" json:"formatted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsVolumeFormattedResponse) Reset() { *m = IsVolumeFormattedResponse{} } -func (m *IsVolumeFormattedResponse) String() string { return proto.CompactTextString(m) } -func (*IsVolumeFormattedResponse) ProtoMessage() {} -func (*IsVolumeFormattedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{7} -} - -func (m *IsVolumeFormattedResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsVolumeFormattedResponse.Unmarshal(m, b) -} -func (m *IsVolumeFormattedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsVolumeFormattedResponse.Marshal(b, m, deterministic) -} -func (m *IsVolumeFormattedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsVolumeFormattedResponse.Merge(m, src) -} -func (m *IsVolumeFormattedResponse) XXX_Size() int { - return xxx_messageInfo_IsVolumeFormattedResponse.Size(m) -} -func (m *IsVolumeFormattedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsVolumeFormattedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IsVolumeFormattedResponse proto.InternalMessageInfo - -func (m *IsVolumeFormattedResponse) GetFormatted() bool { - if m != nil { - return m.Formatted - } - return false -} - -type FormatVolumeRequest struct { - // Volume device ID of the volume to format - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FormatVolumeRequest) Reset() { *m = FormatVolumeRequest{} } -func (m *FormatVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*FormatVolumeRequest) ProtoMessage() {} -func (*FormatVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{8} -} - -func (m *FormatVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FormatVolumeRequest.Unmarshal(m, b) -} -func (m *FormatVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FormatVolumeRequest.Marshal(b, m, deterministic) -} -func (m *FormatVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FormatVolumeRequest.Merge(m, src) -} -func (m *FormatVolumeRequest) XXX_Size() int { - return xxx_messageInfo_FormatVolumeRequest.Size(m) -} -func (m *FormatVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FormatVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FormatVolumeRequest proto.InternalMessageInfo - -func (m *FormatVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type FormatVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FormatVolumeResponse) Reset() { *m = FormatVolumeResponse{} } -func (m *FormatVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*FormatVolumeResponse) ProtoMessage() {} -func (*FormatVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{9} -} - -func (m *FormatVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FormatVolumeResponse.Unmarshal(m, b) -} -func (m *FormatVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FormatVolumeResponse.Marshal(b, m, deterministic) -} -func (m *FormatVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FormatVolumeResponse.Merge(m, src) -} -func (m *FormatVolumeResponse) XXX_Size() int { - return xxx_messageInfo_FormatVolumeResponse.Size(m) -} -func (m *FormatVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FormatVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FormatVolumeResponse proto.InternalMessageInfo - -type ResizeVolumeRequest struct { - // Volume device ID of the volume to dismount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // New size of the volume - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResizeVolumeRequest) Reset() { *m = ResizeVolumeRequest{} } -func (m *ResizeVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*ResizeVolumeRequest) ProtoMessage() {} -func (*ResizeVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{10} -} - -func (m *ResizeVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResizeVolumeRequest.Unmarshal(m, b) -} -func (m *ResizeVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResizeVolumeRequest.Marshal(b, m, deterministic) -} -func (m *ResizeVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResizeVolumeRequest.Merge(m, src) -} -func (m *ResizeVolumeRequest) XXX_Size() int { - return xxx_messageInfo_ResizeVolumeRequest.Size(m) -} -func (m *ResizeVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResizeVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ResizeVolumeRequest proto.InternalMessageInfo - -func (m *ResizeVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *ResizeVolumeRequest) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -type ResizeVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResizeVolumeResponse) Reset() { *m = ResizeVolumeResponse{} } -func (m *ResizeVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*ResizeVolumeResponse) ProtoMessage() {} -func (*ResizeVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{11} -} - -func (m *ResizeVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResizeVolumeResponse.Unmarshal(m, b) -} -func (m *ResizeVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResizeVolumeResponse.Marshal(b, m, deterministic) -} -func (m *ResizeVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResizeVolumeResponse.Merge(m, src) -} -func (m *ResizeVolumeResponse) XXX_Size() int { - return xxx_messageInfo_ResizeVolumeResponse.Size(m) -} -func (m *ResizeVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResizeVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ResizeVolumeResponse proto.InternalMessageInfo - -type VolumeStatsRequest struct { - // Volume device Id of the volume to get the stats for - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeStatsRequest) Reset() { *m = VolumeStatsRequest{} } -func (m *VolumeStatsRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeStatsRequest) ProtoMessage() {} -func (*VolumeStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{12} -} - -func (m *VolumeStatsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeStatsRequest.Unmarshal(m, b) -} -func (m *VolumeStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeStatsRequest.Marshal(b, m, deterministic) -} -func (m *VolumeStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatsRequest.Merge(m, src) -} -func (m *VolumeStatsRequest) XXX_Size() int { - return xxx_messageInfo_VolumeStatsRequest.Size(m) -} -func (m *VolumeStatsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeStatsRequest proto.InternalMessageInfo - -func (m *VolumeStatsRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type VolumeStatsResponse struct { - // Capacity of the volume - VolumeSize int64 `protobuf:"varint,1,opt,name=volumeSize,proto3" json:"volumeSize,omitempty"` - // Used bytes - VolumeUsedSize int64 `protobuf:"varint,2,opt,name=volumeUsedSize,proto3" json:"volumeUsedSize,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeStatsResponse) Reset() { *m = VolumeStatsResponse{} } -func (m *VolumeStatsResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeStatsResponse) ProtoMessage() {} -func (*VolumeStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{13} -} - -func (m *VolumeStatsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeStatsResponse.Unmarshal(m, b) -} -func (m *VolumeStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeStatsResponse.Marshal(b, m, deterministic) -} -func (m *VolumeStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatsResponse.Merge(m, src) -} -func (m *VolumeStatsResponse) XXX_Size() int { - return xxx_messageInfo_VolumeStatsResponse.Size(m) -} -func (m *VolumeStatsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeStatsResponse proto.InternalMessageInfo - -func (m *VolumeStatsResponse) GetVolumeSize() int64 { - if m != nil { - return m.VolumeSize - } - return 0 -} - -func (m *VolumeStatsResponse) GetVolumeUsedSize() int64 { - if m != nil { - return m.VolumeUsedSize - } - return 0 -} - -type VolumeDiskNumberRequest struct { - // Volume device Id of the volume to get the disk number for - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeDiskNumberRequest) Reset() { *m = VolumeDiskNumberRequest{} } -func (m *VolumeDiskNumberRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeDiskNumberRequest) ProtoMessage() {} -func (*VolumeDiskNumberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{14} -} - -func (m *VolumeDiskNumberRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeDiskNumberRequest.Unmarshal(m, b) -} -func (m *VolumeDiskNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeDiskNumberRequest.Marshal(b, m, deterministic) -} -func (m *VolumeDiskNumberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeDiskNumberRequest.Merge(m, src) -} -func (m *VolumeDiskNumberRequest) XXX_Size() int { - return xxx_messageInfo_VolumeDiskNumberRequest.Size(m) -} -func (m *VolumeDiskNumberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeDiskNumberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeDiskNumberRequest proto.InternalMessageInfo - -func (m *VolumeDiskNumberRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type VolumeDiskNumberResponse struct { - // Corresponding disk number - DiskNumber int64 `protobuf:"varint,1,opt,name=diskNumber,proto3" json:"diskNumber,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeDiskNumberResponse) Reset() { *m = VolumeDiskNumberResponse{} } -func (m *VolumeDiskNumberResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeDiskNumberResponse) ProtoMessage() {} -func (*VolumeDiskNumberResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{15} -} - -func (m *VolumeDiskNumberResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeDiskNumberResponse.Unmarshal(m, b) -} -func (m *VolumeDiskNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeDiskNumberResponse.Marshal(b, m, deterministic) -} -func (m *VolumeDiskNumberResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeDiskNumberResponse.Merge(m, src) -} -func (m *VolumeDiskNumberResponse) XXX_Size() int { - return xxx_messageInfo_VolumeDiskNumberResponse.Size(m) -} -func (m *VolumeDiskNumberResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeDiskNumberResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeDiskNumberResponse proto.InternalMessageInfo - -func (m *VolumeDiskNumberResponse) GetDiskNumber() int64 { - if m != nil { - return m.DiskNumber - } - return 0 -} - -type VolumeIDFromMountRequest struct { - // Mount - Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeIDFromMountRequest) Reset() { *m = VolumeIDFromMountRequest{} } -func (m *VolumeIDFromMountRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeIDFromMountRequest) ProtoMessage() {} -func (*VolumeIDFromMountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{16} -} - -func (m *VolumeIDFromMountRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeIDFromMountRequest.Unmarshal(m, b) -} -func (m *VolumeIDFromMountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeIDFromMountRequest.Marshal(b, m, deterministic) -} -func (m *VolumeIDFromMountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeIDFromMountRequest.Merge(m, src) -} -func (m *VolumeIDFromMountRequest) XXX_Size() int { - return xxx_messageInfo_VolumeIDFromMountRequest.Size(m) -} -func (m *VolumeIDFromMountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeIDFromMountRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeIDFromMountRequest proto.InternalMessageInfo - -func (m *VolumeIDFromMountRequest) GetMount() string { - if m != nil { - return m.Mount - } - return "" -} - -type VolumeIDFromMountResponse struct { - // Mount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeIDFromMountResponse) Reset() { *m = VolumeIDFromMountResponse{} } -func (m *VolumeIDFromMountResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeIDFromMountResponse) ProtoMessage() {} -func (*VolumeIDFromMountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{17} -} - -func (m *VolumeIDFromMountResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeIDFromMountResponse.Unmarshal(m, b) -} -func (m *VolumeIDFromMountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeIDFromMountResponse.Marshal(b, m, deterministic) -} -func (m *VolumeIDFromMountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeIDFromMountResponse.Merge(m, src) -} -func (m *VolumeIDFromMountResponse) XXX_Size() int { - return xxx_messageInfo_VolumeIDFromMountResponse.Size(m) -} -func (m *VolumeIDFromMountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeIDFromMountResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeIDFromMountResponse proto.InternalMessageInfo - -func (m *VolumeIDFromMountResponse) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type WriteVolumeCacheRequest struct { - // Volume device ID of the volume to flush the cache - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteVolumeCacheRequest) Reset() { *m = WriteVolumeCacheRequest{} } -func (m *WriteVolumeCacheRequest) String() string { return proto.CompactTextString(m) } -func (*WriteVolumeCacheRequest) ProtoMessage() {} -func (*WriteVolumeCacheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{18} -} - -func (m *WriteVolumeCacheRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteVolumeCacheRequest.Unmarshal(m, b) -} -func (m *WriteVolumeCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteVolumeCacheRequest.Marshal(b, m, deterministic) -} -func (m *WriteVolumeCacheRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteVolumeCacheRequest.Merge(m, src) -} -func (m *WriteVolumeCacheRequest) XXX_Size() int { - return xxx_messageInfo_WriteVolumeCacheRequest.Size(m) -} -func (m *WriteVolumeCacheRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteVolumeCacheRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WriteVolumeCacheRequest proto.InternalMessageInfo - -func (m *WriteVolumeCacheRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type WriteVolumeCacheResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteVolumeCacheResponse) Reset() { *m = WriteVolumeCacheResponse{} } -func (m *WriteVolumeCacheResponse) String() string { return proto.CompactTextString(m) } -func (*WriteVolumeCacheResponse) ProtoMessage() {} -func (*WriteVolumeCacheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{19} -} - -func (m *WriteVolumeCacheResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteVolumeCacheResponse.Unmarshal(m, b) -} -func (m *WriteVolumeCacheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteVolumeCacheResponse.Marshal(b, m, deterministic) -} -func (m *WriteVolumeCacheResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteVolumeCacheResponse.Merge(m, src) -} -func (m *WriteVolumeCacheResponse) XXX_Size() int { - return xxx_messageInfo_WriteVolumeCacheResponse.Size(m) -} -func (m *WriteVolumeCacheResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteVolumeCacheResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WriteVolumeCacheResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ListVolumesOnDiskRequest)(nil), "v1beta2.ListVolumesOnDiskRequest") - proto.RegisterType((*ListVolumesOnDiskResponse)(nil), "v1beta2.ListVolumesOnDiskResponse") - proto.RegisterType((*MountVolumeRequest)(nil), "v1beta2.MountVolumeRequest") - proto.RegisterType((*MountVolumeResponse)(nil), "v1beta2.MountVolumeResponse") - proto.RegisterType((*DismountVolumeRequest)(nil), "v1beta2.DismountVolumeRequest") - proto.RegisterType((*DismountVolumeResponse)(nil), "v1beta2.DismountVolumeResponse") - proto.RegisterType((*IsVolumeFormattedRequest)(nil), "v1beta2.IsVolumeFormattedRequest") - proto.RegisterType((*IsVolumeFormattedResponse)(nil), "v1beta2.IsVolumeFormattedResponse") - proto.RegisterType((*FormatVolumeRequest)(nil), "v1beta2.FormatVolumeRequest") - proto.RegisterType((*FormatVolumeResponse)(nil), "v1beta2.FormatVolumeResponse") - proto.RegisterType((*ResizeVolumeRequest)(nil), "v1beta2.ResizeVolumeRequest") - proto.RegisterType((*ResizeVolumeResponse)(nil), "v1beta2.ResizeVolumeResponse") - proto.RegisterType((*VolumeStatsRequest)(nil), "v1beta2.VolumeStatsRequest") - proto.RegisterType((*VolumeStatsResponse)(nil), "v1beta2.VolumeStatsResponse") - proto.RegisterType((*VolumeDiskNumberRequest)(nil), "v1beta2.VolumeDiskNumberRequest") - proto.RegisterType((*VolumeDiskNumberResponse)(nil), "v1beta2.VolumeDiskNumberResponse") - proto.RegisterType((*VolumeIDFromMountRequest)(nil), "v1beta2.VolumeIDFromMountRequest") - proto.RegisterType((*VolumeIDFromMountResponse)(nil), "v1beta2.VolumeIDFromMountResponse") - proto.RegisterType((*WriteVolumeCacheRequest)(nil), "v1beta2.WriteVolumeCacheRequest") - proto.RegisterType((*WriteVolumeCacheResponse)(nil), "v1beta2.WriteVolumeCacheResponse") -} - -func init() { - proto.RegisterFile("client/api/volume/v1beta2/api.proto", fileDescriptor_99d2e9a7d1d95ce9) -} - -var fileDescriptor_99d2e9a7d1d95ce9 = []byte{ - // 625 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x6b, 0x6f, 0xd3, 0x30, - 0x14, 0x6d, 0x19, 0x74, 0xeb, 0x05, 0x4d, 0xcc, 0xdd, 0x23, 0xcd, 0x1e, 0x74, 0x46, 0x42, 0xfb, - 0xb2, 0x86, 0x75, 0xd2, 0x80, 0x49, 0x08, 0x09, 0x4a, 0xa1, 0x88, 0x81, 0x94, 0x0a, 0x10, 0x68, - 0xa8, 0x4a, 0x1b, 0x43, 0xad, 0x2e, 0x4d, 0x89, 0x9d, 0x09, 0xf8, 0xc7, 0xfc, 0x0b, 0x14, 0xdb, - 0x49, 0xdd, 0x3c, 0xaa, 0x22, 0xf1, 0x2d, 0x3e, 0xf6, 0x39, 0xe7, 0xda, 0xbe, 0xc7, 0x81, 0xfb, - 0xc3, 0x2b, 0x4a, 0x26, 0xdc, 0x72, 0xa6, 0xd4, 0xba, 0xf6, 0xaf, 0x42, 0x8f, 0x58, 0xd7, 0x27, - 0x03, 0xc2, 0x9d, 0x56, 0x04, 0x35, 0xa7, 0x81, 0xcf, 0x7d, 0xb4, 0xaa, 0x20, 0x7c, 0x0a, 0xc6, - 0x5b, 0xca, 0xf8, 0x47, 0xb1, 0x90, 0xbd, 0x9f, 0xb4, 0x29, 0x1b, 0xdb, 0xe4, 0x47, 0x48, 0x18, - 0x47, 0x3b, 0xb0, 0xea, 0x52, 0x36, 0xee, 0x53, 0xd7, 0x28, 0x37, 0xca, 0x47, 0x55, 0xbb, 0x12, - 0x0d, 0xbb, 0x2e, 0x3e, 0x87, 0x7a, 0x0e, 0x89, 0x4d, 0xfd, 0x09, 0x23, 0x68, 0x1f, 0x40, 0xda, - 0xf6, 0xa9, 0xcb, 0x8c, 0x72, 0x63, 0xe5, 0xa8, 0x6a, 0x57, 0x25, 0xd2, 0x75, 0x19, 0x7e, 0x09, - 0xe8, 0xc2, 0x0f, 0x27, 0x8a, 0x1c, 0x5b, 0xed, 0x42, 0x35, 0x21, 0x29, 0xb3, 0xb5, 0x98, 0x83, - 0x10, 0xdc, 0x9c, 0x3a, 0x7c, 0x64, 0xdc, 0x10, 0xb8, 0xf8, 0xc6, 0x5b, 0x50, 0x9b, 0x93, 0x91, - 0xe6, 0xf8, 0x35, 0x6c, 0xb5, 0x29, 0xf3, 0xfe, 0x83, 0x81, 0x01, 0xdb, 0x69, 0x25, 0xe5, 0xf1, - 0x08, 0x8c, 0x2e, 0x93, 0x58, 0xc7, 0x0f, 0x3c, 0x87, 0x73, 0xe2, 0x2e, 0x63, 0x83, 0x9f, 0x40, - 0x3d, 0x87, 0xa8, 0x8e, 0x6d, 0x0f, 0xaa, 0xdf, 0x62, 0x50, 0x30, 0xd7, 0xec, 0x19, 0x80, 0x5b, - 0x50, 0x93, 0x94, 0xe5, 0x77, 0x85, 0xb7, 0x61, 0x73, 0x9e, 0xa3, 0xea, 0xef, 0x40, 0xcd, 0x26, - 0x8c, 0xfe, 0x26, 0xff, 0x76, 0x42, 0x11, 0x43, 0x9c, 0xd0, 0x8a, 0x2d, 0xbe, 0x23, 0xfd, 0x79, - 0x1d, 0xa5, 0x7f, 0x02, 0x48, 0x22, 0x3d, 0xee, 0x70, 0xb6, 0x54, 0xa9, 0x5f, 0xa1, 0x36, 0x47, - 0x51, 0x67, 0x72, 0x10, 0xb7, 0x52, 0x2f, 0xf2, 0x2e, 0x0b, 0x6f, 0x0d, 0x41, 0x0f, 0x60, 0x5d, - 0x8e, 0x3e, 0x30, 0xe2, 0xf6, 0x66, 0xf5, 0xa5, 0x50, 0x7c, 0x06, 0x3b, 0x52, 0x3e, 0x6a, 0xd4, - 0x77, 0xa1, 0x37, 0x20, 0xc1, 0x52, 0x65, 0x9d, 0x83, 0x91, 0xe5, 0xcd, 0x6a, 0x73, 0x13, 0x34, - 0xae, 0x6d, 0x86, 0xe0, 0x87, 0x31, 0xb7, 0xdb, 0xee, 0x04, 0xbe, 0x27, 0x9a, 0x35, 0x36, 0xdd, - 0x84, 0x5b, 0xa2, 0xb1, 0x94, 0xa1, 0x1c, 0xe0, 0xc7, 0x50, 0xcf, 0x61, 0x28, 0xbb, 0x85, 0x75, - 0x9e, 0xc1, 0xce, 0xa7, 0x80, 0x72, 0x75, 0x11, 0x2f, 0x9c, 0xe1, 0x68, 0xb9, 0x0e, 0x31, 0xc1, - 0xc8, 0xf2, 0xa4, 0x61, 0xeb, 0x4f, 0x05, 0x2a, 0x12, 0x47, 0x97, 0xb0, 0x91, 0x89, 0x3b, 0x3a, - 0x6c, 0xaa, 0x27, 0xa4, 0x59, 0xf4, 0x7e, 0x98, 0x78, 0xd1, 0x12, 0xd5, 0x2c, 0x25, 0xf4, 0x06, - 0x6e, 0x6b, 0x49, 0x46, 0xbb, 0x09, 0x29, 0xfb, 0x4c, 0x98, 0x7b, 0xf9, 0x93, 0x89, 0x56, 0x0f, - 0xd6, 0xe7, 0x43, 0x8b, 0x0e, 0x12, 0x46, 0xee, 0xbb, 0x60, 0xde, 0x2b, 0x9c, 0x4f, 0x44, 0x2f, - 0x61, 0x23, 0x13, 0x5b, 0x6d, 0xfb, 0x45, 0x6f, 0x81, 0xb6, 0xfd, 0xc2, 0xd4, 0xe3, 0x12, 0xba, - 0x80, 0x3b, 0x7a, 0x4a, 0xd1, 0x6c, 0x8b, 0x39, 0x81, 0x37, 0xf7, 0x0b, 0x66, 0x75, 0x39, 0x3d, - 0x94, 0x9a, 0x5c, 0x4e, 0xe6, 0x35, 0xb9, 0xdc, 0x24, 0x8b, 0xcb, 0xd1, 0x82, 0xa9, 0x5d, 0x4e, - 0x36, 0xe1, 0xda, 0xe5, 0xe4, 0x64, 0x59, 0x9c, 0x63, 0xed, 0x15, 0xe1, 0xe9, 0x40, 0xa1, 0x46, - 0x8a, 0x96, 0xc9, 0xa8, 0x79, 0xb8, 0x60, 0x45, 0xa2, 0xde, 0x87, 0xcd, 0x44, 0x5d, 0x0b, 0x10, - 0x4a, 0x93, 0xb3, 0x71, 0xd4, 0x2e, 0xaa, 0x30, 0x7f, 0xb8, 0x84, 0x3e, 0xc3, 0xdd, 0x74, 0x58, - 0xb4, 0xda, 0x0b, 0xf2, 0xa7, 0xd5, 0x5e, 0x94, 0x34, 0x5c, 0x7a, 0xfe, 0xec, 0xcb, 0xd3, 0xef, - 0x94, 0x8f, 0xc2, 0x41, 0x73, 0xe8, 0x7b, 0xd6, 0x38, 0x1c, 0x90, 0x60, 0x42, 0x38, 0x61, 0xc7, - 0x43, 0x46, 0xad, 0x21, 0xa3, 0xc7, 0xd3, 0xc0, 0xff, 0xf9, 0xcb, 0x2a, 0xfc, 0xb1, 0x0f, 0x2a, - 0xe2, 0xaf, 0x7e, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0xef, 0xbc, 0x51, 0x38, 0xfc, 0x07, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// VolumeClient is the client API for Volume service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type VolumeClient interface { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - ListVolumesOnDisk(ctx context.Context, in *ListVolumesOnDiskRequest, opts ...grpc.CallOption) (*ListVolumesOnDiskResponse, error) - // MountVolume mounts the volume at the requested global staging path - MountVolume(ctx context.Context, in *MountVolumeRequest, opts ...grpc.CallOption) (*MountVolumeResponse, error) - // DismountVolume gracefully dismounts a volume - DismountVolume(ctx context.Context, in *DismountVolumeRequest, opts ...grpc.CallOption) (*DismountVolumeResponse, error) - // IsVolumeFormatted checks if a volume is formatted with NTFS - IsVolumeFormatted(ctx context.Context, in *IsVolumeFormattedRequest, opts ...grpc.CallOption) (*IsVolumeFormattedResponse, error) - // FormatVolume formats a volume with the provided file system - FormatVolume(ctx context.Context, in *FormatVolumeRequest, opts ...grpc.CallOption) (*FormatVolumeResponse, error) - // ResizeVolume performs resizing of the partition and file system for a block based volume - ResizeVolume(ctx context.Context, in *ResizeVolumeRequest, opts ...grpc.CallOption) (*ResizeVolumeResponse, error) - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - VolumeStats(ctx context.Context, in *VolumeStatsRequest, opts ...grpc.CallOption) (*VolumeStatsResponse, error) - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - GetVolumeDiskNumber(ctx context.Context, in *VolumeDiskNumberRequest, opts ...grpc.CallOption) (*VolumeDiskNumberResponse, error) - // GetVolumeIDFromMount gets the volume id for a given mount - GetVolumeIDFromMount(ctx context.Context, in *VolumeIDFromMountRequest, opts ...grpc.CallOption) (*VolumeIDFromMountResponse, error) - // WriteVolumeCache write volume cache to disk - WriteVolumeCache(ctx context.Context, in *WriteVolumeCacheRequest, opts ...grpc.CallOption) (*WriteVolumeCacheResponse, error) -} - -type volumeClient struct { - cc *grpc.ClientConn -} - -func NewVolumeClient(cc *grpc.ClientConn) VolumeClient { - return &volumeClient{cc} -} - -func (c *volumeClient) ListVolumesOnDisk(ctx context.Context, in *ListVolumesOnDiskRequest, opts ...grpc.CallOption) (*ListVolumesOnDiskResponse, error) { - out := new(ListVolumesOnDiskResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/ListVolumesOnDisk", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) MountVolume(ctx context.Context, in *MountVolumeRequest, opts ...grpc.CallOption) (*MountVolumeResponse, error) { - out := new(MountVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/MountVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) DismountVolume(ctx context.Context, in *DismountVolumeRequest, opts ...grpc.CallOption) (*DismountVolumeResponse, error) { - out := new(DismountVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/DismountVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) IsVolumeFormatted(ctx context.Context, in *IsVolumeFormattedRequest, opts ...grpc.CallOption) (*IsVolumeFormattedResponse, error) { - out := new(IsVolumeFormattedResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/IsVolumeFormatted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) FormatVolume(ctx context.Context, in *FormatVolumeRequest, opts ...grpc.CallOption) (*FormatVolumeResponse, error) { - out := new(FormatVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/FormatVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) ResizeVolume(ctx context.Context, in *ResizeVolumeRequest, opts ...grpc.CallOption) (*ResizeVolumeResponse, error) { - out := new(ResizeVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/ResizeVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) VolumeStats(ctx context.Context, in *VolumeStatsRequest, opts ...grpc.CallOption) (*VolumeStatsResponse, error) { - out := new(VolumeStatsResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/VolumeStats", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) GetVolumeDiskNumber(ctx context.Context, in *VolumeDiskNumberRequest, opts ...grpc.CallOption) (*VolumeDiskNumberResponse, error) { - out := new(VolumeDiskNumberResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/GetVolumeDiskNumber", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) GetVolumeIDFromMount(ctx context.Context, in *VolumeIDFromMountRequest, opts ...grpc.CallOption) (*VolumeIDFromMountResponse, error) { - out := new(VolumeIDFromMountResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/GetVolumeIDFromMount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) WriteVolumeCache(ctx context.Context, in *WriteVolumeCacheRequest, opts ...grpc.CallOption) (*WriteVolumeCacheResponse, error) { - out := new(WriteVolumeCacheResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/WriteVolumeCache", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// VolumeServer is the server API for Volume service. -type VolumeServer interface { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - ListVolumesOnDisk(context.Context, *ListVolumesOnDiskRequest) (*ListVolumesOnDiskResponse, error) - // MountVolume mounts the volume at the requested global staging path - MountVolume(context.Context, *MountVolumeRequest) (*MountVolumeResponse, error) - // DismountVolume gracefully dismounts a volume - DismountVolume(context.Context, *DismountVolumeRequest) (*DismountVolumeResponse, error) - // IsVolumeFormatted checks if a volume is formatted with NTFS - IsVolumeFormatted(context.Context, *IsVolumeFormattedRequest) (*IsVolumeFormattedResponse, error) - // FormatVolume formats a volume with the provided file system - FormatVolume(context.Context, *FormatVolumeRequest) (*FormatVolumeResponse, error) - // ResizeVolume performs resizing of the partition and file system for a block based volume - ResizeVolume(context.Context, *ResizeVolumeRequest) (*ResizeVolumeResponse, error) - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - VolumeStats(context.Context, *VolumeStatsRequest) (*VolumeStatsResponse, error) - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - GetVolumeDiskNumber(context.Context, *VolumeDiskNumberRequest) (*VolumeDiskNumberResponse, error) - // GetVolumeIDFromMount gets the volume id for a given mount - GetVolumeIDFromMount(context.Context, *VolumeIDFromMountRequest) (*VolumeIDFromMountResponse, error) - // WriteVolumeCache write volume cache to disk - WriteVolumeCache(context.Context, *WriteVolumeCacheRequest) (*WriteVolumeCacheResponse, error) -} - -// UnimplementedVolumeServer can be embedded to have forward compatible implementations. -type UnimplementedVolumeServer struct { -} - -func (*UnimplementedVolumeServer) ListVolumesOnDisk(ctx context.Context, req *ListVolumesOnDiskRequest) (*ListVolumesOnDiskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListVolumesOnDisk not implemented") -} -func (*UnimplementedVolumeServer) MountVolume(ctx context.Context, req *MountVolumeRequest) (*MountVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MountVolume not implemented") -} -func (*UnimplementedVolumeServer) DismountVolume(ctx context.Context, req *DismountVolumeRequest) (*DismountVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DismountVolume not implemented") -} -func (*UnimplementedVolumeServer) IsVolumeFormatted(ctx context.Context, req *IsVolumeFormattedRequest) (*IsVolumeFormattedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsVolumeFormatted not implemented") -} -func (*UnimplementedVolumeServer) FormatVolume(ctx context.Context, req *FormatVolumeRequest) (*FormatVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FormatVolume not implemented") -} -func (*UnimplementedVolumeServer) ResizeVolume(ctx context.Context, req *ResizeVolumeRequest) (*ResizeVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResizeVolume not implemented") -} -func (*UnimplementedVolumeServer) VolumeStats(ctx context.Context, req *VolumeStatsRequest) (*VolumeStatsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeStats not implemented") -} -func (*UnimplementedVolumeServer) GetVolumeDiskNumber(ctx context.Context, req *VolumeDiskNumberRequest) (*VolumeDiskNumberResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVolumeDiskNumber not implemented") -} -func (*UnimplementedVolumeServer) GetVolumeIDFromMount(ctx context.Context, req *VolumeIDFromMountRequest) (*VolumeIDFromMountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVolumeIDFromMount not implemented") -} -func (*UnimplementedVolumeServer) WriteVolumeCache(ctx context.Context, req *WriteVolumeCacheRequest) (*WriteVolumeCacheResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WriteVolumeCache not implemented") -} - -func RegisterVolumeServer(s *grpc.Server, srv VolumeServer) { - s.RegisterService(&_Volume_serviceDesc, srv) -} - -func _Volume_ListVolumesOnDisk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListVolumesOnDiskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).ListVolumesOnDisk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/ListVolumesOnDisk", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).ListVolumesOnDisk(ctx, req.(*ListVolumesOnDiskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_MountVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MountVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).MountVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/MountVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).MountVolume(ctx, req.(*MountVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_DismountVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DismountVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).DismountVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/DismountVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).DismountVolume(ctx, req.(*DismountVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_IsVolumeFormatted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsVolumeFormattedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).IsVolumeFormatted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/IsVolumeFormatted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).IsVolumeFormatted(ctx, req.(*IsVolumeFormattedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_FormatVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FormatVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).FormatVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/FormatVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).FormatVolume(ctx, req.(*FormatVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_ResizeVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResizeVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).ResizeVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/ResizeVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).ResizeVolume(ctx, req.(*ResizeVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_VolumeStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeStatsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).VolumeStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/VolumeStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).VolumeStats(ctx, req.(*VolumeStatsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_GetVolumeDiskNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeDiskNumberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).GetVolumeDiskNumber(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/GetVolumeDiskNumber", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).GetVolumeDiskNumber(ctx, req.(*VolumeDiskNumberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_GetVolumeIDFromMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeIDFromMountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).GetVolumeIDFromMount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/GetVolumeIDFromMount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).GetVolumeIDFromMount(ctx, req.(*VolumeIDFromMountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_WriteVolumeCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteVolumeCacheRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).WriteVolumeCache(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/WriteVolumeCache", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).WriteVolumeCache(ctx, req.(*WriteVolumeCacheRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Volume_serviceDesc = grpc.ServiceDesc{ - ServiceName: "v1beta2.Volume", - HandlerType: (*VolumeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListVolumesOnDisk", - Handler: _Volume_ListVolumesOnDisk_Handler, - }, - { - MethodName: "MountVolume", - Handler: _Volume_MountVolume_Handler, - }, - { - MethodName: "DismountVolume", - Handler: _Volume_DismountVolume_Handler, - }, - { - MethodName: "IsVolumeFormatted", - Handler: _Volume_IsVolumeFormatted_Handler, - }, - { - MethodName: "FormatVolume", - Handler: _Volume_FormatVolume_Handler, - }, - { - MethodName: "ResizeVolume", - Handler: _Volume_ResizeVolume_Handler, - }, - { - MethodName: "VolumeStats", - Handler: _Volume_VolumeStats_Handler, - }, - { - MethodName: "GetVolumeDiskNumber", - Handler: _Volume_GetVolumeDiskNumber_Handler, - }, - { - MethodName: "GetVolumeIDFromMount", - Handler: _Volume_GetVolumeIDFromMount_Handler, - }, - { - MethodName: "WriteVolumeCache", - Handler: _Volume_WriteVolumeCache_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "client/api/volume/v1beta2/api.proto", -} diff --git a/client/api/volume/v1beta2/api.proto b/client/api/volume/v1beta2/api.proto deleted file mode 100644 index c88e1f57..00000000 --- a/client/api/volume/v1beta2/api.proto +++ /dev/null @@ -1,132 +0,0 @@ -syntax = "proto3"; - -package v1beta2; - -option go_package = "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2"; - -service Volume { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - rpc ListVolumesOnDisk(ListVolumesOnDiskRequest) returns (ListVolumesOnDiskResponse) {} - // MountVolume mounts the volume at the requested global staging path - rpc MountVolume(MountVolumeRequest) returns (MountVolumeResponse) {} - // DismountVolume gracefully dismounts a volume - rpc DismountVolume(DismountVolumeRequest) returns (DismountVolumeResponse) {} - // IsVolumeFormatted checks if a volume is formatted with NTFS - rpc IsVolumeFormatted(IsVolumeFormattedRequest) returns (IsVolumeFormattedResponse) {} - // FormatVolume formats a volume with the provided file system - rpc FormatVolume(FormatVolumeRequest) returns (FormatVolumeResponse) {} - // ResizeVolume performs resizing of the partition and file system for a block based volume - rpc ResizeVolume(ResizeVolumeRequest) returns (ResizeVolumeResponse) {} - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - rpc VolumeStats(VolumeStatsRequest) returns (VolumeStatsResponse) {} - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - rpc GetVolumeDiskNumber(VolumeDiskNumberRequest) returns (VolumeDiskNumberResponse) {} - // GetVolumeIDFromMount gets the volume id for a given mount - rpc GetVolumeIDFromMount(VolumeIDFromMountRequest) returns (VolumeIDFromMountResponse) {} - // WriteVolumeCache write volume cache to disk - rpc WriteVolumeCache(WriteVolumeCacheRequest) returns (WriteVolumeCacheResponse) {} -} - -message ListVolumesOnDiskRequest { - // Disk device ID of the disk to query for volumes - string disk_id = 1; -} - -message ListVolumesOnDiskResponse { - // Volume device IDs of volumes on the specified disk - repeated string volume_ids = 1; -} - -message MountVolumeRequest { - // Volume device ID of the volume to mount - string volume_id = 1; - // Path in the host's file system where the volume needs to be mounted - string path = 2; -} - -message MountVolumeResponse { - // Intentionally empty -} - -message DismountVolumeRequest { - // Volume device ID of the volume to dismount - string volume_id = 1; - // Path where the volume has been mounted. - string path = 2; -} - -message DismountVolumeResponse { - // Intentionally empty -} - -message IsVolumeFormattedRequest { - // Volume device ID of the volume to check - string volume_id = 1; -} - -message IsVolumeFormattedResponse { - // Is the volume formatted with NTFS - bool formatted = 1; -} - -message FormatVolumeRequest { - // Volume device ID of the volume to format - string volume_id = 1; -} - -message FormatVolumeResponse { - // Intentionally empty -} - -message ResizeVolumeRequest { - // Volume device ID of the volume to dismount - string volume_id = 1; - // New size of the volume - int64 size = 2; -} - -message ResizeVolumeResponse { - // Intentionally empty -} - -message VolumeStatsRequest{ - // Volume device Id of the volume to get the stats for - string volume_id = 1; -} - -message VolumeStatsResponse{ - // Capacity of the volume - int64 volumeSize = 1; - // Used bytes - int64 volumeUsedSize = 2; -} - -message VolumeDiskNumberRequest{ - // Volume device Id of the volume to get the disk number for - string volume_id = 1; -} - -message VolumeDiskNumberResponse{ - // Corresponding disk number - int64 diskNumber = 1; -} - -message VolumeIDFromMountRequest { - // Mount - string mount = 1; -} - -message VolumeIDFromMountResponse { - // Mount - string volume_id = 1; -} - -message WriteVolumeCacheRequest { - // Volume device ID of the volume to flush the cache - string volume_id = 1; -} - -message WriteVolumeCacheResponse { - // Intentionally empty -} \ No newline at end of file diff --git a/client/groups/volume/v1beta2/client_generated.go b/client/groups/volume/v1beta2/client_generated.go deleted file mode 100644 index a558a042..00000000 --- a/client/groups/volume/v1beta2/client_generated.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by csi-proxy-api-gen. DO NOT EDIT. - -package v1beta2 - -import ( - "context" - "net" - - "github.com/Microsoft/go-winio" - "github.com/kubernetes-csi/csi-proxy/client" - "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2" - "github.com/kubernetes-csi/csi-proxy/client/apiversion" - "google.golang.org/grpc" -) - -const groupName = "volume" - -var version = apiversion.NewVersionOrPanic("v1beta2") - -type Client struct { - client v1beta2.VolumeClient - connection *grpc.ClientConn -} - -// NewClient returns a client to make calls to the volume API group version v1beta2. -// It's the caller's responsibility to Close the client when done. -func NewClient() (*Client, error) { - pipePath := client.PipePath(groupName, version) - - connection, err := grpc.Dial(pipePath, - grpc.WithContextDialer(func(context context.Context, s string) (net.Conn, error) { - return winio.DialPipeContext(context, s) - }), - grpc.WithInsecure()) - if err != nil { - return nil, err - } - - client := v1beta2.NewVolumeClient(connection) - return &Client{ - client: client, - connection: connection, - }, nil -} - -// Close closes the client. It must be called before the client gets GC-ed. -func (w *Client) Close() error { - return w.connection.Close() -} - -// ensures we implement all the required methods -var _ v1beta2.VolumeClient = &Client{} - -func (w *Client) DismountVolume(context context.Context, request *v1beta2.DismountVolumeRequest, opts ...grpc.CallOption) (*v1beta2.DismountVolumeResponse, error) { - return w.client.DismountVolume(context, request, opts...) -} - -func (w *Client) FormatVolume(context context.Context, request *v1beta2.FormatVolumeRequest, opts ...grpc.CallOption) (*v1beta2.FormatVolumeResponse, error) { - return w.client.FormatVolume(context, request, opts...) -} - -func (w *Client) GetVolumeDiskNumber(context context.Context, request *v1beta2.VolumeDiskNumberRequest, opts ...grpc.CallOption) (*v1beta2.VolumeDiskNumberResponse, error) { - return w.client.GetVolumeDiskNumber(context, request, opts...) -} - -func (w *Client) GetVolumeIDFromMount(context context.Context, request *v1beta2.VolumeIDFromMountRequest, opts ...grpc.CallOption) (*v1beta2.VolumeIDFromMountResponse, error) { - return w.client.GetVolumeIDFromMount(context, request, opts...) -} - -func (w *Client) IsVolumeFormatted(context context.Context, request *v1beta2.IsVolumeFormattedRequest, opts ...grpc.CallOption) (*v1beta2.IsVolumeFormattedResponse, error) { - return w.client.IsVolumeFormatted(context, request, opts...) -} - -func (w *Client) ListVolumesOnDisk(context context.Context, request *v1beta2.ListVolumesOnDiskRequest, opts ...grpc.CallOption) (*v1beta2.ListVolumesOnDiskResponse, error) { - return w.client.ListVolumesOnDisk(context, request, opts...) -} - -func (w *Client) MountVolume(context context.Context, request *v1beta2.MountVolumeRequest, opts ...grpc.CallOption) (*v1beta2.MountVolumeResponse, error) { - return w.client.MountVolume(context, request, opts...) -} - -func (w *Client) ResizeVolume(context context.Context, request *v1beta2.ResizeVolumeRequest, opts ...grpc.CallOption) (*v1beta2.ResizeVolumeResponse, error) { - return w.client.ResizeVolume(context, request, opts...) -} - -func (w *Client) VolumeStats(context context.Context, request *v1beta2.VolumeStatsRequest, opts ...grpc.CallOption) (*v1beta2.VolumeStatsResponse, error) { - return w.client.VolumeStats(context, request, opts...) -} - -func (w *Client) WriteVolumeCache(context context.Context, request *v1beta2.WriteVolumeCacheRequest, opts ...grpc.CallOption) (*v1beta2.WriteVolumeCacheResponse, error) { - return w.client.WriteVolumeCache(context, request, opts...) -} diff --git a/integrationtests/volume_test.go b/integrationtests/volume_test.go index 06738f59..240b4d82 100644 --- a/integrationtests/volume_test.go +++ b/integrationtests/volume_test.go @@ -368,7 +368,6 @@ func simpleE2e(t *testing.T) { if err != nil { t.Fatalf("Volume id %s mount to path %s failed. Error: %v", volumeID, mountPath, err) } - // Dismount the volume dismountVolumeRequest := &v1alpha1.DismountVolumeRequest{ VolumeId: volumeID, diff --git a/internal/os/volume/api.go b/internal/os/volume/api.go index 83cde4c3..33e7a08b 100644 --- a/internal/os/volume/api.go +++ b/internal/os/volume/api.go @@ -47,16 +47,6 @@ func (VolAPIImplementor) FormatVolume(volumeID string) (err error) { return nil } -// WriteVolumeCache - Writes the file system cache to disk with the given volume id -func (VolAPIImplementor) WriteVolumeCache(volumeID string) (err error) { - cmd := fmt.Sprintf("Get-Volume -UniqueId \"%s\" | Write-Volumecache", volumeID) - out, err := runExec(cmd) - if err != nil { - return fmt.Errorf("error writing volume cache. cmd: %s, output: %s, error: %v", cmd, string(out), err) - } - return nil -} - // IsVolumeFormatted - Check if the volume is formatted with the pre specified filesystem(typically ntfs). func (VolAPIImplementor) IsVolumeFormatted(volumeID string) (bool, error) { cmd := fmt.Sprintf("(Get-Volume -UniqueId \"%s\" -ErrorAction Stop).FileSystemType", volumeID) diff --git a/internal/server/volume/api_group_generated.go b/internal/server/volume/api_group_generated.go index e6557b21..97d267a1 100644 --- a/internal/server/volume/api_group_generated.go +++ b/internal/server/volume/api_group_generated.go @@ -8,7 +8,6 @@ import ( "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal" "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal/v1alpha1" "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal/v1beta1" - "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal/v1beta2" ) const name = "volume" @@ -19,7 +18,6 @@ var _ internal.ServerInterface = &Server{} func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI { v1alpha1Server := v1alpha1.NewVersionedServer(s) v1beta1Server := v1beta1.NewVersionedServer(s) - v1beta2Server := v1beta2.NewVersionedServer(s) return []*srvtypes.VersionedAPI{ { @@ -32,10 +30,5 @@ func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI { Version: apiversion.NewVersionOrPanic("v1beta1"), Registrant: v1beta1Server.Register, }, - { - Group: name, - Version: apiversion.NewVersionOrPanic("v1beta2"), - Registrant: v1beta2Server.Register, - }, } } diff --git a/internal/server/volume/internal/types.go b/internal/server/volume/internal/types.go index 4e480e12..3068db9c 100644 --- a/internal/server/volume/internal/types.go +++ b/internal/server/volume/internal/types.go @@ -31,13 +31,6 @@ type FormatVolumeRequest struct { type FormatVolumeResponse struct { } -type WriteVolumeCacheRequest struct { - VolumeId string -} - -type WriteVolumeCacheResponse struct { -} - type DismountVolumeRequest struct { VolumeId string Path string diff --git a/internal/server/volume/internal/types_generated.go b/internal/server/volume/internal/types_generated.go index 673415be..84683f8b 100644 --- a/internal/server/volume/internal/types_generated.go +++ b/internal/server/volume/internal/types_generated.go @@ -24,5 +24,4 @@ type ServerInterface interface { MountVolume(context.Context, *MountVolumeRequest, apiversion.Version) (*MountVolumeResponse, error) ResizeVolume(context.Context, *ResizeVolumeRequest, apiversion.Version) (*ResizeVolumeResponse, error) VolumeStats(context.Context, *VolumeStatsRequest, apiversion.Version) (*VolumeStatsResponse, error) - WriteVolumeCache(context.Context, *WriteVolumeCacheRequest, apiversion.Version) (*WriteVolumeCacheResponse, error) } diff --git a/internal/server/volume/internal/v1beta2/conversion.go b/internal/server/volume/internal/v1beta2/conversion.go deleted file mode 100644 index 82717dd1..00000000 --- a/internal/server/volume/internal/v1beta2/conversion.go +++ /dev/null @@ -1,3 +0,0 @@ -package v1beta2 - -// Add manual conversion functions here to override automatic conversion functions diff --git a/internal/server/volume/internal/v1beta2/conversion_generated.go b/internal/server/volume/internal/v1beta2/conversion_generated.go deleted file mode 100644 index e338dc13..00000000 --- a/internal/server/volume/internal/v1beta2/conversion_generated.go +++ /dev/null @@ -1,408 +0,0 @@ -// Code generated by csi-proxy-api-gen. DO NOT EDIT. - -package v1beta2 - -import ( - unsafe "unsafe" - - v1beta2 "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2" - internal "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal" -) - -func autoConvert_v1beta2_DismountVolumeRequest_To_internal_DismountVolumeRequest(in *v1beta2.DismountVolumeRequest, out *internal.DismountVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Path = in.Path - return nil -} - -// Convert_v1beta2_DismountVolumeRequest_To_internal_DismountVolumeRequest is an autogenerated conversion function. -func Convert_v1beta2_DismountVolumeRequest_To_internal_DismountVolumeRequest(in *v1beta2.DismountVolumeRequest, out *internal.DismountVolumeRequest) error { - return autoConvert_v1beta2_DismountVolumeRequest_To_internal_DismountVolumeRequest(in, out) -} - -func autoConvert_internal_DismountVolumeRequest_To_v1beta2_DismountVolumeRequest(in *internal.DismountVolumeRequest, out *v1beta2.DismountVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Path = in.Path - return nil -} - -// Convert_internal_DismountVolumeRequest_To_v1beta2_DismountVolumeRequest is an autogenerated conversion function. -func Convert_internal_DismountVolumeRequest_To_v1beta2_DismountVolumeRequest(in *internal.DismountVolumeRequest, out *v1beta2.DismountVolumeRequest) error { - return autoConvert_internal_DismountVolumeRequest_To_v1beta2_DismountVolumeRequest(in, out) -} - -func autoConvert_v1beta2_DismountVolumeResponse_To_internal_DismountVolumeResponse(in *v1beta2.DismountVolumeResponse, out *internal.DismountVolumeResponse) error { - return nil -} - -// Convert_v1beta2_DismountVolumeResponse_To_internal_DismountVolumeResponse is an autogenerated conversion function. -func Convert_v1beta2_DismountVolumeResponse_To_internal_DismountVolumeResponse(in *v1beta2.DismountVolumeResponse, out *internal.DismountVolumeResponse) error { - return autoConvert_v1beta2_DismountVolumeResponse_To_internal_DismountVolumeResponse(in, out) -} - -func autoConvert_internal_DismountVolumeResponse_To_v1beta2_DismountVolumeResponse(in *internal.DismountVolumeResponse, out *v1beta2.DismountVolumeResponse) error { - return nil -} - -// Convert_internal_DismountVolumeResponse_To_v1beta2_DismountVolumeResponse is an autogenerated conversion function. -func Convert_internal_DismountVolumeResponse_To_v1beta2_DismountVolumeResponse(in *internal.DismountVolumeResponse, out *v1beta2.DismountVolumeResponse) error { - return autoConvert_internal_DismountVolumeResponse_To_v1beta2_DismountVolumeResponse(in, out) -} - -func autoConvert_v1beta2_FormatVolumeRequest_To_internal_FormatVolumeRequest(in *v1beta2.FormatVolumeRequest, out *internal.FormatVolumeRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_FormatVolumeRequest_To_internal_FormatVolumeRequest is an autogenerated conversion function. -func Convert_v1beta2_FormatVolumeRequest_To_internal_FormatVolumeRequest(in *v1beta2.FormatVolumeRequest, out *internal.FormatVolumeRequest) error { - return autoConvert_v1beta2_FormatVolumeRequest_To_internal_FormatVolumeRequest(in, out) -} - -func autoConvert_internal_FormatVolumeRequest_To_v1beta2_FormatVolumeRequest(in *internal.FormatVolumeRequest, out *v1beta2.FormatVolumeRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_FormatVolumeRequest_To_v1beta2_FormatVolumeRequest is an autogenerated conversion function. -func Convert_internal_FormatVolumeRequest_To_v1beta2_FormatVolumeRequest(in *internal.FormatVolumeRequest, out *v1beta2.FormatVolumeRequest) error { - return autoConvert_internal_FormatVolumeRequest_To_v1beta2_FormatVolumeRequest(in, out) -} - -func autoConvert_v1beta2_FormatVolumeResponse_To_internal_FormatVolumeResponse(in *v1beta2.FormatVolumeResponse, out *internal.FormatVolumeResponse) error { - return nil -} - -// Convert_v1beta2_FormatVolumeResponse_To_internal_FormatVolumeResponse is an autogenerated conversion function. -func Convert_v1beta2_FormatVolumeResponse_To_internal_FormatVolumeResponse(in *v1beta2.FormatVolumeResponse, out *internal.FormatVolumeResponse) error { - return autoConvert_v1beta2_FormatVolumeResponse_To_internal_FormatVolumeResponse(in, out) -} - -func autoConvert_internal_FormatVolumeResponse_To_v1beta2_FormatVolumeResponse(in *internal.FormatVolumeResponse, out *v1beta2.FormatVolumeResponse) error { - return nil -} - -// Convert_internal_FormatVolumeResponse_To_v1beta2_FormatVolumeResponse is an autogenerated conversion function. -func Convert_internal_FormatVolumeResponse_To_v1beta2_FormatVolumeResponse(in *internal.FormatVolumeResponse, out *v1beta2.FormatVolumeResponse) error { - return autoConvert_internal_FormatVolumeResponse_To_v1beta2_FormatVolumeResponse(in, out) -} - -func autoConvert_v1beta2_IsVolumeFormattedRequest_To_internal_IsVolumeFormattedRequest(in *v1beta2.IsVolumeFormattedRequest, out *internal.IsVolumeFormattedRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_IsVolumeFormattedRequest_To_internal_IsVolumeFormattedRequest is an autogenerated conversion function. -func Convert_v1beta2_IsVolumeFormattedRequest_To_internal_IsVolumeFormattedRequest(in *v1beta2.IsVolumeFormattedRequest, out *internal.IsVolumeFormattedRequest) error { - return autoConvert_v1beta2_IsVolumeFormattedRequest_To_internal_IsVolumeFormattedRequest(in, out) -} - -func autoConvert_internal_IsVolumeFormattedRequest_To_v1beta2_IsVolumeFormattedRequest(in *internal.IsVolumeFormattedRequest, out *v1beta2.IsVolumeFormattedRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_IsVolumeFormattedRequest_To_v1beta2_IsVolumeFormattedRequest is an autogenerated conversion function. -func Convert_internal_IsVolumeFormattedRequest_To_v1beta2_IsVolumeFormattedRequest(in *internal.IsVolumeFormattedRequest, out *v1beta2.IsVolumeFormattedRequest) error { - return autoConvert_internal_IsVolumeFormattedRequest_To_v1beta2_IsVolumeFormattedRequest(in, out) -} - -func autoConvert_v1beta2_IsVolumeFormattedResponse_To_internal_IsVolumeFormattedResponse(in *v1beta2.IsVolumeFormattedResponse, out *internal.IsVolumeFormattedResponse) error { - out.Formatted = in.Formatted - return nil -} - -// Convert_v1beta2_IsVolumeFormattedResponse_To_internal_IsVolumeFormattedResponse is an autogenerated conversion function. -func Convert_v1beta2_IsVolumeFormattedResponse_To_internal_IsVolumeFormattedResponse(in *v1beta2.IsVolumeFormattedResponse, out *internal.IsVolumeFormattedResponse) error { - return autoConvert_v1beta2_IsVolumeFormattedResponse_To_internal_IsVolumeFormattedResponse(in, out) -} - -func autoConvert_internal_IsVolumeFormattedResponse_To_v1beta2_IsVolumeFormattedResponse(in *internal.IsVolumeFormattedResponse, out *v1beta2.IsVolumeFormattedResponse) error { - out.Formatted = in.Formatted - return nil -} - -// Convert_internal_IsVolumeFormattedResponse_To_v1beta2_IsVolumeFormattedResponse is an autogenerated conversion function. -func Convert_internal_IsVolumeFormattedResponse_To_v1beta2_IsVolumeFormattedResponse(in *internal.IsVolumeFormattedResponse, out *v1beta2.IsVolumeFormattedResponse) error { - return autoConvert_internal_IsVolumeFormattedResponse_To_v1beta2_IsVolumeFormattedResponse(in, out) -} - -func autoConvert_v1beta2_ListVolumesOnDiskRequest_To_internal_ListVolumesOnDiskRequest(in *v1beta2.ListVolumesOnDiskRequest, out *internal.ListVolumesOnDiskRequest) error { - out.DiskId = in.DiskId - return nil -} - -// Convert_v1beta2_ListVolumesOnDiskRequest_To_internal_ListVolumesOnDiskRequest is an autogenerated conversion function. -func Convert_v1beta2_ListVolumesOnDiskRequest_To_internal_ListVolumesOnDiskRequest(in *v1beta2.ListVolumesOnDiskRequest, out *internal.ListVolumesOnDiskRequest) error { - return autoConvert_v1beta2_ListVolumesOnDiskRequest_To_internal_ListVolumesOnDiskRequest(in, out) -} - -func autoConvert_internal_ListVolumesOnDiskRequest_To_v1beta2_ListVolumesOnDiskRequest(in *internal.ListVolumesOnDiskRequest, out *v1beta2.ListVolumesOnDiskRequest) error { - out.DiskId = in.DiskId - return nil -} - -// Convert_internal_ListVolumesOnDiskRequest_To_v1beta2_ListVolumesOnDiskRequest is an autogenerated conversion function. -func Convert_internal_ListVolumesOnDiskRequest_To_v1beta2_ListVolumesOnDiskRequest(in *internal.ListVolumesOnDiskRequest, out *v1beta2.ListVolumesOnDiskRequest) error { - return autoConvert_internal_ListVolumesOnDiskRequest_To_v1beta2_ListVolumesOnDiskRequest(in, out) -} - -func autoConvert_v1beta2_ListVolumesOnDiskResponse_To_internal_ListVolumesOnDiskResponse(in *v1beta2.ListVolumesOnDiskResponse, out *internal.ListVolumesOnDiskResponse) error { - out.VolumeIds = *(*[]string)(unsafe.Pointer(&in.VolumeIds)) - return nil -} - -// Convert_v1beta2_ListVolumesOnDiskResponse_To_internal_ListVolumesOnDiskResponse is an autogenerated conversion function. -func Convert_v1beta2_ListVolumesOnDiskResponse_To_internal_ListVolumesOnDiskResponse(in *v1beta2.ListVolumesOnDiskResponse, out *internal.ListVolumesOnDiskResponse) error { - return autoConvert_v1beta2_ListVolumesOnDiskResponse_To_internal_ListVolumesOnDiskResponse(in, out) -} - -func autoConvert_internal_ListVolumesOnDiskResponse_To_v1beta2_ListVolumesOnDiskResponse(in *internal.ListVolumesOnDiskResponse, out *v1beta2.ListVolumesOnDiskResponse) error { - out.VolumeIds = *(*[]string)(unsafe.Pointer(&in.VolumeIds)) - return nil -} - -// Convert_internal_ListVolumesOnDiskResponse_To_v1beta2_ListVolumesOnDiskResponse is an autogenerated conversion function. -func Convert_internal_ListVolumesOnDiskResponse_To_v1beta2_ListVolumesOnDiskResponse(in *internal.ListVolumesOnDiskResponse, out *v1beta2.ListVolumesOnDiskResponse) error { - return autoConvert_internal_ListVolumesOnDiskResponse_To_v1beta2_ListVolumesOnDiskResponse(in, out) -} - -func autoConvert_v1beta2_MountVolumeRequest_To_internal_MountVolumeRequest(in *v1beta2.MountVolumeRequest, out *internal.MountVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Path = in.Path - return nil -} - -// Convert_v1beta2_MountVolumeRequest_To_internal_MountVolumeRequest is an autogenerated conversion function. -func Convert_v1beta2_MountVolumeRequest_To_internal_MountVolumeRequest(in *v1beta2.MountVolumeRequest, out *internal.MountVolumeRequest) error { - return autoConvert_v1beta2_MountVolumeRequest_To_internal_MountVolumeRequest(in, out) -} - -func autoConvert_internal_MountVolumeRequest_To_v1beta2_MountVolumeRequest(in *internal.MountVolumeRequest, out *v1beta2.MountVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Path = in.Path - return nil -} - -// Convert_internal_MountVolumeRequest_To_v1beta2_MountVolumeRequest is an autogenerated conversion function. -func Convert_internal_MountVolumeRequest_To_v1beta2_MountVolumeRequest(in *internal.MountVolumeRequest, out *v1beta2.MountVolumeRequest) error { - return autoConvert_internal_MountVolumeRequest_To_v1beta2_MountVolumeRequest(in, out) -} - -func autoConvert_v1beta2_MountVolumeResponse_To_internal_MountVolumeResponse(in *v1beta2.MountVolumeResponse, out *internal.MountVolumeResponse) error { - return nil -} - -// Convert_v1beta2_MountVolumeResponse_To_internal_MountVolumeResponse is an autogenerated conversion function. -func Convert_v1beta2_MountVolumeResponse_To_internal_MountVolumeResponse(in *v1beta2.MountVolumeResponse, out *internal.MountVolumeResponse) error { - return autoConvert_v1beta2_MountVolumeResponse_To_internal_MountVolumeResponse(in, out) -} - -func autoConvert_internal_MountVolumeResponse_To_v1beta2_MountVolumeResponse(in *internal.MountVolumeResponse, out *v1beta2.MountVolumeResponse) error { - return nil -} - -// Convert_internal_MountVolumeResponse_To_v1beta2_MountVolumeResponse is an autogenerated conversion function. -func Convert_internal_MountVolumeResponse_To_v1beta2_MountVolumeResponse(in *internal.MountVolumeResponse, out *v1beta2.MountVolumeResponse) error { - return autoConvert_internal_MountVolumeResponse_To_v1beta2_MountVolumeResponse(in, out) -} - -func autoConvert_v1beta2_ResizeVolumeRequest_To_internal_ResizeVolumeRequest(in *v1beta2.ResizeVolumeRequest, out *internal.ResizeVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Size = in.Size - return nil -} - -// Convert_v1beta2_ResizeVolumeRequest_To_internal_ResizeVolumeRequest is an autogenerated conversion function. -func Convert_v1beta2_ResizeVolumeRequest_To_internal_ResizeVolumeRequest(in *v1beta2.ResizeVolumeRequest, out *internal.ResizeVolumeRequest) error { - return autoConvert_v1beta2_ResizeVolumeRequest_To_internal_ResizeVolumeRequest(in, out) -} - -func autoConvert_internal_ResizeVolumeRequest_To_v1beta2_ResizeVolumeRequest(in *internal.ResizeVolumeRequest, out *v1beta2.ResizeVolumeRequest) error { - out.VolumeId = in.VolumeId - out.Size = in.Size - return nil -} - -// Convert_internal_ResizeVolumeRequest_To_v1beta2_ResizeVolumeRequest is an autogenerated conversion function. -func Convert_internal_ResizeVolumeRequest_To_v1beta2_ResizeVolumeRequest(in *internal.ResizeVolumeRequest, out *v1beta2.ResizeVolumeRequest) error { - return autoConvert_internal_ResizeVolumeRequest_To_v1beta2_ResizeVolumeRequest(in, out) -} - -func autoConvert_v1beta2_ResizeVolumeResponse_To_internal_ResizeVolumeResponse(in *v1beta2.ResizeVolumeResponse, out *internal.ResizeVolumeResponse) error { - return nil -} - -// Convert_v1beta2_ResizeVolumeResponse_To_internal_ResizeVolumeResponse is an autogenerated conversion function. -func Convert_v1beta2_ResizeVolumeResponse_To_internal_ResizeVolumeResponse(in *v1beta2.ResizeVolumeResponse, out *internal.ResizeVolumeResponse) error { - return autoConvert_v1beta2_ResizeVolumeResponse_To_internal_ResizeVolumeResponse(in, out) -} - -func autoConvert_internal_ResizeVolumeResponse_To_v1beta2_ResizeVolumeResponse(in *internal.ResizeVolumeResponse, out *v1beta2.ResizeVolumeResponse) error { - return nil -} - -// Convert_internal_ResizeVolumeResponse_To_v1beta2_ResizeVolumeResponse is an autogenerated conversion function. -func Convert_internal_ResizeVolumeResponse_To_v1beta2_ResizeVolumeResponse(in *internal.ResizeVolumeResponse, out *v1beta2.ResizeVolumeResponse) error { - return autoConvert_internal_ResizeVolumeResponse_To_v1beta2_ResizeVolumeResponse(in, out) -} - -func autoConvert_v1beta2_VolumeDiskNumberRequest_To_internal_VolumeDiskNumberRequest(in *v1beta2.VolumeDiskNumberRequest, out *internal.VolumeDiskNumberRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_VolumeDiskNumberRequest_To_internal_VolumeDiskNumberRequest is an autogenerated conversion function. -func Convert_v1beta2_VolumeDiskNumberRequest_To_internal_VolumeDiskNumberRequest(in *v1beta2.VolumeDiskNumberRequest, out *internal.VolumeDiskNumberRequest) error { - return autoConvert_v1beta2_VolumeDiskNumberRequest_To_internal_VolumeDiskNumberRequest(in, out) -} - -func autoConvert_internal_VolumeDiskNumberRequest_To_v1beta2_VolumeDiskNumberRequest(in *internal.VolumeDiskNumberRequest, out *v1beta2.VolumeDiskNumberRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_VolumeDiskNumberRequest_To_v1beta2_VolumeDiskNumberRequest is an autogenerated conversion function. -func Convert_internal_VolumeDiskNumberRequest_To_v1beta2_VolumeDiskNumberRequest(in *internal.VolumeDiskNumberRequest, out *v1beta2.VolumeDiskNumberRequest) error { - return autoConvert_internal_VolumeDiskNumberRequest_To_v1beta2_VolumeDiskNumberRequest(in, out) -} - -func autoConvert_v1beta2_VolumeDiskNumberResponse_To_internal_VolumeDiskNumberResponse(in *v1beta2.VolumeDiskNumberResponse, out *internal.VolumeDiskNumberResponse) error { - out.DiskNumber = in.DiskNumber - return nil -} - -// Convert_v1beta2_VolumeDiskNumberResponse_To_internal_VolumeDiskNumberResponse is an autogenerated conversion function. -func Convert_v1beta2_VolumeDiskNumberResponse_To_internal_VolumeDiskNumberResponse(in *v1beta2.VolumeDiskNumberResponse, out *internal.VolumeDiskNumberResponse) error { - return autoConvert_v1beta2_VolumeDiskNumberResponse_To_internal_VolumeDiskNumberResponse(in, out) -} - -func autoConvert_internal_VolumeDiskNumberResponse_To_v1beta2_VolumeDiskNumberResponse(in *internal.VolumeDiskNumberResponse, out *v1beta2.VolumeDiskNumberResponse) error { - out.DiskNumber = in.DiskNumber - return nil -} - -// Convert_internal_VolumeDiskNumberResponse_To_v1beta2_VolumeDiskNumberResponse is an autogenerated conversion function. -func Convert_internal_VolumeDiskNumberResponse_To_v1beta2_VolumeDiskNumberResponse(in *internal.VolumeDiskNumberResponse, out *v1beta2.VolumeDiskNumberResponse) error { - return autoConvert_internal_VolumeDiskNumberResponse_To_v1beta2_VolumeDiskNumberResponse(in, out) -} - -func autoConvert_v1beta2_VolumeIDFromMountRequest_To_internal_VolumeIDFromMountRequest(in *v1beta2.VolumeIDFromMountRequest, out *internal.VolumeIDFromMountRequest) error { - out.Mount = in.Mount - return nil -} - -// Convert_v1beta2_VolumeIDFromMountRequest_To_internal_VolumeIDFromMountRequest is an autogenerated conversion function. -func Convert_v1beta2_VolumeIDFromMountRequest_To_internal_VolumeIDFromMountRequest(in *v1beta2.VolumeIDFromMountRequest, out *internal.VolumeIDFromMountRequest) error { - return autoConvert_v1beta2_VolumeIDFromMountRequest_To_internal_VolumeIDFromMountRequest(in, out) -} - -func autoConvert_internal_VolumeIDFromMountRequest_To_v1beta2_VolumeIDFromMountRequest(in *internal.VolumeIDFromMountRequest, out *v1beta2.VolumeIDFromMountRequest) error { - out.Mount = in.Mount - return nil -} - -// Convert_internal_VolumeIDFromMountRequest_To_v1beta2_VolumeIDFromMountRequest is an autogenerated conversion function. -func Convert_internal_VolumeIDFromMountRequest_To_v1beta2_VolumeIDFromMountRequest(in *internal.VolumeIDFromMountRequest, out *v1beta2.VolumeIDFromMountRequest) error { - return autoConvert_internal_VolumeIDFromMountRequest_To_v1beta2_VolumeIDFromMountRequest(in, out) -} - -func autoConvert_v1beta2_VolumeIDFromMountResponse_To_internal_VolumeIDFromMountResponse(in *v1beta2.VolumeIDFromMountResponse, out *internal.VolumeIDFromMountResponse) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_VolumeIDFromMountResponse_To_internal_VolumeIDFromMountResponse is an autogenerated conversion function. -func Convert_v1beta2_VolumeIDFromMountResponse_To_internal_VolumeIDFromMountResponse(in *v1beta2.VolumeIDFromMountResponse, out *internal.VolumeIDFromMountResponse) error { - return autoConvert_v1beta2_VolumeIDFromMountResponse_To_internal_VolumeIDFromMountResponse(in, out) -} - -func autoConvert_internal_VolumeIDFromMountResponse_To_v1beta2_VolumeIDFromMountResponse(in *internal.VolumeIDFromMountResponse, out *v1beta2.VolumeIDFromMountResponse) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_VolumeIDFromMountResponse_To_v1beta2_VolumeIDFromMountResponse is an autogenerated conversion function. -func Convert_internal_VolumeIDFromMountResponse_To_v1beta2_VolumeIDFromMountResponse(in *internal.VolumeIDFromMountResponse, out *v1beta2.VolumeIDFromMountResponse) error { - return autoConvert_internal_VolumeIDFromMountResponse_To_v1beta2_VolumeIDFromMountResponse(in, out) -} - -func autoConvert_v1beta2_VolumeStatsRequest_To_internal_VolumeStatsRequest(in *v1beta2.VolumeStatsRequest, out *internal.VolumeStatsRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_VolumeStatsRequest_To_internal_VolumeStatsRequest is an autogenerated conversion function. -func Convert_v1beta2_VolumeStatsRequest_To_internal_VolumeStatsRequest(in *v1beta2.VolumeStatsRequest, out *internal.VolumeStatsRequest) error { - return autoConvert_v1beta2_VolumeStatsRequest_To_internal_VolumeStatsRequest(in, out) -} - -func autoConvert_internal_VolumeStatsRequest_To_v1beta2_VolumeStatsRequest(in *internal.VolumeStatsRequest, out *v1beta2.VolumeStatsRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_VolumeStatsRequest_To_v1beta2_VolumeStatsRequest is an autogenerated conversion function. -func Convert_internal_VolumeStatsRequest_To_v1beta2_VolumeStatsRequest(in *internal.VolumeStatsRequest, out *v1beta2.VolumeStatsRequest) error { - return autoConvert_internal_VolumeStatsRequest_To_v1beta2_VolumeStatsRequest(in, out) -} - -func autoConvert_v1beta2_VolumeStatsResponse_To_internal_VolumeStatsResponse(in *v1beta2.VolumeStatsResponse, out *internal.VolumeStatsResponse) error { - out.VolumeSize = in.VolumeSize - out.VolumeUsedSize = in.VolumeUsedSize - return nil -} - -// Convert_v1beta2_VolumeStatsResponse_To_internal_VolumeStatsResponse is an autogenerated conversion function. -func Convert_v1beta2_VolumeStatsResponse_To_internal_VolumeStatsResponse(in *v1beta2.VolumeStatsResponse, out *internal.VolumeStatsResponse) error { - return autoConvert_v1beta2_VolumeStatsResponse_To_internal_VolumeStatsResponse(in, out) -} - -func autoConvert_internal_VolumeStatsResponse_To_v1beta2_VolumeStatsResponse(in *internal.VolumeStatsResponse, out *v1beta2.VolumeStatsResponse) error { - out.VolumeSize = in.VolumeSize - out.VolumeUsedSize = in.VolumeUsedSize - return nil -} - -// Convert_internal_VolumeStatsResponse_To_v1beta2_VolumeStatsResponse is an autogenerated conversion function. -func Convert_internal_VolumeStatsResponse_To_v1beta2_VolumeStatsResponse(in *internal.VolumeStatsResponse, out *v1beta2.VolumeStatsResponse) error { - return autoConvert_internal_VolumeStatsResponse_To_v1beta2_VolumeStatsResponse(in, out) -} - -func autoConvert_v1beta2_WriteVolumeCacheRequest_To_internal_WriteVolumeCacheRequest(in *v1beta2.WriteVolumeCacheRequest, out *internal.WriteVolumeCacheRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_v1beta2_WriteVolumeCacheRequest_To_internal_WriteVolumeCacheRequest is an autogenerated conversion function. -func Convert_v1beta2_WriteVolumeCacheRequest_To_internal_WriteVolumeCacheRequest(in *v1beta2.WriteVolumeCacheRequest, out *internal.WriteVolumeCacheRequest) error { - return autoConvert_v1beta2_WriteVolumeCacheRequest_To_internal_WriteVolumeCacheRequest(in, out) -} - -func autoConvert_internal_WriteVolumeCacheRequest_To_v1beta2_WriteVolumeCacheRequest(in *internal.WriteVolumeCacheRequest, out *v1beta2.WriteVolumeCacheRequest) error { - out.VolumeId = in.VolumeId - return nil -} - -// Convert_internal_WriteVolumeCacheRequest_To_v1beta2_WriteVolumeCacheRequest is an autogenerated conversion function. -func Convert_internal_WriteVolumeCacheRequest_To_v1beta2_WriteVolumeCacheRequest(in *internal.WriteVolumeCacheRequest, out *v1beta2.WriteVolumeCacheRequest) error { - return autoConvert_internal_WriteVolumeCacheRequest_To_v1beta2_WriteVolumeCacheRequest(in, out) -} - -func autoConvert_v1beta2_WriteVolumeCacheResponse_To_internal_WriteVolumeCacheResponse(in *v1beta2.WriteVolumeCacheResponse, out *internal.WriteVolumeCacheResponse) error { - return nil -} - -// Convert_v1beta2_WriteVolumeCacheResponse_To_internal_WriteVolumeCacheResponse is an autogenerated conversion function. -func Convert_v1beta2_WriteVolumeCacheResponse_To_internal_WriteVolumeCacheResponse(in *v1beta2.WriteVolumeCacheResponse, out *internal.WriteVolumeCacheResponse) error { - return autoConvert_v1beta2_WriteVolumeCacheResponse_To_internal_WriteVolumeCacheResponse(in, out) -} - -func autoConvert_internal_WriteVolumeCacheResponse_To_v1beta2_WriteVolumeCacheResponse(in *internal.WriteVolumeCacheResponse, out *v1beta2.WriteVolumeCacheResponse) error { - return nil -} - -// Convert_internal_WriteVolumeCacheResponse_To_v1beta2_WriteVolumeCacheResponse is an autogenerated conversion function. -func Convert_internal_WriteVolumeCacheResponse_To_v1beta2_WriteVolumeCacheResponse(in *internal.WriteVolumeCacheResponse, out *v1beta2.WriteVolumeCacheResponse) error { - return autoConvert_internal_WriteVolumeCacheResponse_To_v1beta2_WriteVolumeCacheResponse(in, out) -} diff --git a/internal/server/volume/internal/v1beta2/server_generated.go b/internal/server/volume/internal/v1beta2/server_generated.go deleted file mode 100644 index bc842ed0..00000000 --- a/internal/server/volume/internal/v1beta2/server_generated.go +++ /dev/null @@ -1,218 +0,0 @@ -// Code generated by csi-proxy-api-gen. DO NOT EDIT. - -package v1beta2 - -import ( - "context" - - "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2" - "github.com/kubernetes-csi/csi-proxy/client/apiversion" - "github.com/kubernetes-csi/csi-proxy/internal/server/volume/internal" - "google.golang.org/grpc" -) - -var version = apiversion.NewVersionOrPanic("v1beta2") - -type versionedAPI struct { - apiGroupServer internal.ServerInterface -} - -func NewVersionedServer(apiGroupServer internal.ServerInterface) internal.VersionedAPI { - return &versionedAPI{ - apiGroupServer: apiGroupServer, - } -} - -func (s *versionedAPI) Register(grpcServer *grpc.Server) { - v1beta2.RegisterVolumeServer(grpcServer, s) -} - -func (s *versionedAPI) DismountVolume(context context.Context, versionedRequest *v1beta2.DismountVolumeRequest) (*v1beta2.DismountVolumeResponse, error) { - request := &internal.DismountVolumeRequest{} - if err := Convert_v1beta2_DismountVolumeRequest_To_internal_DismountVolumeRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.DismountVolume(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.DismountVolumeResponse{} - if err := Convert_internal_DismountVolumeResponse_To_v1beta2_DismountVolumeResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) FormatVolume(context context.Context, versionedRequest *v1beta2.FormatVolumeRequest) (*v1beta2.FormatVolumeResponse, error) { - request := &internal.FormatVolumeRequest{} - if err := Convert_v1beta2_FormatVolumeRequest_To_internal_FormatVolumeRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.FormatVolume(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.FormatVolumeResponse{} - if err := Convert_internal_FormatVolumeResponse_To_v1beta2_FormatVolumeResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) GetVolumeDiskNumber(context context.Context, versionedRequest *v1beta2.VolumeDiskNumberRequest) (*v1beta2.VolumeDiskNumberResponse, error) { - request := &internal.VolumeDiskNumberRequest{} - if err := Convert_v1beta2_VolumeDiskNumberRequest_To_internal_VolumeDiskNumberRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.GetVolumeDiskNumber(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.VolumeDiskNumberResponse{} - if err := Convert_internal_VolumeDiskNumberResponse_To_v1beta2_VolumeDiskNumberResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) GetVolumeIDFromMount(context context.Context, versionedRequest *v1beta2.VolumeIDFromMountRequest) (*v1beta2.VolumeIDFromMountResponse, error) { - request := &internal.VolumeIDFromMountRequest{} - if err := Convert_v1beta2_VolumeIDFromMountRequest_To_internal_VolumeIDFromMountRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.GetVolumeIDFromMount(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.VolumeIDFromMountResponse{} - if err := Convert_internal_VolumeIDFromMountResponse_To_v1beta2_VolumeIDFromMountResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) IsVolumeFormatted(context context.Context, versionedRequest *v1beta2.IsVolumeFormattedRequest) (*v1beta2.IsVolumeFormattedResponse, error) { - request := &internal.IsVolumeFormattedRequest{} - if err := Convert_v1beta2_IsVolumeFormattedRequest_To_internal_IsVolumeFormattedRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.IsVolumeFormatted(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.IsVolumeFormattedResponse{} - if err := Convert_internal_IsVolumeFormattedResponse_To_v1beta2_IsVolumeFormattedResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) ListVolumesOnDisk(context context.Context, versionedRequest *v1beta2.ListVolumesOnDiskRequest) (*v1beta2.ListVolumesOnDiskResponse, error) { - request := &internal.ListVolumesOnDiskRequest{} - if err := Convert_v1beta2_ListVolumesOnDiskRequest_To_internal_ListVolumesOnDiskRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.ListVolumesOnDisk(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.ListVolumesOnDiskResponse{} - if err := Convert_internal_ListVolumesOnDiskResponse_To_v1beta2_ListVolumesOnDiskResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) MountVolume(context context.Context, versionedRequest *v1beta2.MountVolumeRequest) (*v1beta2.MountVolumeResponse, error) { - request := &internal.MountVolumeRequest{} - if err := Convert_v1beta2_MountVolumeRequest_To_internal_MountVolumeRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.MountVolume(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.MountVolumeResponse{} - if err := Convert_internal_MountVolumeResponse_To_v1beta2_MountVolumeResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) ResizeVolume(context context.Context, versionedRequest *v1beta2.ResizeVolumeRequest) (*v1beta2.ResizeVolumeResponse, error) { - request := &internal.ResizeVolumeRequest{} - if err := Convert_v1beta2_ResizeVolumeRequest_To_internal_ResizeVolumeRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.ResizeVolume(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.ResizeVolumeResponse{} - if err := Convert_internal_ResizeVolumeResponse_To_v1beta2_ResizeVolumeResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) VolumeStats(context context.Context, versionedRequest *v1beta2.VolumeStatsRequest) (*v1beta2.VolumeStatsResponse, error) { - request := &internal.VolumeStatsRequest{} - if err := Convert_v1beta2_VolumeStatsRequest_To_internal_VolumeStatsRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.VolumeStats(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.VolumeStatsResponse{} - if err := Convert_internal_VolumeStatsResponse_To_v1beta2_VolumeStatsResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} - -func (s *versionedAPI) WriteVolumeCache(context context.Context, versionedRequest *v1beta2.WriteVolumeCacheRequest) (*v1beta2.WriteVolumeCacheResponse, error) { - request := &internal.WriteVolumeCacheRequest{} - if err := Convert_v1beta2_WriteVolumeCacheRequest_To_internal_WriteVolumeCacheRequest(versionedRequest, request); err != nil { - return nil, err - } - - response, err := s.apiGroupServer.WriteVolumeCache(context, request, version) - if err != nil { - return nil, err - } - - versionedResponse := &v1beta2.WriteVolumeCacheResponse{} - if err := Convert_internal_WriteVolumeCacheResponse_To_v1beta2_WriteVolumeCacheResponse(response, versionedResponse); err != nil { - return nil, err - } - - return versionedResponse, err -} diff --git a/internal/server/volume/server.go b/internal/server/volume/server.go index 89cb72ba..6ba22c7c 100644 --- a/internal/server/volume/server.go +++ b/internal/server/volume/server.go @@ -31,8 +31,6 @@ type API interface { GetVolumeDiskNumber(volumeID string) (int64, error) // GetVolumeIDFromMount returns the volume id of a given mount GetVolumeIDFromMount(mount string) (string, error) - // WriteVolumeCache writes volume cache to disk - WriteVolumeCache(volumeID string) error } func NewServer(hostAPI API) (*Server, error) { @@ -139,24 +137,7 @@ func (s *Server) FormatVolume(context context.Context, request *internal.FormatV klog.Errorf("failed FormatVolume %v", err) return response, err } - return response, nil -} - -func (s *Server) WriteVolumeCache(context context.Context, request *internal.WriteVolumeCacheRequest, version apiversion.Version) (*internal.WriteVolumeCacheResponse, error) { - klog.V(4).Infof("calling WriteVolumeCache with request: %+v", request) - response := &internal.WriteVolumeCacheResponse{} - - volumeID := request.VolumeId - if volumeID == "" { - klog.Errorf("volume id empty") - return response, fmt.Errorf("volume id empty") - } - err := s.hostAPI.WriteVolumeCache(volumeID) - if err != nil { - klog.Errorf("failed WriteVolumeCache %v", err) - return response, err - } return response, nil } diff --git a/internal/server/volume/server_test.go b/internal/server/volume/server_test.go index 7f2056b2..03ed46f0 100644 --- a/internal/server/volume/server_test.go +++ b/internal/server/volume/server_test.go @@ -61,10 +61,6 @@ func (volumeAPI *fakeVolumeAPI) VolumeStats(volumeID string) (int64, int64, erro return -1, -1, nil } -func (volumeAPI *fakeVolumeAPI) WriteVolumeCache(volumeID string) error { - return nil -} - func TestListVolumesOnDisk(t *testing.T) { v1alpha1, err := apiversion.NewVersion("v1alpha1") if err != nil { diff --git a/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.pb.go b/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.pb.go deleted file mode 100644 index 2bc4962c..00000000 --- a/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.pb.go +++ /dev/null @@ -1,1313 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: client/api/volume/v1beta2/api.proto - -package v1beta2 - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type ListVolumesOnDiskRequest struct { - // Disk device ID of the disk to query for volumes - DiskId string `protobuf:"bytes,1,opt,name=disk_id,json=diskId,proto3" json:"disk_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListVolumesOnDiskRequest) Reset() { *m = ListVolumesOnDiskRequest{} } -func (m *ListVolumesOnDiskRequest) String() string { return proto.CompactTextString(m) } -func (*ListVolumesOnDiskRequest) ProtoMessage() {} -func (*ListVolumesOnDiskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{0} -} - -func (m *ListVolumesOnDiskRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListVolumesOnDiskRequest.Unmarshal(m, b) -} -func (m *ListVolumesOnDiskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListVolumesOnDiskRequest.Marshal(b, m, deterministic) -} -func (m *ListVolumesOnDiskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesOnDiskRequest.Merge(m, src) -} -func (m *ListVolumesOnDiskRequest) XXX_Size() int { - return xxx_messageInfo_ListVolumesOnDiskRequest.Size(m) -} -func (m *ListVolumesOnDiskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesOnDiskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListVolumesOnDiskRequest proto.InternalMessageInfo - -func (m *ListVolumesOnDiskRequest) GetDiskId() string { - if m != nil { - return m.DiskId - } - return "" -} - -type ListVolumesOnDiskResponse struct { - // Volume device IDs of volumes on the specified disk - VolumeIds []string `protobuf:"bytes,1,rep,name=volume_ids,json=volumeIds,proto3" json:"volume_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListVolumesOnDiskResponse) Reset() { *m = ListVolumesOnDiskResponse{} } -func (m *ListVolumesOnDiskResponse) String() string { return proto.CompactTextString(m) } -func (*ListVolumesOnDiskResponse) ProtoMessage() {} -func (*ListVolumesOnDiskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{1} -} - -func (m *ListVolumesOnDiskResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListVolumesOnDiskResponse.Unmarshal(m, b) -} -func (m *ListVolumesOnDiskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListVolumesOnDiskResponse.Marshal(b, m, deterministic) -} -func (m *ListVolumesOnDiskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesOnDiskResponse.Merge(m, src) -} -func (m *ListVolumesOnDiskResponse) XXX_Size() int { - return xxx_messageInfo_ListVolumesOnDiskResponse.Size(m) -} -func (m *ListVolumesOnDiskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesOnDiskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListVolumesOnDiskResponse proto.InternalMessageInfo - -func (m *ListVolumesOnDiskResponse) GetVolumeIds() []string { - if m != nil { - return m.VolumeIds - } - return nil -} - -type MountVolumeRequest struct { - // Volume device ID of the volume to mount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // Path in the host's file system where the volume needs to be mounted - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MountVolumeRequest) Reset() { *m = MountVolumeRequest{} } -func (m *MountVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*MountVolumeRequest) ProtoMessage() {} -func (*MountVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{2} -} - -func (m *MountVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MountVolumeRequest.Unmarshal(m, b) -} -func (m *MountVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MountVolumeRequest.Marshal(b, m, deterministic) -} -func (m *MountVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MountVolumeRequest.Merge(m, src) -} -func (m *MountVolumeRequest) XXX_Size() int { - return xxx_messageInfo_MountVolumeRequest.Size(m) -} -func (m *MountVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MountVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MountVolumeRequest proto.InternalMessageInfo - -func (m *MountVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *MountVolumeRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -type MountVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MountVolumeResponse) Reset() { *m = MountVolumeResponse{} } -func (m *MountVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*MountVolumeResponse) ProtoMessage() {} -func (*MountVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{3} -} - -func (m *MountVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MountVolumeResponse.Unmarshal(m, b) -} -func (m *MountVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MountVolumeResponse.Marshal(b, m, deterministic) -} -func (m *MountVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MountVolumeResponse.Merge(m, src) -} -func (m *MountVolumeResponse) XXX_Size() int { - return xxx_messageInfo_MountVolumeResponse.Size(m) -} -func (m *MountVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MountVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MountVolumeResponse proto.InternalMessageInfo - -type DismountVolumeRequest struct { - // Volume device ID of the volume to dismount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // Path where the volume has been mounted. - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DismountVolumeRequest) Reset() { *m = DismountVolumeRequest{} } -func (m *DismountVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*DismountVolumeRequest) ProtoMessage() {} -func (*DismountVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{4} -} - -func (m *DismountVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DismountVolumeRequest.Unmarshal(m, b) -} -func (m *DismountVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DismountVolumeRequest.Marshal(b, m, deterministic) -} -func (m *DismountVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DismountVolumeRequest.Merge(m, src) -} -func (m *DismountVolumeRequest) XXX_Size() int { - return xxx_messageInfo_DismountVolumeRequest.Size(m) -} -func (m *DismountVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DismountVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DismountVolumeRequest proto.InternalMessageInfo - -func (m *DismountVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *DismountVolumeRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -type DismountVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DismountVolumeResponse) Reset() { *m = DismountVolumeResponse{} } -func (m *DismountVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*DismountVolumeResponse) ProtoMessage() {} -func (*DismountVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{5} -} - -func (m *DismountVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DismountVolumeResponse.Unmarshal(m, b) -} -func (m *DismountVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DismountVolumeResponse.Marshal(b, m, deterministic) -} -func (m *DismountVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DismountVolumeResponse.Merge(m, src) -} -func (m *DismountVolumeResponse) XXX_Size() int { - return xxx_messageInfo_DismountVolumeResponse.Size(m) -} -func (m *DismountVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DismountVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DismountVolumeResponse proto.InternalMessageInfo - -type IsVolumeFormattedRequest struct { - // Volume device ID of the volume to check - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsVolumeFormattedRequest) Reset() { *m = IsVolumeFormattedRequest{} } -func (m *IsVolumeFormattedRequest) String() string { return proto.CompactTextString(m) } -func (*IsVolumeFormattedRequest) ProtoMessage() {} -func (*IsVolumeFormattedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{6} -} - -func (m *IsVolumeFormattedRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsVolumeFormattedRequest.Unmarshal(m, b) -} -func (m *IsVolumeFormattedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsVolumeFormattedRequest.Marshal(b, m, deterministic) -} -func (m *IsVolumeFormattedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsVolumeFormattedRequest.Merge(m, src) -} -func (m *IsVolumeFormattedRequest) XXX_Size() int { - return xxx_messageInfo_IsVolumeFormattedRequest.Size(m) -} -func (m *IsVolumeFormattedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IsVolumeFormattedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IsVolumeFormattedRequest proto.InternalMessageInfo - -func (m *IsVolumeFormattedRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type IsVolumeFormattedResponse struct { - // Is the volume formatted with NTFS - Formatted bool `protobuf:"varint,1,opt,name=formatted,proto3" json:"formatted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IsVolumeFormattedResponse) Reset() { *m = IsVolumeFormattedResponse{} } -func (m *IsVolumeFormattedResponse) String() string { return proto.CompactTextString(m) } -func (*IsVolumeFormattedResponse) ProtoMessage() {} -func (*IsVolumeFormattedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{7} -} - -func (m *IsVolumeFormattedResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IsVolumeFormattedResponse.Unmarshal(m, b) -} -func (m *IsVolumeFormattedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IsVolumeFormattedResponse.Marshal(b, m, deterministic) -} -func (m *IsVolumeFormattedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IsVolumeFormattedResponse.Merge(m, src) -} -func (m *IsVolumeFormattedResponse) XXX_Size() int { - return xxx_messageInfo_IsVolumeFormattedResponse.Size(m) -} -func (m *IsVolumeFormattedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IsVolumeFormattedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IsVolumeFormattedResponse proto.InternalMessageInfo - -func (m *IsVolumeFormattedResponse) GetFormatted() bool { - if m != nil { - return m.Formatted - } - return false -} - -type FormatVolumeRequest struct { - // Volume device ID of the volume to format - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FormatVolumeRequest) Reset() { *m = FormatVolumeRequest{} } -func (m *FormatVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*FormatVolumeRequest) ProtoMessage() {} -func (*FormatVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{8} -} - -func (m *FormatVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FormatVolumeRequest.Unmarshal(m, b) -} -func (m *FormatVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FormatVolumeRequest.Marshal(b, m, deterministic) -} -func (m *FormatVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FormatVolumeRequest.Merge(m, src) -} -func (m *FormatVolumeRequest) XXX_Size() int { - return xxx_messageInfo_FormatVolumeRequest.Size(m) -} -func (m *FormatVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FormatVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FormatVolumeRequest proto.InternalMessageInfo - -func (m *FormatVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type FormatVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FormatVolumeResponse) Reset() { *m = FormatVolumeResponse{} } -func (m *FormatVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*FormatVolumeResponse) ProtoMessage() {} -func (*FormatVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{9} -} - -func (m *FormatVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FormatVolumeResponse.Unmarshal(m, b) -} -func (m *FormatVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FormatVolumeResponse.Marshal(b, m, deterministic) -} -func (m *FormatVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_FormatVolumeResponse.Merge(m, src) -} -func (m *FormatVolumeResponse) XXX_Size() int { - return xxx_messageInfo_FormatVolumeResponse.Size(m) -} -func (m *FormatVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_FormatVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_FormatVolumeResponse proto.InternalMessageInfo - -type ResizeVolumeRequest struct { - // Volume device ID of the volume to dismount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - // New size of the volume - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResizeVolumeRequest) Reset() { *m = ResizeVolumeRequest{} } -func (m *ResizeVolumeRequest) String() string { return proto.CompactTextString(m) } -func (*ResizeVolumeRequest) ProtoMessage() {} -func (*ResizeVolumeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{10} -} - -func (m *ResizeVolumeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResizeVolumeRequest.Unmarshal(m, b) -} -func (m *ResizeVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResizeVolumeRequest.Marshal(b, m, deterministic) -} -func (m *ResizeVolumeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResizeVolumeRequest.Merge(m, src) -} -func (m *ResizeVolumeRequest) XXX_Size() int { - return xxx_messageInfo_ResizeVolumeRequest.Size(m) -} -func (m *ResizeVolumeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResizeVolumeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ResizeVolumeRequest proto.InternalMessageInfo - -func (m *ResizeVolumeRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -func (m *ResizeVolumeRequest) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -type ResizeVolumeResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResizeVolumeResponse) Reset() { *m = ResizeVolumeResponse{} } -func (m *ResizeVolumeResponse) String() string { return proto.CompactTextString(m) } -func (*ResizeVolumeResponse) ProtoMessage() {} -func (*ResizeVolumeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{11} -} - -func (m *ResizeVolumeResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResizeVolumeResponse.Unmarshal(m, b) -} -func (m *ResizeVolumeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResizeVolumeResponse.Marshal(b, m, deterministic) -} -func (m *ResizeVolumeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResizeVolumeResponse.Merge(m, src) -} -func (m *ResizeVolumeResponse) XXX_Size() int { - return xxx_messageInfo_ResizeVolumeResponse.Size(m) -} -func (m *ResizeVolumeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ResizeVolumeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ResizeVolumeResponse proto.InternalMessageInfo - -type VolumeStatsRequest struct { - // Volume device Id of the volume to get the stats for - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeStatsRequest) Reset() { *m = VolumeStatsRequest{} } -func (m *VolumeStatsRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeStatsRequest) ProtoMessage() {} -func (*VolumeStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{12} -} - -func (m *VolumeStatsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeStatsRequest.Unmarshal(m, b) -} -func (m *VolumeStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeStatsRequest.Marshal(b, m, deterministic) -} -func (m *VolumeStatsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatsRequest.Merge(m, src) -} -func (m *VolumeStatsRequest) XXX_Size() int { - return xxx_messageInfo_VolumeStatsRequest.Size(m) -} -func (m *VolumeStatsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeStatsRequest proto.InternalMessageInfo - -func (m *VolumeStatsRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type VolumeStatsResponse struct { - // Capacity of the volume - VolumeSize int64 `protobuf:"varint,1,opt,name=volumeSize,proto3" json:"volumeSize,omitempty"` - // Used bytes - VolumeUsedSize int64 `protobuf:"varint,2,opt,name=volumeUsedSize,proto3" json:"volumeUsedSize,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeStatsResponse) Reset() { *m = VolumeStatsResponse{} } -func (m *VolumeStatsResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeStatsResponse) ProtoMessage() {} -func (*VolumeStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{13} -} - -func (m *VolumeStatsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeStatsResponse.Unmarshal(m, b) -} -func (m *VolumeStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeStatsResponse.Marshal(b, m, deterministic) -} -func (m *VolumeStatsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeStatsResponse.Merge(m, src) -} -func (m *VolumeStatsResponse) XXX_Size() int { - return xxx_messageInfo_VolumeStatsResponse.Size(m) -} -func (m *VolumeStatsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeStatsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeStatsResponse proto.InternalMessageInfo - -func (m *VolumeStatsResponse) GetVolumeSize() int64 { - if m != nil { - return m.VolumeSize - } - return 0 -} - -func (m *VolumeStatsResponse) GetVolumeUsedSize() int64 { - if m != nil { - return m.VolumeUsedSize - } - return 0 -} - -type VolumeDiskNumberRequest struct { - // Volume device Id of the volume to get the disk number for - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeDiskNumberRequest) Reset() { *m = VolumeDiskNumberRequest{} } -func (m *VolumeDiskNumberRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeDiskNumberRequest) ProtoMessage() {} -func (*VolumeDiskNumberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{14} -} - -func (m *VolumeDiskNumberRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeDiskNumberRequest.Unmarshal(m, b) -} -func (m *VolumeDiskNumberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeDiskNumberRequest.Marshal(b, m, deterministic) -} -func (m *VolumeDiskNumberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeDiskNumberRequest.Merge(m, src) -} -func (m *VolumeDiskNumberRequest) XXX_Size() int { - return xxx_messageInfo_VolumeDiskNumberRequest.Size(m) -} -func (m *VolumeDiskNumberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeDiskNumberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeDiskNumberRequest proto.InternalMessageInfo - -func (m *VolumeDiskNumberRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type VolumeDiskNumberResponse struct { - // Corresponding disk number - DiskNumber int64 `protobuf:"varint,1,opt,name=diskNumber,proto3" json:"diskNumber,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeDiskNumberResponse) Reset() { *m = VolumeDiskNumberResponse{} } -func (m *VolumeDiskNumberResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeDiskNumberResponse) ProtoMessage() {} -func (*VolumeDiskNumberResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{15} -} - -func (m *VolumeDiskNumberResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeDiskNumberResponse.Unmarshal(m, b) -} -func (m *VolumeDiskNumberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeDiskNumberResponse.Marshal(b, m, deterministic) -} -func (m *VolumeDiskNumberResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeDiskNumberResponse.Merge(m, src) -} -func (m *VolumeDiskNumberResponse) XXX_Size() int { - return xxx_messageInfo_VolumeDiskNumberResponse.Size(m) -} -func (m *VolumeDiskNumberResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeDiskNumberResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeDiskNumberResponse proto.InternalMessageInfo - -func (m *VolumeDiskNumberResponse) GetDiskNumber() int64 { - if m != nil { - return m.DiskNumber - } - return 0 -} - -type VolumeIDFromMountRequest struct { - // Mount - Mount string `protobuf:"bytes,1,opt,name=mount,proto3" json:"mount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeIDFromMountRequest) Reset() { *m = VolumeIDFromMountRequest{} } -func (m *VolumeIDFromMountRequest) String() string { return proto.CompactTextString(m) } -func (*VolumeIDFromMountRequest) ProtoMessage() {} -func (*VolumeIDFromMountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{16} -} - -func (m *VolumeIDFromMountRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeIDFromMountRequest.Unmarshal(m, b) -} -func (m *VolumeIDFromMountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeIDFromMountRequest.Marshal(b, m, deterministic) -} -func (m *VolumeIDFromMountRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeIDFromMountRequest.Merge(m, src) -} -func (m *VolumeIDFromMountRequest) XXX_Size() int { - return xxx_messageInfo_VolumeIDFromMountRequest.Size(m) -} -func (m *VolumeIDFromMountRequest) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeIDFromMountRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeIDFromMountRequest proto.InternalMessageInfo - -func (m *VolumeIDFromMountRequest) GetMount() string { - if m != nil { - return m.Mount - } - return "" -} - -type VolumeIDFromMountResponse struct { - // Mount - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeIDFromMountResponse) Reset() { *m = VolumeIDFromMountResponse{} } -func (m *VolumeIDFromMountResponse) String() string { return proto.CompactTextString(m) } -func (*VolumeIDFromMountResponse) ProtoMessage() {} -func (*VolumeIDFromMountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{17} -} - -func (m *VolumeIDFromMountResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeIDFromMountResponse.Unmarshal(m, b) -} -func (m *VolumeIDFromMountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeIDFromMountResponse.Marshal(b, m, deterministic) -} -func (m *VolumeIDFromMountResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeIDFromMountResponse.Merge(m, src) -} -func (m *VolumeIDFromMountResponse) XXX_Size() int { - return xxx_messageInfo_VolumeIDFromMountResponse.Size(m) -} -func (m *VolumeIDFromMountResponse) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeIDFromMountResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeIDFromMountResponse proto.InternalMessageInfo - -func (m *VolumeIDFromMountResponse) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type WriteVolumeCacheRequest struct { - // Volume device ID of the volume to flush the cache - VolumeId string `protobuf:"bytes,1,opt,name=volume_id,json=volumeId,proto3" json:"volume_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteVolumeCacheRequest) Reset() { *m = WriteVolumeCacheRequest{} } -func (m *WriteVolumeCacheRequest) String() string { return proto.CompactTextString(m) } -func (*WriteVolumeCacheRequest) ProtoMessage() {} -func (*WriteVolumeCacheRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{18} -} - -func (m *WriteVolumeCacheRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteVolumeCacheRequest.Unmarshal(m, b) -} -func (m *WriteVolumeCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteVolumeCacheRequest.Marshal(b, m, deterministic) -} -func (m *WriteVolumeCacheRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteVolumeCacheRequest.Merge(m, src) -} -func (m *WriteVolumeCacheRequest) XXX_Size() int { - return xxx_messageInfo_WriteVolumeCacheRequest.Size(m) -} -func (m *WriteVolumeCacheRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WriteVolumeCacheRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WriteVolumeCacheRequest proto.InternalMessageInfo - -func (m *WriteVolumeCacheRequest) GetVolumeId() string { - if m != nil { - return m.VolumeId - } - return "" -} - -type WriteVolumeCacheResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WriteVolumeCacheResponse) Reset() { *m = WriteVolumeCacheResponse{} } -func (m *WriteVolumeCacheResponse) String() string { return proto.CompactTextString(m) } -func (*WriteVolumeCacheResponse) ProtoMessage() {} -func (*WriteVolumeCacheResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_99d2e9a7d1d95ce9, []int{19} -} - -func (m *WriteVolumeCacheResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WriteVolumeCacheResponse.Unmarshal(m, b) -} -func (m *WriteVolumeCacheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WriteVolumeCacheResponse.Marshal(b, m, deterministic) -} -func (m *WriteVolumeCacheResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WriteVolumeCacheResponse.Merge(m, src) -} -func (m *WriteVolumeCacheResponse) XXX_Size() int { - return xxx_messageInfo_WriteVolumeCacheResponse.Size(m) -} -func (m *WriteVolumeCacheResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WriteVolumeCacheResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WriteVolumeCacheResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ListVolumesOnDiskRequest)(nil), "v1beta2.ListVolumesOnDiskRequest") - proto.RegisterType((*ListVolumesOnDiskResponse)(nil), "v1beta2.ListVolumesOnDiskResponse") - proto.RegisterType((*MountVolumeRequest)(nil), "v1beta2.MountVolumeRequest") - proto.RegisterType((*MountVolumeResponse)(nil), "v1beta2.MountVolumeResponse") - proto.RegisterType((*DismountVolumeRequest)(nil), "v1beta2.DismountVolumeRequest") - proto.RegisterType((*DismountVolumeResponse)(nil), "v1beta2.DismountVolumeResponse") - proto.RegisterType((*IsVolumeFormattedRequest)(nil), "v1beta2.IsVolumeFormattedRequest") - proto.RegisterType((*IsVolumeFormattedResponse)(nil), "v1beta2.IsVolumeFormattedResponse") - proto.RegisterType((*FormatVolumeRequest)(nil), "v1beta2.FormatVolumeRequest") - proto.RegisterType((*FormatVolumeResponse)(nil), "v1beta2.FormatVolumeResponse") - proto.RegisterType((*ResizeVolumeRequest)(nil), "v1beta2.ResizeVolumeRequest") - proto.RegisterType((*ResizeVolumeResponse)(nil), "v1beta2.ResizeVolumeResponse") - proto.RegisterType((*VolumeStatsRequest)(nil), "v1beta2.VolumeStatsRequest") - proto.RegisterType((*VolumeStatsResponse)(nil), "v1beta2.VolumeStatsResponse") - proto.RegisterType((*VolumeDiskNumberRequest)(nil), "v1beta2.VolumeDiskNumberRequest") - proto.RegisterType((*VolumeDiskNumberResponse)(nil), "v1beta2.VolumeDiskNumberResponse") - proto.RegisterType((*VolumeIDFromMountRequest)(nil), "v1beta2.VolumeIDFromMountRequest") - proto.RegisterType((*VolumeIDFromMountResponse)(nil), "v1beta2.VolumeIDFromMountResponse") - proto.RegisterType((*WriteVolumeCacheRequest)(nil), "v1beta2.WriteVolumeCacheRequest") - proto.RegisterType((*WriteVolumeCacheResponse)(nil), "v1beta2.WriteVolumeCacheResponse") -} - -func init() { - proto.RegisterFile("client/api/volume/v1beta2/api.proto", fileDescriptor_99d2e9a7d1d95ce9) -} - -var fileDescriptor_99d2e9a7d1d95ce9 = []byte{ - // 625 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x6b, 0x6f, 0xd3, 0x30, - 0x14, 0x6d, 0x19, 0x74, 0xeb, 0x05, 0x4d, 0xcc, 0xdd, 0x23, 0xcd, 0x1e, 0x74, 0x46, 0x42, 0xfb, - 0xb2, 0x86, 0x75, 0xd2, 0x80, 0x49, 0x08, 0x09, 0x4a, 0xa1, 0x88, 0x81, 0x94, 0x0a, 0x10, 0x68, - 0xa8, 0x4a, 0x1b, 0x43, 0xad, 0x2e, 0x4d, 0x89, 0x9d, 0x09, 0xf8, 0xc7, 0xfc, 0x0b, 0x14, 0xdb, - 0x49, 0xdd, 0x3c, 0xaa, 0x22, 0xf1, 0x2d, 0x3e, 0xf6, 0x39, 0xe7, 0xda, 0xbe, 0xc7, 0x81, 0xfb, - 0xc3, 0x2b, 0x4a, 0x26, 0xdc, 0x72, 0xa6, 0xd4, 0xba, 0xf6, 0xaf, 0x42, 0x8f, 0x58, 0xd7, 0x27, - 0x03, 0xc2, 0x9d, 0x56, 0x04, 0x35, 0xa7, 0x81, 0xcf, 0x7d, 0xb4, 0xaa, 0x20, 0x7c, 0x0a, 0xc6, - 0x5b, 0xca, 0xf8, 0x47, 0xb1, 0x90, 0xbd, 0x9f, 0xb4, 0x29, 0x1b, 0xdb, 0xe4, 0x47, 0x48, 0x18, - 0x47, 0x3b, 0xb0, 0xea, 0x52, 0x36, 0xee, 0x53, 0xd7, 0x28, 0x37, 0xca, 0x47, 0x55, 0xbb, 0x12, - 0x0d, 0xbb, 0x2e, 0x3e, 0x87, 0x7a, 0x0e, 0x89, 0x4d, 0xfd, 0x09, 0x23, 0x68, 0x1f, 0x40, 0xda, - 0xf6, 0xa9, 0xcb, 0x8c, 0x72, 0x63, 0xe5, 0xa8, 0x6a, 0x57, 0x25, 0xd2, 0x75, 0x19, 0x7e, 0x09, - 0xe8, 0xc2, 0x0f, 0x27, 0x8a, 0x1c, 0x5b, 0xed, 0x42, 0x35, 0x21, 0x29, 0xb3, 0xb5, 0x98, 0x83, - 0x10, 0xdc, 0x9c, 0x3a, 0x7c, 0x64, 0xdc, 0x10, 0xb8, 0xf8, 0xc6, 0x5b, 0x50, 0x9b, 0x93, 0x91, - 0xe6, 0xf8, 0x35, 0x6c, 0xb5, 0x29, 0xf3, 0xfe, 0x83, 0x81, 0x01, 0xdb, 0x69, 0x25, 0xe5, 0xf1, - 0x08, 0x8c, 0x2e, 0x93, 0x58, 0xc7, 0x0f, 0x3c, 0x87, 0x73, 0xe2, 0x2e, 0x63, 0x83, 0x9f, 0x40, - 0x3d, 0x87, 0xa8, 0x8e, 0x6d, 0x0f, 0xaa, 0xdf, 0x62, 0x50, 0x30, 0xd7, 0xec, 0x19, 0x80, 0x5b, - 0x50, 0x93, 0x94, 0xe5, 0x77, 0x85, 0xb7, 0x61, 0x73, 0x9e, 0xa3, 0xea, 0xef, 0x40, 0xcd, 0x26, - 0x8c, 0xfe, 0x26, 0xff, 0x76, 0x42, 0x11, 0x43, 0x9c, 0xd0, 0x8a, 0x2d, 0xbe, 0x23, 0xfd, 0x79, - 0x1d, 0xa5, 0x7f, 0x02, 0x48, 0x22, 0x3d, 0xee, 0x70, 0xb6, 0x54, 0xa9, 0x5f, 0xa1, 0x36, 0x47, - 0x51, 0x67, 0x72, 0x10, 0xb7, 0x52, 0x2f, 0xf2, 0x2e, 0x0b, 0x6f, 0x0d, 0x41, 0x0f, 0x60, 0x5d, - 0x8e, 0x3e, 0x30, 0xe2, 0xf6, 0x66, 0xf5, 0xa5, 0x50, 0x7c, 0x06, 0x3b, 0x52, 0x3e, 0x6a, 0xd4, - 0x77, 0xa1, 0x37, 0x20, 0xc1, 0x52, 0x65, 0x9d, 0x83, 0x91, 0xe5, 0xcd, 0x6a, 0x73, 0x13, 0x34, - 0xae, 0x6d, 0x86, 0xe0, 0x87, 0x31, 0xb7, 0xdb, 0xee, 0x04, 0xbe, 0x27, 0x9a, 0x35, 0x36, 0xdd, - 0x84, 0x5b, 0xa2, 0xb1, 0x94, 0xa1, 0x1c, 0xe0, 0xc7, 0x50, 0xcf, 0x61, 0x28, 0xbb, 0x85, 0x75, - 0x9e, 0xc1, 0xce, 0xa7, 0x80, 0x72, 0x75, 0x11, 0x2f, 0x9c, 0xe1, 0x68, 0xb9, 0x0e, 0x31, 0xc1, - 0xc8, 0xf2, 0xa4, 0x61, 0xeb, 0x4f, 0x05, 0x2a, 0x12, 0x47, 0x97, 0xb0, 0x91, 0x89, 0x3b, 0x3a, - 0x6c, 0xaa, 0x27, 0xa4, 0x59, 0xf4, 0x7e, 0x98, 0x78, 0xd1, 0x12, 0xd5, 0x2c, 0x25, 0xf4, 0x06, - 0x6e, 0x6b, 0x49, 0x46, 0xbb, 0x09, 0x29, 0xfb, 0x4c, 0x98, 0x7b, 0xf9, 0x93, 0x89, 0x56, 0x0f, - 0xd6, 0xe7, 0x43, 0x8b, 0x0e, 0x12, 0x46, 0xee, 0xbb, 0x60, 0xde, 0x2b, 0x9c, 0x4f, 0x44, 0x2f, - 0x61, 0x23, 0x13, 0x5b, 0x6d, 0xfb, 0x45, 0x6f, 0x81, 0xb6, 0xfd, 0xc2, 0xd4, 0xe3, 0x12, 0xba, - 0x80, 0x3b, 0x7a, 0x4a, 0xd1, 0x6c, 0x8b, 0x39, 0x81, 0x37, 0xf7, 0x0b, 0x66, 0x75, 0x39, 0x3d, - 0x94, 0x9a, 0x5c, 0x4e, 0xe6, 0x35, 0xb9, 0xdc, 0x24, 0x8b, 0xcb, 0xd1, 0x82, 0xa9, 0x5d, 0x4e, - 0x36, 0xe1, 0xda, 0xe5, 0xe4, 0x64, 0x59, 0x9c, 0x63, 0xed, 0x15, 0xe1, 0xe9, 0x40, 0xa1, 0x46, - 0x8a, 0x96, 0xc9, 0xa8, 0x79, 0xb8, 0x60, 0x45, 0xa2, 0xde, 0x87, 0xcd, 0x44, 0x5d, 0x0b, 0x10, - 0x4a, 0x93, 0xb3, 0x71, 0xd4, 0x2e, 0xaa, 0x30, 0x7f, 0xb8, 0x84, 0x3e, 0xc3, 0xdd, 0x74, 0x58, - 0xb4, 0xda, 0x0b, 0xf2, 0xa7, 0xd5, 0x5e, 0x94, 0x34, 0x5c, 0x7a, 0xfe, 0xec, 0xcb, 0xd3, 0xef, - 0x94, 0x8f, 0xc2, 0x41, 0x73, 0xe8, 0x7b, 0xd6, 0x38, 0x1c, 0x90, 0x60, 0x42, 0x38, 0x61, 0xc7, - 0x43, 0x46, 0xad, 0x21, 0xa3, 0xc7, 0xd3, 0xc0, 0xff, 0xf9, 0xcb, 0x2a, 0xfc, 0xb1, 0x0f, 0x2a, - 0xe2, 0xaf, 0x7e, 0xfa, 0x37, 0x00, 0x00, 0xff, 0xff, 0xef, 0xbc, 0x51, 0x38, 0xfc, 0x07, 0x00, - 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// VolumeClient is the client API for Volume service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type VolumeClient interface { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - ListVolumesOnDisk(ctx context.Context, in *ListVolumesOnDiskRequest, opts ...grpc.CallOption) (*ListVolumesOnDiskResponse, error) - // MountVolume mounts the volume at the requested global staging path - MountVolume(ctx context.Context, in *MountVolumeRequest, opts ...grpc.CallOption) (*MountVolumeResponse, error) - // DismountVolume gracefully dismounts a volume - DismountVolume(ctx context.Context, in *DismountVolumeRequest, opts ...grpc.CallOption) (*DismountVolumeResponse, error) - // IsVolumeFormatted checks if a volume is formatted with NTFS - IsVolumeFormatted(ctx context.Context, in *IsVolumeFormattedRequest, opts ...grpc.CallOption) (*IsVolumeFormattedResponse, error) - // FormatVolume formats a volume with the provided file system - FormatVolume(ctx context.Context, in *FormatVolumeRequest, opts ...grpc.CallOption) (*FormatVolumeResponse, error) - // ResizeVolume performs resizing of the partition and file system for a block based volume - ResizeVolume(ctx context.Context, in *ResizeVolumeRequest, opts ...grpc.CallOption) (*ResizeVolumeResponse, error) - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - VolumeStats(ctx context.Context, in *VolumeStatsRequest, opts ...grpc.CallOption) (*VolumeStatsResponse, error) - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - GetVolumeDiskNumber(ctx context.Context, in *VolumeDiskNumberRequest, opts ...grpc.CallOption) (*VolumeDiskNumberResponse, error) - // GetVolumeIDFromMount gets the volume id for a given mount - GetVolumeIDFromMount(ctx context.Context, in *VolumeIDFromMountRequest, opts ...grpc.CallOption) (*VolumeIDFromMountResponse, error) - // WriteVolumeCache write volume cache to disk - WriteVolumeCache(ctx context.Context, in *WriteVolumeCacheRequest, opts ...grpc.CallOption) (*WriteVolumeCacheResponse, error) -} - -type volumeClient struct { - cc *grpc.ClientConn -} - -func NewVolumeClient(cc *grpc.ClientConn) VolumeClient { - return &volumeClient{cc} -} - -func (c *volumeClient) ListVolumesOnDisk(ctx context.Context, in *ListVolumesOnDiskRequest, opts ...grpc.CallOption) (*ListVolumesOnDiskResponse, error) { - out := new(ListVolumesOnDiskResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/ListVolumesOnDisk", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) MountVolume(ctx context.Context, in *MountVolumeRequest, opts ...grpc.CallOption) (*MountVolumeResponse, error) { - out := new(MountVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/MountVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) DismountVolume(ctx context.Context, in *DismountVolumeRequest, opts ...grpc.CallOption) (*DismountVolumeResponse, error) { - out := new(DismountVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/DismountVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) IsVolumeFormatted(ctx context.Context, in *IsVolumeFormattedRequest, opts ...grpc.CallOption) (*IsVolumeFormattedResponse, error) { - out := new(IsVolumeFormattedResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/IsVolumeFormatted", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) FormatVolume(ctx context.Context, in *FormatVolumeRequest, opts ...grpc.CallOption) (*FormatVolumeResponse, error) { - out := new(FormatVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/FormatVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) ResizeVolume(ctx context.Context, in *ResizeVolumeRequest, opts ...grpc.CallOption) (*ResizeVolumeResponse, error) { - out := new(ResizeVolumeResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/ResizeVolume", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) VolumeStats(ctx context.Context, in *VolumeStatsRequest, opts ...grpc.CallOption) (*VolumeStatsResponse, error) { - out := new(VolumeStatsResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/VolumeStats", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) GetVolumeDiskNumber(ctx context.Context, in *VolumeDiskNumberRequest, opts ...grpc.CallOption) (*VolumeDiskNumberResponse, error) { - out := new(VolumeDiskNumberResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/GetVolumeDiskNumber", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) GetVolumeIDFromMount(ctx context.Context, in *VolumeIDFromMountRequest, opts ...grpc.CallOption) (*VolumeIDFromMountResponse, error) { - out := new(VolumeIDFromMountResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/GetVolumeIDFromMount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *volumeClient) WriteVolumeCache(ctx context.Context, in *WriteVolumeCacheRequest, opts ...grpc.CallOption) (*WriteVolumeCacheResponse, error) { - out := new(WriteVolumeCacheResponse) - err := c.cc.Invoke(ctx, "/v1beta2.Volume/WriteVolumeCache", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// VolumeServer is the server API for Volume service. -type VolumeServer interface { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - ListVolumesOnDisk(context.Context, *ListVolumesOnDiskRequest) (*ListVolumesOnDiskResponse, error) - // MountVolume mounts the volume at the requested global staging path - MountVolume(context.Context, *MountVolumeRequest) (*MountVolumeResponse, error) - // DismountVolume gracefully dismounts a volume - DismountVolume(context.Context, *DismountVolumeRequest) (*DismountVolumeResponse, error) - // IsVolumeFormatted checks if a volume is formatted with NTFS - IsVolumeFormatted(context.Context, *IsVolumeFormattedRequest) (*IsVolumeFormattedResponse, error) - // FormatVolume formats a volume with the provided file system - FormatVolume(context.Context, *FormatVolumeRequest) (*FormatVolumeResponse, error) - // ResizeVolume performs resizing of the partition and file system for a block based volume - ResizeVolume(context.Context, *ResizeVolumeRequest) (*ResizeVolumeResponse, error) - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - VolumeStats(context.Context, *VolumeStatsRequest) (*VolumeStatsResponse, error) - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - GetVolumeDiskNumber(context.Context, *VolumeDiskNumberRequest) (*VolumeDiskNumberResponse, error) - // GetVolumeIDFromMount gets the volume id for a given mount - GetVolumeIDFromMount(context.Context, *VolumeIDFromMountRequest) (*VolumeIDFromMountResponse, error) - // WriteVolumeCache write volume cache to disk - WriteVolumeCache(context.Context, *WriteVolumeCacheRequest) (*WriteVolumeCacheResponse, error) -} - -// UnimplementedVolumeServer can be embedded to have forward compatible implementations. -type UnimplementedVolumeServer struct { -} - -func (*UnimplementedVolumeServer) ListVolumesOnDisk(ctx context.Context, req *ListVolumesOnDiskRequest) (*ListVolumesOnDiskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListVolumesOnDisk not implemented") -} -func (*UnimplementedVolumeServer) MountVolume(ctx context.Context, req *MountVolumeRequest) (*MountVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method MountVolume not implemented") -} -func (*UnimplementedVolumeServer) DismountVolume(ctx context.Context, req *DismountVolumeRequest) (*DismountVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DismountVolume not implemented") -} -func (*UnimplementedVolumeServer) IsVolumeFormatted(ctx context.Context, req *IsVolumeFormattedRequest) (*IsVolumeFormattedResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsVolumeFormatted not implemented") -} -func (*UnimplementedVolumeServer) FormatVolume(ctx context.Context, req *FormatVolumeRequest) (*FormatVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FormatVolume not implemented") -} -func (*UnimplementedVolumeServer) ResizeVolume(ctx context.Context, req *ResizeVolumeRequest) (*ResizeVolumeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResizeVolume not implemented") -} -func (*UnimplementedVolumeServer) VolumeStats(ctx context.Context, req *VolumeStatsRequest) (*VolumeStatsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method VolumeStats not implemented") -} -func (*UnimplementedVolumeServer) GetVolumeDiskNumber(ctx context.Context, req *VolumeDiskNumberRequest) (*VolumeDiskNumberResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVolumeDiskNumber not implemented") -} -func (*UnimplementedVolumeServer) GetVolumeIDFromMount(ctx context.Context, req *VolumeIDFromMountRequest) (*VolumeIDFromMountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVolumeIDFromMount not implemented") -} -func (*UnimplementedVolumeServer) WriteVolumeCache(ctx context.Context, req *WriteVolumeCacheRequest) (*WriteVolumeCacheResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method WriteVolumeCache not implemented") -} - -func RegisterVolumeServer(s *grpc.Server, srv VolumeServer) { - s.RegisterService(&_Volume_serviceDesc, srv) -} - -func _Volume_ListVolumesOnDisk_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListVolumesOnDiskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).ListVolumesOnDisk(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/ListVolumesOnDisk", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).ListVolumesOnDisk(ctx, req.(*ListVolumesOnDiskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_MountVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MountVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).MountVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/MountVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).MountVolume(ctx, req.(*MountVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_DismountVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DismountVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).DismountVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/DismountVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).DismountVolume(ctx, req.(*DismountVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_IsVolumeFormatted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IsVolumeFormattedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).IsVolumeFormatted(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/IsVolumeFormatted", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).IsVolumeFormatted(ctx, req.(*IsVolumeFormattedRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_FormatVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FormatVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).FormatVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/FormatVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).FormatVolume(ctx, req.(*FormatVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_ResizeVolume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ResizeVolumeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).ResizeVolume(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/ResizeVolume", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).ResizeVolume(ctx, req.(*ResizeVolumeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_VolumeStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeStatsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).VolumeStats(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/VolumeStats", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).VolumeStats(ctx, req.(*VolumeStatsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_GetVolumeDiskNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeDiskNumberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).GetVolumeDiskNumber(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/GetVolumeDiskNumber", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).GetVolumeDiskNumber(ctx, req.(*VolumeDiskNumberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_GetVolumeIDFromMount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VolumeIDFromMountRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).GetVolumeIDFromMount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/GetVolumeIDFromMount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).GetVolumeIDFromMount(ctx, req.(*VolumeIDFromMountRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Volume_WriteVolumeCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WriteVolumeCacheRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(VolumeServer).WriteVolumeCache(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/v1beta2.Volume/WriteVolumeCache", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(VolumeServer).WriteVolumeCache(ctx, req.(*WriteVolumeCacheRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _Volume_serviceDesc = grpc.ServiceDesc{ - ServiceName: "v1beta2.Volume", - HandlerType: (*VolumeServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListVolumesOnDisk", - Handler: _Volume_ListVolumesOnDisk_Handler, - }, - { - MethodName: "MountVolume", - Handler: _Volume_MountVolume_Handler, - }, - { - MethodName: "DismountVolume", - Handler: _Volume_DismountVolume_Handler, - }, - { - MethodName: "IsVolumeFormatted", - Handler: _Volume_IsVolumeFormatted_Handler, - }, - { - MethodName: "FormatVolume", - Handler: _Volume_FormatVolume_Handler, - }, - { - MethodName: "ResizeVolume", - Handler: _Volume_ResizeVolume_Handler, - }, - { - MethodName: "VolumeStats", - Handler: _Volume_VolumeStats_Handler, - }, - { - MethodName: "GetVolumeDiskNumber", - Handler: _Volume_GetVolumeDiskNumber_Handler, - }, - { - MethodName: "GetVolumeIDFromMount", - Handler: _Volume_GetVolumeIDFromMount_Handler, - }, - { - MethodName: "WriteVolumeCache", - Handler: _Volume_WriteVolumeCache_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "client/api/volume/v1beta2/api.proto", -} diff --git a/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.proto b/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.proto deleted file mode 100644 index c88e1f57..00000000 --- a/vendor/github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2/api.proto +++ /dev/null @@ -1,132 +0,0 @@ -syntax = "proto3"; - -package v1beta2; - -option go_package = "github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2"; - -service Volume { - // ListVolumesOnDisk returns the volume IDs (in \\.\Volume{GUID} format) for - // all volumes on a Disk device - rpc ListVolumesOnDisk(ListVolumesOnDiskRequest) returns (ListVolumesOnDiskResponse) {} - // MountVolume mounts the volume at the requested global staging path - rpc MountVolume(MountVolumeRequest) returns (MountVolumeResponse) {} - // DismountVolume gracefully dismounts a volume - rpc DismountVolume(DismountVolumeRequest) returns (DismountVolumeResponse) {} - // IsVolumeFormatted checks if a volume is formatted with NTFS - rpc IsVolumeFormatted(IsVolumeFormattedRequest) returns (IsVolumeFormattedResponse) {} - // FormatVolume formats a volume with the provided file system - rpc FormatVolume(FormatVolumeRequest) returns (FormatVolumeResponse) {} - // ResizeVolume performs resizing of the partition and file system for a block based volume - rpc ResizeVolume(ResizeVolumeRequest) returns (ResizeVolumeResponse) {} - // VolumeStats gathers DiskSize, VolumeSize and VolumeUsedSize for a volume - rpc VolumeStats(VolumeStatsRequest) returns (VolumeStatsResponse) {} - // GetVolumeDiskNumber gets the disk number of the disk where the volume is located - rpc GetVolumeDiskNumber(VolumeDiskNumberRequest) returns (VolumeDiskNumberResponse) {} - // GetVolumeIDFromMount gets the volume id for a given mount - rpc GetVolumeIDFromMount(VolumeIDFromMountRequest) returns (VolumeIDFromMountResponse) {} - // WriteVolumeCache write volume cache to disk - rpc WriteVolumeCache(WriteVolumeCacheRequest) returns (WriteVolumeCacheResponse) {} -} - -message ListVolumesOnDiskRequest { - // Disk device ID of the disk to query for volumes - string disk_id = 1; -} - -message ListVolumesOnDiskResponse { - // Volume device IDs of volumes on the specified disk - repeated string volume_ids = 1; -} - -message MountVolumeRequest { - // Volume device ID of the volume to mount - string volume_id = 1; - // Path in the host's file system where the volume needs to be mounted - string path = 2; -} - -message MountVolumeResponse { - // Intentionally empty -} - -message DismountVolumeRequest { - // Volume device ID of the volume to dismount - string volume_id = 1; - // Path where the volume has been mounted. - string path = 2; -} - -message DismountVolumeResponse { - // Intentionally empty -} - -message IsVolumeFormattedRequest { - // Volume device ID of the volume to check - string volume_id = 1; -} - -message IsVolumeFormattedResponse { - // Is the volume formatted with NTFS - bool formatted = 1; -} - -message FormatVolumeRequest { - // Volume device ID of the volume to format - string volume_id = 1; -} - -message FormatVolumeResponse { - // Intentionally empty -} - -message ResizeVolumeRequest { - // Volume device ID of the volume to dismount - string volume_id = 1; - // New size of the volume - int64 size = 2; -} - -message ResizeVolumeResponse { - // Intentionally empty -} - -message VolumeStatsRequest{ - // Volume device Id of the volume to get the stats for - string volume_id = 1; -} - -message VolumeStatsResponse{ - // Capacity of the volume - int64 volumeSize = 1; - // Used bytes - int64 volumeUsedSize = 2; -} - -message VolumeDiskNumberRequest{ - // Volume device Id of the volume to get the disk number for - string volume_id = 1; -} - -message VolumeDiskNumberResponse{ - // Corresponding disk number - int64 diskNumber = 1; -} - -message VolumeIDFromMountRequest { - // Mount - string mount = 1; -} - -message VolumeIDFromMountResponse { - // Mount - string volume_id = 1; -} - -message WriteVolumeCacheRequest { - // Volume device ID of the volume to flush the cache - string volume_id = 1; -} - -message WriteVolumeCacheResponse { - // Intentionally empty -} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index eb96e687..da375cb6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -21,7 +21,6 @@ github.com/kubernetes-csi/csi-proxy/client/api/smb/v1alpha1 github.com/kubernetes-csi/csi-proxy/client/api/smb/v1beta1 github.com/kubernetes-csi/csi-proxy/client/api/volume/v1alpha1 github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta1 -github.com/kubernetes-csi/csi-proxy/client/api/volume/v1beta2 github.com/kubernetes-csi/csi-proxy/client/apiversion github.com/kubernetes-csi/csi-proxy/client/groups/disk/v1beta1 github.com/kubernetes-csi/csi-proxy/client/groups/filesystem/v1beta1