vmsetpb

package
v3.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VMSetSvc_CreateVMSet_FullMethodName           = "/vmset.VMSetSvc/CreateVMSet"
	VMSetSvc_GetVMSet_FullMethodName              = "/vmset.VMSetSvc/GetVMSet"
	VMSetSvc_UpdateVMSet_FullMethodName           = "/vmset.VMSetSvc/UpdateVMSet"
	VMSetSvc_UpdateVMSetStatus_FullMethodName     = "/vmset.VMSetSvc/UpdateVMSetStatus"
	VMSetSvc_DeleteVMSet_FullMethodName           = "/vmset.VMSetSvc/DeleteVMSet"
	VMSetSvc_DeleteCollectionVMSet_FullMethodName = "/vmset.VMSetSvc/DeleteCollectionVMSet"
	VMSetSvc_ListVMSet_FullMethodName             = "/vmset.VMSetSvc/ListVMSet"
	VMSetSvc_AddToWorkqueue_FullMethodName        = "/vmset.VMSetSvc/AddToWorkqueue"
)

Variables

View Source
var File_vmset_virtualmachineset_proto protoreflect.FileDescriptor
View Source
var VMSetSvc_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vmset.VMSetSvc",
	HandlerType: (*VMSetSvcServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVMSet",
			Handler:    _VMSetSvc_CreateVMSet_Handler,
		},
		{
			MethodName: "GetVMSet",
			Handler:    _VMSetSvc_GetVMSet_Handler,
		},
		{
			MethodName: "UpdateVMSet",
			Handler:    _VMSetSvc_UpdateVMSet_Handler,
		},
		{
			MethodName: "UpdateVMSetStatus",
			Handler:    _VMSetSvc_UpdateVMSetStatus_Handler,
		},
		{
			MethodName: "DeleteVMSet",
			Handler:    _VMSetSvc_DeleteVMSet_Handler,
		},
		{
			MethodName: "DeleteCollectionVMSet",
			Handler:    _VMSetSvc_DeleteCollectionVMSet_Handler,
		},
		{
			MethodName: "ListVMSet",
			Handler:    _VMSetSvc_ListVMSet_Handler,
		},
		{
			MethodName: "AddToWorkqueue",
			Handler:    _VMSetSvc_AddToWorkqueue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vmset/virtualmachineset.proto",
}

VMSetSvc_ServiceDesc is the grpc.ServiceDesc for VMSetSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVMSetSvcServer

func RegisterVMSetSvcServer(s grpc.ServiceRegistrar, srv VMSetSvcServer)

Types

type CreateVMSetRequest

