Documentation ¶
Index ¶
- func NewServer() pb.LVMServer
- type Server
- func (s Server) AddTagLV(ctx context.Context, in *pb.AddTagLVRequest) (*pb.AddTagLVReply, error)
- func (s Server) CloneLV(ctx context.Context, in *pb.CloneLVRequest) (*pb.CloneLVReply, error)
- func (s Server) CreateLV(ctx context.Context, in *pb.CreateLVRequest) (*pb.CreateLVReply, error)
- func (s Server) CreatePV(ctx context.Context, in *pb.CreatePVRequest) (*pb.CreatePVReply, error)
- func (s Server) CreateVG(ctx context.Context, in *pb.CreateVGRequest) (*pb.CreateVGReply, error)
- func (s Server) Destory(ctx context.Context, in *pb.DestoryRequest) (*pb.DestoryReply, error)
- func (s Server) ExtendLV(ctx context.Context, in *pb.ExtendLVRequest) (*pb.ExtendLVReply, error)
- func (s Server) ExtendVG(ctx context.Context, in *pb.ExtendVGRequest) (*pb.ExtendVGReply, error)
- func (s Server) GetPVNum(ctx context.Context, in *pb.CreateVGRequest) (*pb.GetPVNumReply, error)
- func (s Server) ListLV(ctx context.Context, in *pb.ListLVRequest) (*pb.ListLVReply, error)
- func (s Server) ListPV(ctx context.Context, in *pb.ListPVRequest) (*pb.ListPVReply, error)
- func (s Server) ListVG(ctx context.Context, in *pb.ListVGRequest) (*pb.ListVGReply, error)
- func (s Server) Match(ctx context.Context, in *pb.MatchRequest) (*pb.MatchReply, error)
- func (s Server) ReduceVG(ctx context.Context, in *pb.ExtendVGRequest) (*pb.ExtendVGReply, error)
- func (s Server) RemoveLV(ctx context.Context, in *pb.RemoveLVRequest) (*pb.RemoveLVReply, error)
- func (s Server) RemovePV(ctx context.Context, in *pb.RemovePVRequest) (*pb.RemovePVReply, error)
- func (s Server) RemoveTagLV(ctx context.Context, in *pb.RemoveTagLVRequest) (*pb.RemoveTagLVReply, error)
- func (s Server) RemoveVG(ctx context.Context, in *pb.CreateVGRequest) (*pb.RemoveVGReply, error)
- func (s Server) Validate(ctx context.Context, in *pb.ValidateRequest) (*pb.ValidateReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { }
Server lvm grpc server
func (Server) AddTagLV ¶
func (s Server) AddTagLV(ctx context.Context, in *pb.AddTagLVRequest) (*pb.AddTagLVReply, error)
AddTagLV add lv tag
func (Server) CloneLV ¶
func (s Server) CloneLV(ctx context.Context, in *pb.CloneLVRequest) (*pb.CloneLVReply, error)
CloneLV clone lv
func (Server) CreateLV ¶
func (s Server) CreateLV(ctx context.Context, in *pb.CreateLVRequest) (*pb.CreateLVReply, error)
CreateLV create lv
func (Server) CreatePV ¶
func (s Server) CreatePV(ctx context.Context, in *pb.CreatePVRequest) (*pb.CreatePVReply, error)
CreatePV create pv
func (Server) CreateVG ¶
func (s Server) CreateVG(ctx context.Context, in *pb.CreateVGRequest) (*pb.CreateVGReply, error)
CreateVG create vg
func (Server) Destory ¶
func (s Server) Destory(ctx context.Context, in *pb.DestoryRequest) (*pb.DestoryReply, error)
Destory destory block
func (Server) ExtendLV ¶
func (s Server) ExtendLV(ctx context.Context, in *pb.ExtendLVRequest) (*pb.ExtendLVReply, error)
ExtendLV extend lv
func (Server) ExtendVG ¶
func (s Server) ExtendVG(ctx context.Context, in *pb.ExtendVGRequest) (*pb.ExtendVGReply, error)
ExtendVG extend vg
func (Server) GetPVNum ¶
func (s Server) GetPVNum(ctx context.Context, in *pb.CreateVGRequest) (*pb.GetPVNumReply, error)
GetPVNum get pv number
func (Server) ListLV ¶
func (s Server) ListLV(ctx context.Context, in *pb.ListLVRequest) (*pb.ListLVReply, error)
ListLV list lv
func (Server) ListPV ¶
func (s Server) ListPV(ctx context.Context, in *pb.ListPVRequest) (*pb.ListPVReply, error)
ListPV list pv
func (Server) ListVG ¶
func (s Server) ListVG(ctx context.Context, in *pb.ListVGRequest) (*pb.ListVGReply, error)
ListVG list vg
func (Server) Match ¶
func (s Server) Match(ctx context.Context, in *pb.MatchRequest) (*pb.MatchReply, error)
Match match block
func (Server) ReduceVG ¶
func (s Server) ReduceVG(ctx context.Context, in *pb.ExtendVGRequest) (*pb.ExtendVGReply, error)
ReduceVG reduce vg
func (Server) RemoveLV ¶
func (s Server) RemoveLV(ctx context.Context, in *pb.RemoveLVRequest) (*pb.RemoveLVReply, error)
RemoveLV remove lv
func (Server) RemovePV ¶
func (s Server) RemovePV(ctx context.Context, in *pb.RemovePVRequest) (*pb.RemovePVReply, error)
RemovePV remove pv
func (Server) RemoveTagLV ¶
func (s Server) RemoveTagLV(ctx context.Context, in *pb.RemoveTagLVRequest) (*pb.RemoveTagLVReply, error)
RemoveTagLV remove lv tag
func (Server) RemoveVG ¶
func (s Server) RemoveVG(ctx context.Context, in *pb.CreateVGRequest) (*pb.RemoveVGReply, error)
RemoveVG remove vg
func (Server) Validate ¶
func (s Server) Validate(ctx context.Context, in *pb.ValidateRequest) (*pb.ValidateReply, error)
Validate validate
Click to show internal directories.
Click to hide internal directories.