// Code generated by protoc-gen-micro. DO NOT EDIT. // source: proto/persistentvolume.proto package kubernetes_service import ( fmt "fmt" proto "google.golang.org/protobuf/proto" math "math" ) import ( context "context" api "go-micro.dev/v4/api" client "go-micro.dev/v4/client" server "go-micro.dev/v4/server" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // Reference imports to suppress errors if they are not otherwise used. var _ api.Endpoint var _ context.Context var _ client.Option var _ server.Option // Api Endpoints for PersistentVolumeService service func NewPersistentVolumeServiceEndpoints() []*api.Endpoint { return []*api.Endpoint{} } // Client API for PersistentVolumeService service type PersistentVolumeService interface { GetPersistentVolumeList(ctx context.Context, in *GetPersistentVolumeListRequest, opts ...client.CallOption) (*GetPersistentVolumeListResponse, error) CreatePersistentVolume(ctx context.Context, in *CreatePersistentVolumeRequest, opts ...client.CallOption) (*CreatePersistentVolumeResponse, error) DeletePersistentVolume(ctx context.Context, in *DeletePersistentVolumeRequest, opts ...client.CallOption) (*DeletePersistentVolumeResponse, error) } type persistentVolumeService struct { c client.Client name string } func NewPersistentVolumeService(name string, c client.Client) PersistentVolumeService { return &persistentVolumeService{ c: c, name: name, } } func (c *persistentVolumeService) GetPersistentVolumeList(ctx context.Context, in *GetPersistentVolumeListRequest, opts ...client.CallOption) (*GetPersistentVolumeListResponse, error) { req := c.c.NewRequest(c.name, "PersistentVolumeService.GetPersistentVolumeList", in) out := new(GetPersistentVolumeListResponse) err := c.c.Call(ctx, req, out, opts...) if err != nil { return nil, err } return out, nil } func (c *persistentVolumeService) CreatePersistentVolume(ctx context.Context, in *CreatePersistentVolumeRequest, opts ...client.CallOption) (*CreatePersistentVolumeResponse, error) { req := c.c.NewRequest(c.name, "PersistentVolumeService.CreatePersistentVolume", in) out := new(CreatePersistentVolumeResponse) err := c.c.Call(ctx, req, out, opts...) if err != nil { return nil, err } return out, nil } func (c *persistentVolumeService) DeletePersistentVolume(ctx context.Context, in *DeletePersistentVolumeRequest, opts ...client.CallOption) (*DeletePersistentVolumeResponse, error) { req := c.c.NewRequest(c.name, "PersistentVolumeService.DeletePersistentVolume", in) out := new(DeletePersistentVolumeResponse) err := c.c.Call(ctx, req, out, opts...) if err != nil { return nil, err } return out, nil } // Server API for PersistentVolumeService service type PersistentVolumeServiceHandler interface { GetPersistentVolumeList(context.Context, *GetPersistentVolumeListRequest, *GetPersistentVolumeListResponse) error CreatePersistentVolume(context.Context, *CreatePersistentVolumeRequest, *CreatePersistentVolumeResponse) error DeletePersistentVolume(context.Context, *DeletePersistentVolumeRequest, *DeletePersistentVolumeResponse) error } func RegisterPersistentVolumeServiceHandler(s server.Server, hdlr PersistentVolumeServiceHandler, opts ...server.HandlerOption) error { type persistentVolumeService interface { GetPersistentVolumeList(ctx context.Context, in *GetPersistentVolumeListRequest, out *GetPersistentVolumeListResponse) error CreatePersistentVolume(ctx context.Context, in *CreatePersistentVolumeRequest, out *CreatePersistentVolumeResponse) error DeletePersistentVolume(ctx context.Context, in *DeletePersistentVolumeRequest, out *DeletePersistentVolumeResponse) error } type PersistentVolumeService struct { persistentVolumeService } h := &persistentVolumeServiceHandler{hdlr} return s.Handle(s.NewHandler(&PersistentVolumeService{h}, opts...)) } type persistentVolumeServiceHandler struct { PersistentVolumeServiceHandler } func (h *persistentVolumeServiceHandler) GetPersistentVolumeList(ctx context.Context, in *GetPersistentVolumeListRequest, out *GetPersistentVolumeListResponse) error { return h.PersistentVolumeServiceHandler.GetPersistentVolumeList(ctx, in, out) } func (h *persistentVolumeServiceHandler) CreatePersistentVolume(ctx context.Context, in *CreatePersistentVolumeRequest, out *CreatePersistentVolumeResponse) error { return h.PersistentVolumeServiceHandler.CreatePersistentVolume(ctx, in, out) } func (h *persistentVolumeServiceHandler) DeletePersistentVolume(ctx context.Context, in *DeletePersistentVolumeRequest, out *DeletePersistentVolumeResponse) error { return h.PersistentVolumeServiceHandler.DeletePersistentVolume(ctx, in, out) }