type CreateVMSetRequest struct {
	Id                  string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Count               uint32            `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Environment         string            `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"`
	VmTemplate          string            `protobuf:"bytes,4,opt,name=vm_template,json=vmTemplate,proto3" json:"vm_template,omitempty"`
	BaseName            string            `protobuf:"bytes,5,opt,name=base_name,json=baseName,proto3" json:"base_name,omitempty"`
	RestrictedBind      bool              `protobuf:"varint,6,opt,name=restricted_bind,json=restrictedBind,proto3" json:"restricted_bind,omitempty"`
	RestrictedBindValue string            `protobuf:"bytes,7,opt,name=restricted_bind_value,json=restrictedBindValue,proto3" json:"restricted_bind_value,omitempty"`
	SeName              string            `protobuf:"bytes,8,opt,name=se_name,json=seName,proto3" json:"se_name,omitempty"`
	SeUid               string            `protobuf:"bytes,9,opt,name=se_uid,json=seUid,proto3" json:"se_uid,omitempty"`
	Labels              map[string]string `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateVMSetRequest) Descriptor deprecated

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

Deprecated: Use CreateVMSetRequest.ProtoReflect.Descriptor instead.

func (*CreateVMSetRequest) GetBaseName

func (x *CreateVMSetRequest) GetBaseName() string

func (*CreateVMSetRequest) GetCount

func (x *CreateVMSetRequest) GetCount() uint32

func (*CreateVMSetRequest) GetEnvironment

func (x *CreateVMSetRequest) GetEnvironment() string

func (*CreateVMSetRequest) GetId

func (x *CreateVMSetRequest) GetId() string

func (*CreateVMSetRequest) GetLabels

func (x *CreateVMSetRequest) GetLabels() map[string]string

func (*CreateVMSetRequest) GetRestrictedBind

func (x *CreateVMSetRequest) GetRestrictedBind() bool

func (*CreateVMSetRequest) GetRestrictedBindValue

func (x *CreateVMSetRequest) GetRestrictedBindValue() string

func (*CreateVMSetRequest) GetSeName

func (x *CreateVMSetRequest) GetSeName() string

func (*CreateVMSetRequest) GetSeUid

func (x *CreateVMSetRequest) GetSeUid() string

func (*CreateVMSetRequest) GetVmTemplate

func (x *CreateVMSetRequest) GetVmTemplate() string

func (*CreateVMSetRequest) ProtoMessage

func (*CreateVMSetRequest) ProtoMessage()

func (*CreateVMSetRequest) ProtoReflect

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

func (*CreateVMSetRequest) Reset

func (x *CreateVMSetRequest) Reset()

func (*CreateVMSetRequest) String

func (x *CreateVMSetRequest) String() string

type ListVMSetsResponse

type ListVMSetsResponse struct {
	Vmsets []*VMSet `protobuf:"bytes,1,rep,name=vmsets,proto3" json:"vmsets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVMSetsResponse) Descriptor deprecated

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

Deprecated: Use ListVMSetsResponse.ProtoReflect.Descriptor instead.

func (*ListVMSetsResponse) GetVmsets

func (x *ListVMSetsResponse) GetVmsets() []*VMSet

func (*ListVMSetsResponse) ProtoMessage

func (*ListVMSetsResponse) ProtoMessage()

func (*ListVMSetsResponse) ProtoReflect

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

func (*ListVMSetsResponse) Reset

func (x *ListVMSetsResponse) Reset()

func (*ListVMSetsResponse) String

func (x *ListVMSetsResponse) String() string

type UnimplementedVMSetSvcServer

type UnimplementedVMSetSvcServer struct {
}

UnimplementedVMSetSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedVMSetSvcServer) AddToWorkqueue

func (UnimplementedVMSetSvcServer) CreateVMSet

func (UnimplementedVMSetSvcServer) DeleteCollectionVMSet

func (UnimplementedVMSetSvcServer) DeleteVMSet

func (UnimplementedVMSetSvcServer) GetVMSet

func (UnimplementedVMSetSvcServer) ListVMSet

func (UnimplementedVMSetSvcServer) UpdateVMSet

func (UnimplementedVMSetSvcServer) UpdateVMSetStatus

type UnsafeVMSetSvcServer

type UnsafeVMSetSvcServer interface {
	// contains filtered or unexported methods
}

UnsafeVMSetSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VMSetSvcServer will result in compilation errors.

type UpdateVMSetRequest

type UpdateVMSetRequest struct {
	Id             string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Count          *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=count,proto3" json:"count,omitempty"`
	Environment    string                  `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"`
	VmTemplate     string                  `protobuf:"bytes,4,opt,name=vm_template,json=vmTemplate,proto3" json:"vm_template,omitempty"`
	RestrictedBind *wrapperspb.BoolValue   `protobuf:"bytes,5,opt,name=restricted_bind,json=restrictedBind,proto3" json:"restricted_bind,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVMSetRequest) Descriptor deprecated

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

Deprecated: Use UpdateVMSetRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMSetRequest) GetCount

func (x *UpdateVMSetRequest) GetCount() *wrapperspb.UInt32Value

func (*UpdateVMSetRequest) GetEnvironment

func (x *UpdateVMSetRequest) GetEnvironment() string

func (*UpdateVMSetRequest) GetId

func (x *UpdateVMSetRequest) GetId() string

func (*UpdateVMSetRequest) GetRestrictedBind

func (x *UpdateVMSetRequest) GetRestrictedBind() *wrapperspb.BoolValue

func (*UpdateVMSetRequest) GetVmTemplate

func (x *UpdateVMSetRequest) GetVmTemplate() string

func (*UpdateVMSetRequest) ProtoMessage

func (*UpdateVMSetRequest) ProtoMessage()

func (*UpdateVMSetRequest) ProtoReflect

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

func (*UpdateVMSetRequest) Reset

func (x *UpdateVMSetRequest) Reset()

func (*UpdateVMSetRequest) String

func (x *UpdateVMSetRequest) String() string

type UpdateVMSetStatusRequest

type UpdateVMSetStatusRequest struct {
	Id          string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Machines    []*VMProvision          `protobuf:"bytes,2,rep,name=machines,proto3" json:"machines,omitempty"`
	Available   *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=available,proto3" json:"available,omitempty"`
	Provisioned *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=provisioned,proto3" json:"provisioned,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVMSetStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateVMSetStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateVMSetStatusRequest) GetAvailable

