volume

package
v0.0.0-...-7109ca6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_volume_volume_proto protoreflect.FileDescriptor

Functions

func NewVolumeEndpoints

func NewVolumeEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use AllVolume.ProtoReflect.Descriptor instead.

func (*AllVolume) GetVolumeInfo

func (x *AllVolume) GetVolumeInfo() []*VolumeInfo

func (*AllVolume) ProtoMessage

func (*AllVolume) ProtoMessage()

func (*AllVolume) ProtoReflect

func (x *AllVolume) ProtoReflect() protoreflect.Message

func (*AllVolume) Reset

func (x *AllVolume) Reset()

func (*AllVolume) String

func (x *AllVolume) String() string

type FindAll

type FindAll struct {
	// contains filtered or unexported fields
}

func (*FindAll) Descriptor deprecated

func (*FindAll) Descriptor() ([]byte, []int)

Deprecated: Use FindAll.ProtoReflect.Descriptor instead.

func (*FindAll) ProtoMessage

func (*FindAll) ProtoMessage()

func (*FindAll) ProtoReflect

func (x *FindAll) ProtoReflect() protoreflect.Message

func (*FindAll) Reset

func (x *FindAll) Reset()

func (*FindAll) String

func (x *FindAll) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use VolumeId.ProtoReflect.Descriptor instead.

func (*VolumeId) GetId

func (x *VolumeId) GetId() int64

func (*VolumeId) ProtoMessage

func (*VolumeId) ProtoMessage()

func (*VolumeId) ProtoReflect

func (x *VolumeId) ProtoReflect() protoreflect.Message

func (*VolumeId) Reset

func (x *VolumeId) Reset()

func (*VolumeId) String

func (x *VolumeId) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL