vmtemplatepb

package
v3.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_vmtemplate_vmtemplate_proto protoreflect.FileDescriptor
View Source
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) DeleteCollectionVMTemplate

func (UnimplementedVMTemplateSvcServer) DeleteVMTemplate

func (UnimplementedVMTemplateSvcServer) GetVMTemplate

func (UnimplementedVMTemplateSvcServer) ListVMTemplate

func (UnimplementedVMTemplateSvcServer) UpdateVMTemplate

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.

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

Jump to

Keyboard shortcuts

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