func (x *UpdateVMSetStatusRequest) GetAvailable() *wrapperspb.UInt32Value

func (*UpdateVMSetStatusRequest) GetId

func (x *UpdateVMSetStatusRequest) GetId() string

func (*UpdateVMSetStatusRequest) GetMachines

func (x *UpdateVMSetStatusRequest) GetMachines() []*VMProvision

func (*UpdateVMSetStatusRequest) GetProvisioned

func (x *UpdateVMSetStatusRequest) GetProvisioned() *wrapperspb.UInt32Value

func (*UpdateVMSetStatusRequest) ProtoMessage

func (*UpdateVMSetStatusRequest) ProtoMessage()

func (*UpdateVMSetStatusRequest) ProtoReflect

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

func (*UpdateVMSetStatusRequest) Reset

func (x *UpdateVMSetStatusRequest) Reset()

func (*UpdateVMSetStatusRequest) String

func (x *UpdateVMSetStatusRequest) String() string

type VMProvision

type VMProvision struct {
	VmName   string `protobuf:"bytes,1,opt,name=vm_name,json=vmName,proto3" json:"vm_name,omitempty"`
	TfcState string `protobuf:"bytes,2,opt,name=tfc_state,json=tfcState,proto3" json:"tfc_state,omitempty"`
	TfcCm    string `protobuf:"bytes,3,opt,name=tfc_cm,json=tfcCm,proto3" json:"tfc_cm,omitempty"`
	// contains filtered or unexported fields
}

func (*VMProvision) Descriptor deprecated

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

Deprecated: Use VMProvision.ProtoReflect.Descriptor instead.

func (*VMProvision) GetTfcCm

func (x *VMProvision) GetTfcCm() string

func (*VMProvision) GetTfcState

func (x *VMProvision) GetTfcState() string

func (*VMProvision) GetVmName

func (x *VMProvision) GetVmName() string

func (*VMProvision) ProtoMessage

func (*VMProvision) ProtoMessage()

func (*VMProvision) ProtoReflect

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

func (*VMProvision) Reset

func (x *VMProvision) Reset()

func (*VMProvision) String

func (x *VMProvision) String() string

type VMSet

type VMSet 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"`
	Count               uint32            `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Environment         string            `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"`
	VmTemplate          string            `protobuf:"bytes,5,opt,name=vm_template,json=vmTemplate,proto3" json:"vm_template,omitempty"`
	BaseName            string            `protobuf:"bytes,6,opt,name=base_name,json=baseName,proto3" json:"base_name,omitempty"`
	RestrictedBind      bool              `protobuf:"varint,7,opt,name=restricted_bind,json=restrictedBind,proto3" json:"restricted_bind,omitempty"`
	RestrictedBindValue string            `protobuf:"bytes,8,opt,name=restricted_bind_value,json=restrictedBindValue,proto3" json:"restricted_bind_value,omitempty"`
	Status              *VMSetStatus      `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	Labels              map[string]string `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VMSet) Descriptor deprecated

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

Deprecated: Use VMSet.ProtoReflect.Descriptor instead.

