Documentation ¶
Index ¶
- Variables
- func NewVolumeEndpoints() []*api.Endpoint
- func RegisterVolumeHandler(s server.Server, hdlr VolumeHandler, opts ...server.HandlerOption) error
- type AllVolume
- type FindAll
- type Response
- type VolumeHandler
- type VolumeId
- type VolumeInfo
- func (*VolumeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VolumeInfo) GetId() int64
- func (x *VolumeInfo) GetVolumeAccessMode() string
- func (x *VolumeInfo) GetVolumeName() string
- func (x *VolumeInfo) GetVolumeNamespace() string
- func (x *VolumeInfo) GetVolumePersistentVolumeMode() string
- func (x *VolumeInfo) GetVolumeRequest() float32
- func (x *VolumeInfo) GetVolumeStorageClassName() string
- func (*VolumeInfo) ProtoMessage()
- func (x *VolumeInfo) ProtoReflect() protoreflect.Message
- func (x *VolumeInfo) Reset()
- func (x *VolumeInfo) String() string
- type VolumeService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_volume_volume_proto protoreflect.FileDescriptor
Functions ¶
func NewVolumeEndpoints ¶
func RegisterVolumeHandler ¶
func RegisterVolumeHandler(s server.Server, hdlr VolumeHandler, opts ...server.HandlerOption) error
Types ¶
type AllVolume ¶
type AllVolume struct { VolumeInfo []*VolumeInfo `protobuf:"bytes,1,rep,name=volume_info,json=volumeInfo,proto3" json:"volume_info,omitempty"` // contains filtered or unexported fields }
func (*AllVolume) Descriptor
deprecated
func (*AllVolume) GetVolumeInfo ¶
func (x *AllVolume) GetVolumeInfo() []*VolumeInfo
func (*AllVolume) ProtoMessage ¶
func (*AllVolume) ProtoMessage()
func (*AllVolume) ProtoReflect ¶
func (x *AllVolume) ProtoReflect() protoreflect.Message
type FindAll ¶
type FindAll struct {
// contains filtered or unexported fields
}
func (*FindAll) Descriptor
deprecated
func (*FindAll) ProtoMessage ¶
func (*FindAll) ProtoMessage()
func (*FindAll) ProtoReflect ¶
func (x *FindAll) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type VolumeHandler ¶
type VolumeHandler interface { //对外提供添加服务 AddVolume(context.Context, *VolumeInfo, *Response) error DeleteVolume(context.Context, *VolumeId, *Response) error UpdateVolume(context.Context, *VolumeInfo, *Response) error FindVolumeByID(context.Context, *VolumeId, *VolumeInfo) error FindAllVolume(context.Context, *FindAll, *AllVolume) error }
type VolumeId ¶
type VolumeId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*VolumeId) Descriptor
deprecated
func (*VolumeId) ProtoMessage ¶
func (*VolumeId) ProtoMessage()
func (*VolumeId) ProtoReflect ¶
func (x *VolumeId) ProtoReflect() protoreflect.Message
type VolumeInfo ¶
type VolumeInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` VolumeName string `protobuf:"bytes,2,opt,name=volume_name,json=volumeName,proto3" json:"volume_name,omitempty"` VolumeNamespace string `protobuf:"bytes,3,opt,name=volume_namespace,json=volumeNamespace,proto3" json:"volume_namespace,omitempty"` VolumeAccessMode string `protobuf:"bytes,4,opt,name=volume_access_mode,json=volumeAccessMode,proto3" json:"volume_access_mode,omitempty"` VolumeStorageClassName string `` /* 131-byte string literal not displayed */ VolumeRequest float32 `protobuf:"fixed32,6,opt,name=volume_request,json=volumeRequest,proto3" json:"volume_request,omitempty"` VolumePersistentVolumeMode string `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
func (*VolumeInfo) Descriptor
deprecated
func (*VolumeInfo) Descriptor() ([]byte, []int)
Deprecated: Use VolumeInfo.ProtoReflect.Descriptor instead.
func (*VolumeInfo) GetId ¶
func (x *VolumeInfo) GetId() int64
func (*VolumeInfo) GetVolumeAccessMode ¶
func (x *VolumeInfo) GetVolumeAccessMode() string
func (*VolumeInfo) GetVolumeName ¶
func (x *VolumeInfo) GetVolumeName() string
func (*VolumeInfo) GetVolumeNamespace ¶
func (x *VolumeInfo) GetVolumeNamespace() string
func (*VolumeInfo) GetVolumePersistentVolumeMode ¶
func (x *VolumeInfo) GetVolumePersistentVolumeMode() string
func (*VolumeInfo) GetVolumeRequest ¶
func (x *VolumeInfo) GetVolumeRequest() float32
func (*VolumeInfo) GetVolumeStorageClassName ¶
func (x *VolumeInfo) GetVolumeStorageClassName() string
func (*VolumeInfo) ProtoMessage ¶
func (*VolumeInfo) ProtoMessage()
func (*VolumeInfo) ProtoReflect ¶
func (x *VolumeInfo) ProtoReflect() protoreflect.Message
func (*VolumeInfo) Reset ¶
func (x *VolumeInfo) Reset()
func (*VolumeInfo) String ¶
func (x *VolumeInfo) String() string
type VolumeService ¶
type VolumeService interface { //对外提供添加服务 AddVolume(ctx context.Context, in *VolumeInfo, opts ...client.CallOption) (*Response, error) DeleteVolume(ctx context.Context, in *VolumeId, opts ...client.CallOption) (*Response, error) UpdateVolume(ctx context.Context, in *VolumeInfo, opts ...client.CallOption) (*Response, error) FindVolumeByID(ctx context.Context, in *VolumeId, opts ...client.CallOption) (*VolumeInfo, error) FindAllVolume(ctx context.Context, in *FindAll, opts ...client.CallOption) (*AllVolume, error) }
func NewVolumeService ¶
func NewVolumeService(name string, c client.Client) VolumeService
Click to show internal directories.
Click to hide internal directories.