633 lines
23 KiB
Go
633 lines
23 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: BlockStore.proto
|
|
|
|
package generated
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
type CreateVolumeRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
SnapshotID string `protobuf:"bytes,2,opt,name=snapshotID" json:"snapshotID,omitempty"`
|
|
VolumeType string `protobuf:"bytes,3,opt,name=volumeType" json:"volumeType,omitempty"`
|
|
VolumeAZ string `protobuf:"bytes,4,opt,name=volumeAZ" json:"volumeAZ,omitempty"`
|
|
Iops int64 `protobuf:"varint,5,opt,name=iops" json:"iops,omitempty"`
|
|
}
|
|
|
|
func (m *CreateVolumeRequest) Reset() { *m = CreateVolumeRequest{} }
|
|
func (m *CreateVolumeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateVolumeRequest) ProtoMessage() {}
|
|
func (*CreateVolumeRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
|
|
|
func (m *CreateVolumeRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateVolumeRequest) GetSnapshotID() string {
|
|
if m != nil {
|
|
return m.SnapshotID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateVolumeRequest) GetVolumeType() string {
|
|
if m != nil {
|
|
return m.VolumeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateVolumeRequest) GetVolumeAZ() string {
|
|
if m != nil {
|
|
return m.VolumeAZ
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateVolumeRequest) GetIops() int64 {
|
|
if m != nil {
|
|
return m.Iops
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateVolumeResponse struct {
|
|
VolumeID string `protobuf:"bytes,1,opt,name=volumeID" json:"volumeID,omitempty"`
|
|
}
|
|
|
|
func (m *CreateVolumeResponse) Reset() { *m = CreateVolumeResponse{} }
|
|
func (m *CreateVolumeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateVolumeResponse) ProtoMessage() {}
|
|
func (*CreateVolumeResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
|
|
|
|
func (m *CreateVolumeResponse) GetVolumeID() string {
|
|
if m != nil {
|
|
return m.VolumeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetVolumeInfoRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
VolumeID string `protobuf:"bytes,2,opt,name=volumeID" json:"volumeID,omitempty"`
|
|
VolumeAZ string `protobuf:"bytes,3,opt,name=volumeAZ" json:"volumeAZ,omitempty"`
|
|
}
|
|
|
|
func (m *GetVolumeInfoRequest) Reset() { *m = GetVolumeInfoRequest{} }
|
|
func (m *GetVolumeInfoRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetVolumeInfoRequest) ProtoMessage() {}
|
|
func (*GetVolumeInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
|
|
|
|
func (m *GetVolumeInfoRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetVolumeInfoRequest) GetVolumeID() string {
|
|
if m != nil {
|
|
return m.VolumeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetVolumeInfoRequest) GetVolumeAZ() string {
|
|
if m != nil {
|
|
return m.VolumeAZ
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetVolumeInfoResponse struct {
|
|
VolumeType string `protobuf:"bytes,1,opt,name=volumeType" json:"volumeType,omitempty"`
|
|
Iops int64 `protobuf:"varint,2,opt,name=iops" json:"iops,omitempty"`
|
|
}
|
|
|
|
func (m *GetVolumeInfoResponse) Reset() { *m = GetVolumeInfoResponse{} }
|
|
func (m *GetVolumeInfoResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetVolumeInfoResponse) ProtoMessage() {}
|
|
func (*GetVolumeInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
|
|
|
|
func (m *GetVolumeInfoResponse) GetVolumeType() string {
|
|
if m != nil {
|
|
return m.VolumeType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetVolumeInfoResponse) GetIops() int64 {
|
|
if m != nil {
|
|
return m.Iops
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateSnapshotRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
VolumeID string `protobuf:"bytes,2,opt,name=volumeID" json:"volumeID,omitempty"`
|
|
VolumeAZ string `protobuf:"bytes,3,opt,name=volumeAZ" json:"volumeAZ,omitempty"`
|
|
Tags map[string]string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
}
|
|
|
|
func (m *CreateSnapshotRequest) Reset() { *m = CreateSnapshotRequest{} }
|
|
func (m *CreateSnapshotRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateSnapshotRequest) ProtoMessage() {}
|
|
func (*CreateSnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
|
|
|
|
func (m *CreateSnapshotRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateSnapshotRequest) GetVolumeID() string {
|
|
if m != nil {
|
|
return m.VolumeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateSnapshotRequest) GetVolumeAZ() string {
|
|
if m != nil {
|
|
return m.VolumeAZ
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CreateSnapshotRequest) GetTags() map[string]string {
|
|
if m != nil {
|
|
return m.Tags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateSnapshotResponse struct {
|
|
SnapshotID string `protobuf:"bytes,1,opt,name=snapshotID" json:"snapshotID,omitempty"`
|
|
}
|
|
|
|
func (m *CreateSnapshotResponse) Reset() { *m = CreateSnapshotResponse{} }
|
|
func (m *CreateSnapshotResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateSnapshotResponse) ProtoMessage() {}
|
|
func (*CreateSnapshotResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
|
|
|
|
func (m *CreateSnapshotResponse) GetSnapshotID() string {
|
|
if m != nil {
|
|
return m.SnapshotID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteSnapshotRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
SnapshotID string `protobuf:"bytes,2,opt,name=snapshotID" json:"snapshotID,omitempty"`
|
|
}
|
|
|
|
func (m *DeleteSnapshotRequest) Reset() { *m = DeleteSnapshotRequest{} }
|
|
func (m *DeleteSnapshotRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteSnapshotRequest) ProtoMessage() {}
|
|
func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
|
|
|
|
func (m *DeleteSnapshotRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteSnapshotRequest) GetSnapshotID() string {
|
|
if m != nil {
|
|
return m.SnapshotID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetVolumeIDRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
PersistentVolume []byte `protobuf:"bytes,2,opt,name=persistentVolume,proto3" json:"persistentVolume,omitempty"`
|
|
}
|
|
|
|
func (m *GetVolumeIDRequest) Reset() { *m = GetVolumeIDRequest{} }
|
|
func (m *GetVolumeIDRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetVolumeIDRequest) ProtoMessage() {}
|
|
func (*GetVolumeIDRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
|
|
|
|
func (m *GetVolumeIDRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *GetVolumeIDRequest) GetPersistentVolume() []byte {
|
|
if m != nil {
|
|
return m.PersistentVolume
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetVolumeIDResponse struct {
|
|
VolumeID string `protobuf:"bytes,1,opt,name=volumeID" json:"volumeID,omitempty"`
|
|
}
|
|
|
|
func (m *GetVolumeIDResponse) Reset() { *m = GetVolumeIDResponse{} }
|
|
func (m *GetVolumeIDResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GetVolumeIDResponse) ProtoMessage() {}
|
|
func (*GetVolumeIDResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
|
|
|
|
func (m *GetVolumeIDResponse) GetVolumeID() string {
|
|
if m != nil {
|
|
return m.VolumeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetVolumeIDRequest struct {
|
|
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
|
PersistentVolume []byte `protobuf:"bytes,2,opt,name=persistentVolume,proto3" json:"persistentVolume,omitempty"`
|
|
VolumeID string `protobuf:"bytes,3,opt,name=volumeID" json:"volumeID,omitempty"`
|
|
}
|
|
|
|
func (m *SetVolumeIDRequest) Reset() { *m = SetVolumeIDRequest{} }
|
|
func (m *SetVolumeIDRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*SetVolumeIDRequest) ProtoMessage() {}
|
|
func (*SetVolumeIDRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
|
|
|
|
func (m *SetVolumeIDRequest) GetPlugin() string {
|
|
if m != nil {
|
|
return m.Plugin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *SetVolumeIDRequest) GetPersistentVolume() []byte {
|
|
if m != nil {
|
|
return m.PersistentVolume
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SetVolumeIDRequest) GetVolumeID() string {
|
|
if m != nil {
|
|
return m.VolumeID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetVolumeIDResponse struct {
|
|
PersistentVolume []byte `protobuf:"bytes,1,opt,name=persistentVolume,proto3" json:"persistentVolume,omitempty"`
|
|
}
|
|
|
|
func (m *SetVolumeIDResponse) Reset() { *m = SetVolumeIDResponse{} }
|
|
func (m *SetVolumeIDResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*SetVolumeIDResponse) ProtoMessage() {}
|
|
func (*SetVolumeIDResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
|
|
|
|
func (m *SetVolumeIDResponse) GetPersistentVolume() []byte {
|
|
if m != nil {
|
|
return m.PersistentVolume
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CreateVolumeRequest)(nil), "generated.CreateVolumeRequest")
|
|
proto.RegisterType((*CreateVolumeResponse)(nil), "generated.CreateVolumeResponse")
|
|
proto.RegisterType((*GetVolumeInfoRequest)(nil), "generated.GetVolumeInfoRequest")
|
|
proto.RegisterType((*GetVolumeInfoResponse)(nil), "generated.GetVolumeInfoResponse")
|
|
proto.RegisterType((*CreateSnapshotRequest)(nil), "generated.CreateSnapshotRequest")
|
|
proto.RegisterType((*CreateSnapshotResponse)(nil), "generated.CreateSnapshotResponse")
|
|
proto.RegisterType((*DeleteSnapshotRequest)(nil), "generated.DeleteSnapshotRequest")
|
|
proto.RegisterType((*GetVolumeIDRequest)(nil), "generated.GetVolumeIDRequest")
|
|
proto.RegisterType((*GetVolumeIDResponse)(nil), "generated.GetVolumeIDResponse")
|
|
proto.RegisterType((*SetVolumeIDRequest)(nil), "generated.SetVolumeIDRequest")
|
|
proto.RegisterType((*SetVolumeIDResponse)(nil), "generated.SetVolumeIDResponse")
|
|
}
|
|
|
|
// 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
|
|
|
|
// Client API for BlockStore service
|
|
|
|
type BlockStoreClient interface {
|
|
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
CreateVolumeFromSnapshot(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error)
|
|
GetVolumeInfo(ctx context.Context, in *GetVolumeInfoRequest, opts ...grpc.CallOption) (*GetVolumeInfoResponse, error)
|
|
CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error)
|
|
DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*Empty, error)
|
|
GetVolumeID(ctx context.Context, in *GetVolumeIDRequest, opts ...grpc.CallOption) (*GetVolumeIDResponse, error)
|
|
SetVolumeID(ctx context.Context, in *SetVolumeIDRequest, opts ...grpc.CallOption) (*SetVolumeIDResponse, error)
|
|
}
|
|
|
|
type blockStoreClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewBlockStoreClient(cc *grpc.ClientConn) BlockStoreClient {
|
|
return &blockStoreClient{cc}
|
|
}
|
|
|
|
func (c *blockStoreClient) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/Init", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) CreateVolumeFromSnapshot(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error) {
|
|
out := new(CreateVolumeResponse)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/CreateVolumeFromSnapshot", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) GetVolumeInfo(ctx context.Context, in *GetVolumeInfoRequest, opts ...grpc.CallOption) (*GetVolumeInfoResponse, error) {
|
|
out := new(GetVolumeInfoResponse)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/GetVolumeInfo", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error) {
|
|
out := new(CreateSnapshotResponse)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/CreateSnapshot", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) DeleteSnapshot(ctx context.Context, in *DeleteSnapshotRequest, opts ...grpc.CallOption) (*Empty, error) {
|
|
out := new(Empty)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/DeleteSnapshot", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) GetVolumeID(ctx context.Context, in *GetVolumeIDRequest, opts ...grpc.CallOption) (*GetVolumeIDResponse, error) {
|
|
out := new(GetVolumeIDResponse)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/GetVolumeID", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *blockStoreClient) SetVolumeID(ctx context.Context, in *SetVolumeIDRequest, opts ...grpc.CallOption) (*SetVolumeIDResponse, error) {
|
|
out := new(SetVolumeIDResponse)
|
|
err := grpc.Invoke(ctx, "/generated.BlockStore/SetVolumeID", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for BlockStore service
|
|
|
|
type BlockStoreServer interface {
|
|
Init(context.Context, *InitRequest) (*Empty, error)
|
|
CreateVolumeFromSnapshot(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error)
|
|
GetVolumeInfo(context.Context, *GetVolumeInfoRequest) (*GetVolumeInfoResponse, error)
|
|
CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
|
|
DeleteSnapshot(context.Context, *DeleteSnapshotRequest) (*Empty, error)
|
|
GetVolumeID(context.Context, *GetVolumeIDRequest) (*GetVolumeIDResponse, error)
|
|
SetVolumeID(context.Context, *SetVolumeIDRequest) (*SetVolumeIDResponse, error)
|
|
}
|
|
|
|
func RegisterBlockStoreServer(s *grpc.Server, srv BlockStoreServer) {
|
|
s.RegisterService(&_BlockStore_serviceDesc, srv)
|
|
}
|
|
|
|
func _BlockStore_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InitRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).Init(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/Init",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).Init(ctx, req.(*InitRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_CreateVolumeFromSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateVolumeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).CreateVolumeFromSnapshot(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/CreateVolumeFromSnapshot",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).CreateVolumeFromSnapshot(ctx, req.(*CreateVolumeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_GetVolumeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetVolumeInfoRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).GetVolumeInfo(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/GetVolumeInfo",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).GetVolumeInfo(ctx, req.(*GetVolumeInfoRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_CreateSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateSnapshotRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).CreateSnapshot(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/CreateSnapshot",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).CreateSnapshot(ctx, req.(*CreateSnapshotRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_DeleteSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteSnapshotRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).DeleteSnapshot(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/DeleteSnapshot",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).DeleteSnapshot(ctx, req.(*DeleteSnapshotRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_GetVolumeID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetVolumeIDRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).GetVolumeID(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/GetVolumeID",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).GetVolumeID(ctx, req.(*GetVolumeIDRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _BlockStore_SetVolumeID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SetVolumeIDRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(BlockStoreServer).SetVolumeID(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generated.BlockStore/SetVolumeID",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(BlockStoreServer).SetVolumeID(ctx, req.(*SetVolumeIDRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _BlockStore_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "generated.BlockStore",
|
|
HandlerType: (*BlockStoreServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Init",
|
|
Handler: _BlockStore_Init_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateVolumeFromSnapshot",
|
|
Handler: _BlockStore_CreateVolumeFromSnapshot_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetVolumeInfo",
|
|
Handler: _BlockStore_GetVolumeInfo_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateSnapshot",
|
|
Handler: _BlockStore_CreateSnapshot_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteSnapshot",
|
|
Handler: _BlockStore_DeleteSnapshot_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetVolumeID",
|
|
Handler: _BlockStore_GetVolumeID_Handler,
|
|
},
|
|
{
|
|
MethodName: "SetVolumeID",
|
|
Handler: _BlockStore_SetVolumeID_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "BlockStore.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("BlockStore.proto", fileDescriptor1) }
|
|
|
|
var fileDescriptor1 = []byte{
|
|
// 566 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
|
|
0x10, 0x96, 0x63, 0xb7, 0x6a, 0x26, 0xa5, 0x8a, 0x36, 0x3f, 0xb2, 0x2c, 0x11, 0x8c, 0x4f, 0x51,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