func (*VMSet) GetBaseName

func (x *VMSet) GetBaseName() string

func (*VMSet) GetCount

func (x *VMSet) GetCount() uint32

func (*VMSet) GetEnvironment

func (x *VMSet) GetEnvironment() string

func (*VMSet) GetId

func (x *VMSet) GetId() string

func (*VMSet) GetLabels

func (x *VMSet) GetLabels() map[string]string

func (*VMSet) GetRestrictedBind

func (x *VMSet) GetRestrictedBind() bool

func (*VMSet) GetRestrictedBindValue

func (x *VMSet) GetRestrictedBindValue() string

func (*VMSet) GetStatus

func (x *VMSet) GetStatus() *VMSetStatus

func (*VMSet) GetUid

func (x *VMSet) GetUid() string

func (*VMSet) GetVmTemplate

func (x *VMSet) GetVmTemplate() string

func (*VMSet) ProtoMessage

func (*VMSet) ProtoMessage()

func (*VMSet) ProtoReflect

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

func (*VMSet) Reset

func (x *VMSet) Reset()

func (*VMSet) String

func (x *VMSet) String() string

type VMSetStatus

type VMSetStatus struct {
	Machines    []*VMProvision `protobuf:"bytes,1,rep,name=machines,proto3" json:"machines,omitempty"`
	Available   uint32         `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"`
	Provisioned uint32         `protobuf:"varint,3,opt,name=provisioned,proto3" json:"provisioned,omitempty"`
	// contains filtered or unexported fields
}

func (*VMSetStatus) Descriptor deprecated

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

Deprecated: Use VMSetStatus.ProtoReflect.Descriptor instead.

func (*VMSetStatus) GetAvailable

func (x *VMSetStatus) GetAvailable() uint32

func (*VMSetStatus) GetMachines

func (x *VMSetStatus) GetMachines() []*VMProvision

func (*VMSetStatus) GetProvisioned

func (x *VMSetStatus) GetProvisioned() uint32

func (*VMSetStatus) ProtoMessage

func (*VMSetStatus) ProtoMessage()

func (*VMSetStatus) ProtoReflect

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

func (*VMSetStatus) Reset

func (x *VMSetStatus) Reset()

func (*VMSetStatus) String

func (x *VMSetStatus) String() string

type VMSetSvcClient

type VMSetSvcClient interface {
	CreateVMSet(ctx context.Context, in *CreateVMSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetVMSet(ctx context.Context, in *general.GetRequest, opts ...grpc.CallOption) (*VMSet, error)
	UpdateVMSet(ctx context.Context, in *UpdateVMSetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	UpdateVMSetStatus(ctx context.Context, in *UpdateVMSetStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteVMSet(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteCollectionVMSet(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListVMSet(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*ListVMSetsResponse, error)
	AddToWorkqueue(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

VMSetSvcClient is the client API for VMSetSvc 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 NewVMSetSvcClient

func NewVMSetSvcClient(cc grpc.ClientConnInterface) VMSetSvcClient

type VMSetSvcServer

type VMSetSvcServer interface {
	CreateVMSet(context.Context, *CreateVMSetRequest) (*emptypb.Empty, error)
	GetVMSet(context.Context, *general.GetRequest) (*VMSet, error)
	UpdateVMSet(context.Context, *UpdateVMSetRequest) (*emptypb.Empty, error)
	UpdateVMSetStatus(context.Context, *UpdateVMSetStatusRequest) (*emptypb.Empty, error)
	DeleteVMSet(context.Context, *general.ResourceId) (*emptypb.Empty, error)
	DeleteCollectionVMSet(context.Context, *general.ListOptions) (*emptypb.Empty, error)
	ListVMSet(context.Context, *general.ListOptions) (*ListVMSetsResponse, error)
	AddToWorkqueue(context.Context, *general.ResourceId) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

VMSetSvcServer is the server API for VMSetSvc service. All implementations must embed UnimplementedVMSetSvcServer for forward compatibility

Jump to

Keyboard shortcuts

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