Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterVMTemplateSvcServer(s grpc.ServiceRegistrar, srv VMTemplateSvcServer)
- type CreateVMTemplateRequest
- func (*CreateVMTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateVMTemplateRequest) GetConfigMapRaw() string
- func (x *CreateVMTemplateRequest) GetImage() string
- func (x *CreateVMTemplateRequest) GetName() string
- func (*CreateVMTemplateRequest) ProtoMessage()
- func (x *CreateVMTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateVMTemplateRequest) Reset()
- func (x *CreateVMTemplateRequest) String() string
- type ListVMTemplatesResponse
- func (*ListVMTemplatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListVMTemplatesResponse) GetVmtemplates() []*VMTemplate
- func (*ListVMTemplatesResponse) ProtoMessage()
- func (x *ListVMTemplatesResponse) ProtoReflect() protoreflect.Message
- func (x *ListVMTemplatesResponse) Reset()
- func (x *ListVMTemplatesResponse) String() string
- type UnimplementedVMTemplateSvcServer
- func (UnimplementedVMTemplateSvcServer) CreateVMTemplate(context.Context, *CreateVMTemplateRequest) (*general.ResourceId, error)
- func (UnimplementedVMTemplateSvcServer) DeleteCollectionVMTemplate(context.Context, *general.ListOptions) (*emptypb.Empty, error)
- func (UnimplementedVMTemplateSvcServer) DeleteVMTemplate(context.Context, *general.ResourceId) (*emptypb.Empty, error)
- func (UnimplementedVMTemplateSvcServer) GetVMTemplate(context.Context, *general.GetRequest) (*VMTemplate, error)
- func (UnimplementedVMTemplateSvcServer) ListVMTemplate(context.Context, *general.ListOptions) (*ListVMTemplatesResponse, error)
- func (UnimplementedVMTemplateSvcServer) UpdateVMTemplate(context.Context, *UpdateVMTemplateRequest) (*emptypb.Empty, error)
- type UnsafeVMTemplateSvcServer
- type UpdateVMTemplateRequest
- func (*UpdateVMTemplateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateVMTemplateRequest) GetConfigMapRaw() string
- func (x *UpdateVMTemplateRequest) GetId() string
- func (x *UpdateVMTemplateRequest) GetImage() string
- func (x *UpdateVMTemplateRequest) GetName() string
- func (*UpdateVMTemplateRequest) ProtoMessage()
- func (x *UpdateVMTemplateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateVMTemplateRequest) Reset()
- func (x *UpdateVMTemplateRequest) String() string
- type VMTemplate
- func (*VMTemplate) Descriptor() ([]byte, []int)deprecated
- func (x *VMTemplate) GetConfigMap() map[string]string
- func (x *VMTemplate) GetId() string
- func (x *VMTemplate) GetImage() string
- func (x *VMTemplate) GetName() string
- func (x *VMTemplate) GetUid() string
- func (*VMTemplate) ProtoMessage()
- func (x *VMTemplate) ProtoReflect() protoreflect.Message
- func (x *VMTemplate) Reset()
- func (x *VMTemplate) String() string
- type VMTemplateSvcClient
- type VMTemplateSvcServer
Constants ¶
const ( VMTemplateSvc_CreateVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/CreateVMTemplate" VMTemplateSvc_GetVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/GetVMTemplate" VMTemplateSvc_UpdateVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/UpdateVMTemplate" VMTemplateSvc_DeleteVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/DeleteVMTemplate" VMTemplateSvc_DeleteCollectionVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/DeleteCollectionVMTemplate" VMTemplateSvc_ListVMTemplate_FullMethodName = "/vmtemplate.VMTemplateSvc/ListVMTemplate" )
Variables ¶
var File_vmtemplate_vmtemplate_proto protoreflect.FileDescriptor
var VMTemplateSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vmtemplate.VMTemplateSvc", HandlerType: (*VMTemplateSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateVMTemplate", Handler: _VMTemplateSvc_CreateVMTemplate_Handler, }, { MethodName: "GetVMTemplate", Handler: _VMTemplateSvc_GetVMTemplate_Handler, }, { MethodName: "UpdateVMTemplate", Handler: _VMTemplateSvc_UpdateVMTemplate_Handler, }, { MethodName: "DeleteVMTemplate", Handler: _VMTemplateSvc_DeleteVMTemplate_Handler, }, { MethodName: "DeleteCollectionVMTemplate", Handler: _VMTemplateSvc_DeleteCollectionVMTemplate_Handler, }, { MethodName: "ListVMTemplate", Handler: _VMTemplateSvc_ListVMTemplate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vmtemplate/vmtemplate.proto", }
VMTemplateSvc_ServiceDesc is the grpc.ServiceDesc for VMTemplateSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVMTemplateSvcServer ¶
func RegisterVMTemplateSvcServer(s grpc.ServiceRegistrar, srv VMTemplateSvcServer)
Types ¶
type CreateVMTemplateRequest ¶
type CreateVMTemplateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` ConfigMapRaw string `protobuf:"bytes,3,opt,name=config_map_raw,json=configMapRaw,proto3" json:"config_map_raw,omitempty"` // contains filtered or unexported fields }
func (*CreateVMTemplateRequest) Descriptor
deprecated
func (*CreateVMTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateVMTemplateRequest.ProtoReflect.Descriptor instead.
func (*CreateVMTemplateRequest) GetConfigMapRaw ¶
func (x *CreateVMTemplateRequest) GetConfigMapRaw() string
func (*CreateVMTemplateRequest) GetImage ¶
func (x *CreateVMTemplateRequest) GetImage() string
func (*CreateVMTemplateRequest) GetName ¶
func (x *CreateVMTemplateRequest) GetName() string
func (*CreateVMTemplateRequest) ProtoMessage ¶
func (*CreateVMTemplateRequest) ProtoMessage()
func (*CreateVMTemplateRequest) ProtoReflect ¶
func (x *CreateVMTemplateRequest) ProtoReflect() protoreflect.Message
func (*CreateVMTemplateRequest) Reset ¶
func (x *CreateVMTemplateRequest) Reset()
func (*CreateVMTemplateRequest) String ¶
func (x *CreateVMTemplateRequest) String() string
type ListVMTemplatesResponse ¶
type ListVMTemplatesResponse struct { Vmtemplates []*VMTemplate `protobuf:"bytes,1,rep,name=vmtemplates,proto3" json:"vmtemplates,omitempty"` // contains filtered or unexported fields }
func (*ListVMTemplatesResponse) Descriptor
deprecated
func (*ListVMTemplatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListVMTemplatesResponse.ProtoReflect.Descriptor instead.
func (*ListVMTemplatesResponse) GetVmtemplates ¶
func (x *ListVMTemplatesResponse) GetVmtemplates() []*VMTemplate
func (*ListVMTemplatesResponse) ProtoMessage ¶
func (*ListVMTemplatesResponse) ProtoMessage()
func (*ListVMTemplatesResponse) ProtoReflect ¶
func (x *ListVMTemplatesResponse) ProtoReflect() protoreflect.Message
func (*ListVMTemplatesResponse) Reset ¶
func (x *ListVMTemplatesResponse) Reset()
func (*ListVMTemplatesResponse) String ¶
func (x *ListVMTemplatesResponse) String() string
type UnimplementedVMTemplateSvcServer ¶
type UnimplementedVMTemplateSvcServer struct { }
UnimplementedVMTemplateSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedVMTemplateSvcServer) CreateVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) CreateVMTemplate(context.Context, *CreateVMTemplateRequest) (*general.ResourceId, error)
func (UnimplementedVMTemplateSvcServer) DeleteCollectionVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) DeleteCollectionVMTemplate(context.Context, *general.ListOptions) (*emptypb.Empty, error)
func (UnimplementedVMTemplateSvcServer) DeleteVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) DeleteVMTemplate(context.Context, *general.ResourceId) (*emptypb.Empty, error)
func (UnimplementedVMTemplateSvcServer) GetVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) GetVMTemplate(context.Context, *general.GetRequest) (*VMTemplate, error)
func (UnimplementedVMTemplateSvcServer) ListVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) ListVMTemplate(context.Context, *general.ListOptions) (*ListVMTemplatesResponse, error)
func (UnimplementedVMTemplateSvcServer) UpdateVMTemplate ¶
func (UnimplementedVMTemplateSvcServer) UpdateVMTemplate(context.Context, *UpdateVMTemplateRequest) (*emptypb.Empty, error)
type UnsafeVMTemplateSvcServer ¶
type UnsafeVMTemplateSvcServer interface {
// contains filtered or unexported methods
}
UnsafeVMTemplateSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VMTemplateSvcServer will result in compilation errors.
type UpdateVMTemplateRequest ¶
type UpdateVMTemplateRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"` ConfigMapRaw string `protobuf:"bytes,4,opt,name=config_map_raw,json=configMapRaw,proto3" json:"config_map_raw,omitempty"` // contains filtered or unexported fields }
func (*UpdateVMTemplateRequest) Descriptor
deprecated
func (*UpdateVMTemplateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateVMTemplateRequest.ProtoReflect.Descriptor instead.
func (*UpdateVMTemplateRequest) GetConfigMapRaw ¶
func (x *UpdateVMTemplateRequest) GetConfigMapRaw() string
func (*UpdateVMTemplateRequest) GetId ¶
func (x *UpdateVMTemplateRequest) GetId() string
func (*UpdateVMTemplateRequest) GetImage ¶
func (x *UpdateVMTemplateRequest) GetImage() string
func (*UpdateVMTemplateRequest) GetName ¶
func (x *UpdateVMTemplateRequest) GetName() string
func (*UpdateVMTemplateRequest) ProtoMessage ¶
func (*UpdateVMTemplateRequest) ProtoMessage()
func (*UpdateVMTemplateRequest) ProtoReflect ¶
func (x *UpdateVMTemplateRequest) ProtoReflect() protoreflect.Message
func (*UpdateVMTemplateRequest) Reset ¶
func (x *UpdateVMTemplateRequest) Reset()
func (*UpdateVMTemplateRequest) String ¶
func (x *UpdateVMTemplateRequest) String() string
type VMTemplate ¶
type VMTemplate struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` ConfigMap map[string]string `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*VMTemplate) Descriptor
deprecated
func (*VMTemplate) Descriptor() ([]byte, []int)
Deprecated: Use VMTemplate.ProtoReflect.Descriptor instead.
func (*VMTemplate) GetConfigMap ¶
func (x *VMTemplate) GetConfigMap() map[string]string
func (*VMTemplate) GetId ¶
func (x *VMTemplate) GetId() string
func (*VMTemplate) GetImage ¶
func (x *VMTemplate) GetImage() string
func (*VMTemplate) GetName ¶
func (x *VMTemplate) GetName() string
func (*VMTemplate) GetUid ¶
func (x *VMTemplate) GetUid() string
func (*VMTemplate) ProtoMessage ¶
func (*VMTemplate) ProtoMessage()
func (*VMTemplate) ProtoReflect ¶
func (x *VMTemplate) ProtoReflect() protoreflect.Message
func (*VMTemplate) Reset ¶
func (x *VMTemplate) Reset()
func (*VMTemplate) String ¶
func (x *VMTemplate) String() string
type VMTemplateSvcClient ¶
type VMTemplateSvcClient interface { CreateVMTemplate(ctx context.Context, in *CreateVMTemplateRequest, opts ...grpc.CallOption) (*general.ResourceId, error) GetVMTemplate(ctx context.Context, in *general.GetRequest, opts ...grpc.CallOption) (*VMTemplate, error) UpdateVMTemplate(ctx context.Context, in *UpdateVMTemplateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteVMTemplate(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteCollectionVMTemplate(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) ListVMTemplate(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*ListVMTemplatesResponse, error) }
VMTemplateSvcClient is the client API for VMTemplateSvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVMTemplateSvcClient ¶
func NewVMTemplateSvcClient(cc grpc.ClientConnInterface) VMTemplateSvcClient
type VMTemplateSvcServer ¶
type VMTemplateSvcServer interface { CreateVMTemplate(context.Context, *CreateVMTemplateRequest) (*general.ResourceId, error) GetVMTemplate(context.Context, *general.GetRequest) (*VMTemplate, error) UpdateVMTemplate(context.Context, *UpdateVMTemplateRequest) (*emptypb.Empty, error) DeleteVMTemplate(context.Context, *general.ResourceId) (*emptypb.Empty, error) DeleteCollectionVMTemplate(context.Context, *general.ListOptions) (*emptypb.Empty, error) ListVMTemplate(context.Context, *general.ListOptions) (*ListVMTemplatesResponse, error) // contains filtered or unexported methods }
VMTemplateSvcServer is the server API for VMTemplateSvc service. All implementations must embed UnimplementedVMTemplateSvcServer for forward compatibility