pcvmv1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_HEALTHY",
		2: "STATE_WARNING",
		3: "STATE_ERROR",
	}
	State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_HEALTHY":     1,
		"STATE_WARNING":     2,
		"STATE_ERROR":       3,
	}
)

Enum value maps for State.

View Source
var (
	Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "OPERATION_CREATING",
		2: "OPERATION_ACTIVE",
		3: "OPERATION_UPDATING",
		4: "OPERATION_DELETED",
		5: "OPERATION_ERROR",
	}
	Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"OPERATION_CREATING":    1,
		"OPERATION_ACTIVE":      2,
		"OPERATION_UPDATING":    3,
		"OPERATION_DELETED":     4,
		"OPERATION_ERROR":       5,
	}
)

Enum value maps for Operation.

View Source
var (
	Size_name = map[int32]string{
		0: "SIZE_UNSPECIFIED",
		1: "SIZE_SMALL",
		2: "SIZE_MEDIUM",
		3: "SIZE_LARGE",
	}
	Size_value = map[string]int32{
		"SIZE_UNSPECIFIED": 0,
		"SIZE_SMALL":       1,
		"SIZE_MEDIUM":      2,
		"SIZE_LARGE":       3,
	}
)

Enum value maps for Size.

View Source
var File_fits_api_pcvm_v1_pcvm_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Operation

type Operation int32

The operation of the VM.

const (
	// OPERATION_UNSPECIFIED is not specified.
	Operation_OPERATION_UNSPECIFIED Operation = 0
	// OPERATION_CREATING: the VM hostname is reserved and provisioning has started.
	Operation_OPERATION_CREATING Operation = 1
	// OPERATION_ACTIVE: the VM is active.
	Operation_OPERATION_ACTIVE Operation = 2
	// OPERATION_UPDATING: there is an ongoing operation for the VM.
	Operation_OPERATION_UPDATING Operation = 3
	// OPERATION_DELETED: the VM is deleted.
	Operation_OPERATION_DELETED Operation = 4
	// OPERATION_ERROR: the
	Operation_OPERATION_ERROR Operation = 5
)

func (Operation) Descriptor

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String

func (x Operation) String() string

func (Operation) Type

type PublicCloudVM

type PublicCloudVM struct {

	// UUID of this VM.
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// Metadata for this VM including labels.
	Meta *v1.Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// Name of the VM.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Tenant this VM belongs to.
	Tenant string `protobuf:"bytes,4,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,5,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// Size of the VM.
	Size Size `protobuf:"varint,6,opt,name=size,proto3,enum=fits.api.pcvm.v1.Size" json:"size,omitempty"`
	// The status of the VM.
	Status *Status `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

The VM resource.

func (*PublicCloudVM) Descriptor deprecated

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

Deprecated: Use PublicCloudVM.ProtoReflect.Descriptor instead.

func (*PublicCloudVM) GetMeta

func (x *PublicCloudVM) GetMeta() *v1.Meta

func (*PublicCloudVM) GetName

func (x *PublicCloudVM) GetName() string

func (*PublicCloudVM) GetProjectUuid

func (x *PublicCloudVM) GetProjectUuid() string

func (*PublicCloudVM) GetSize

func (x *PublicCloudVM) GetSize() Size

func (*PublicCloudVM) GetStatus

func (x *PublicCloudVM) GetStatus() *Status

func (*PublicCloudVM) GetTenant

func (x *PublicCloudVM) GetTenant() string

func (*PublicCloudVM) GetUuid

func (x *PublicCloudVM) GetUuid() string

func (*PublicCloudVM) ProtoMessage

func (*PublicCloudVM) ProtoMessage()

func (*PublicCloudVM) ProtoReflect

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

func (*PublicCloudVM) Reset

func (x *PublicCloudVM) Reset()

func (*PublicCloudVM) String

func (x *PublicCloudVM) String() string

type PublicCloudVMQuery

type PublicCloudVMQuery struct {

	// The name of the VMs.
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// The labels each VM should have.
	Labels *v1.Labels `protobuf:"bytes,2,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

The VM query parameters to filter the list of results.

func (*PublicCloudVMQuery) Descriptor deprecated

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

Deprecated: Use PublicCloudVMQuery.ProtoReflect.Descriptor instead.

func (*PublicCloudVMQuery) GetLabels

func (x *PublicCloudVMQuery) GetLabels() *v1.Labels

func (*PublicCloudVMQuery) GetName

func (x *PublicCloudVMQuery) GetName() string

func (*PublicCloudVMQuery) ProtoMessage

func (*PublicCloudVMQuery) ProtoMessage()

func (*PublicCloudVMQuery) ProtoReflect

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

func (*PublicCloudVMQuery) Reset

func (x *PublicCloudVMQuery) Reset()

func (*PublicCloudVMQuery) String

func (x *PublicCloudVMQuery) String() string

type PublicCloudVMServiceCreateRequest

type PublicCloudVMServiceCreateRequest struct {

	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,1,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// Name of the VM.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Labels for this VM.
	Labels *v1.Labels `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"`
	// Size of the VM.
	Size Size `protobuf:"varint,4,opt,name=size,proto3,enum=fits.api.pcvm.v1.Size" json:"size,omitempty"`
	// contains filtered or unexported fields
}

The request to create a new VM.

func (*PublicCloudVMServiceCreateRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceCreateRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceCreateRequest) GetLabels

func (*PublicCloudVMServiceCreateRequest) GetName

func (*PublicCloudVMServiceCreateRequest) GetProjectUuid

func (x *PublicCloudVMServiceCreateRequest) GetProjectUuid() string

func (*PublicCloudVMServiceCreateRequest) GetSize

func (*PublicCloudVMServiceCreateRequest) ProtoMessage

func (*PublicCloudVMServiceCreateRequest) ProtoMessage()

func (*PublicCloudVMServiceCreateRequest) ProtoReflect

func (*PublicCloudVMServiceCreateRequest) Reset

func (*PublicCloudVMServiceCreateRequest) String

type PublicCloudVMServiceCreateResponse

type PublicCloudVMServiceCreateResponse struct {

	// The VM just created.
	Vm *PublicCloudVM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
	// contains filtered or unexported fields
}

The response when creating a new VM.

func (*PublicCloudVMServiceCreateResponse) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceCreateResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceCreateResponse) GetVm

func (*PublicCloudVMServiceCreateResponse) ProtoMessage

func (*PublicCloudVMServiceCreateResponse) ProtoMessage()

func (*PublicCloudVMServiceCreateResponse) ProtoReflect

func (*PublicCloudVMServiceCreateResponse) Reset

func (*PublicCloudVMServiceCreateResponse) String

type PublicCloudVMServiceDeleteRequest

type PublicCloudVMServiceDeleteRequest struct {

	// UUID of the VM to delete.
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// contains filtered or unexported fields
}

The request to delete a VM.

func (*PublicCloudVMServiceDeleteRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceDeleteRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceDeleteRequest) GetProjectUuid

func (x *PublicCloudVMServiceDeleteRequest) GetProjectUuid() string

func (*PublicCloudVMServiceDeleteRequest) GetUuid

func (*PublicCloudVMServiceDeleteRequest) ProtoMessage

func (*PublicCloudVMServiceDeleteRequest) ProtoMessage()

func (*PublicCloudVMServiceDeleteRequest) ProtoReflect

func (*PublicCloudVMServiceDeleteRequest) Reset

func (*PublicCloudVMServiceDeleteRequest) String

type PublicCloudVMServiceDeleteResponse

type PublicCloudVMServiceDeleteResponse struct {
	// contains filtered or unexported fields
}

The response after deleting a VM. The VM is deleted immediately will not be able to be requested.

func (*PublicCloudVMServiceDeleteResponse) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceDeleteResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceDeleteResponse) ProtoMessage

func (*PublicCloudVMServiceDeleteResponse) ProtoMessage()

func (*PublicCloudVMServiceDeleteResponse) ProtoReflect

func (*PublicCloudVMServiceDeleteResponse) Reset

func (*PublicCloudVMServiceDeleteResponse) String

type PublicCloudVMServiceGetRequest

type PublicCloudVMServiceGetRequest struct {

	// UUID of the VM to get.
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// contains filtered or unexported fields
}

Request to get a VM by UUID.

func (*PublicCloudVMServiceGetRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceGetRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceGetRequest) GetProjectUuid

func (x *PublicCloudVMServiceGetRequest) GetProjectUuid() string

func (*PublicCloudVMServiceGetRequest) GetUuid

func (*PublicCloudVMServiceGetRequest) ProtoMessage

func (*PublicCloudVMServiceGetRequest) ProtoMessage()

func (*PublicCloudVMServiceGetRequest) ProtoReflect

func (*PublicCloudVMServiceGetRequest) Reset

func (x *PublicCloudVMServiceGetRequest) Reset()

func (*PublicCloudVMServiceGetRequest) String

type PublicCloudVMServiceGetResponse

type PublicCloudVMServiceGetResponse struct {

	// The VM.
	Vm *PublicCloudVM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
	// contains filtered or unexported fields
}

Response containing the requested VM.

func (*PublicCloudVMServiceGetResponse) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceGetResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceGetResponse) GetVm

func (*PublicCloudVMServiceGetResponse) ProtoMessage

func (*PublicCloudVMServiceGetResponse) ProtoMessage()

func (*PublicCloudVMServiceGetResponse) ProtoReflect

func (*PublicCloudVMServiceGetResponse) Reset

func (*PublicCloudVMServiceGetResponse) String

type PublicCloudVMServiceListRequest

type PublicCloudVMServiceListRequest struct {

	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,1,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// Paging details for the list request.
	Paging *v1.Paging `protobuf:"bytes,2,opt,name=paging,proto3" json:"paging,omitempty"`
	// Query defines how to filter the VMs.
	Query *PublicCloudVMQuery `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

The request to list and filter VMs.

func (*PublicCloudVMServiceListRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceListRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceListRequest) GetPaging

func (x *PublicCloudVMServiceListRequest) GetPaging() *v1.Paging

func (*PublicCloudVMServiceListRequest) GetProjectUuid

func (x *PublicCloudVMServiceListRequest) GetProjectUuid() string

func (*PublicCloudVMServiceListRequest) GetQuery

func (*PublicCloudVMServiceListRequest) ProtoMessage

func (*PublicCloudVMServiceListRequest) ProtoMessage()

func (*PublicCloudVMServiceListRequest) ProtoReflect

func (*PublicCloudVMServiceListRequest) Reset

func (*PublicCloudVMServiceListRequest) String

type PublicCloudVMServiceListResponse

type PublicCloudVMServiceListResponse struct {

	// VMs is a list of filtered VMs resources.
	Vms []*PublicCloudVM `protobuf:"bytes,1,rep,name=vms,proto3" json:"vms,omitempty"`
	// contains filtered or unexported fields
}

The response when listing VMs.

func (*PublicCloudVMServiceListResponse) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceListResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceListResponse) GetVms

func (*PublicCloudVMServiceListResponse) ProtoMessage

func (*PublicCloudVMServiceListResponse) ProtoMessage()

func (*PublicCloudVMServiceListResponse) ProtoReflect

func (*PublicCloudVMServiceListResponse) Reset

func (*PublicCloudVMServiceListResponse) String

type PublicCloudVMServiceUpdateRequest

type PublicCloudVMServiceUpdateRequest struct {

	// UUID of the VM to update.
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// UUID of the project this VM belongs to.
	ProjectUuid string `protobuf:"bytes,2,opt,name=project_uuid,json=projectUuid,proto3" json:"project_uuid,omitempty"`
	// UpdateMeta contains the timestamp and strategy to be used in this update request.
	UpdateMeta *v1.UpdateMeta `protobuf:"bytes,3,opt,name=update_meta,json=updateMeta,proto3" json:"update_meta,omitempty"`
	// The labels to update.
	Labels *v1.UpdateLabels `protobuf:"bytes,4,opt,name=labels,proto3,oneof" json:"labels,omitempty"`
	// Name of the VM.
	Name *string `protobuf:"bytes,5,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Size of the VM. The new size must be bigger or equal than before.
	// Downgrades are not possible.
	Size *Size `protobuf:"varint,6,opt,name=size,proto3,enum=fits.api.pcvm.v1.Size,oneof" json:"size,omitempty"`
	// contains filtered or unexported fields
}

The request to update a VM.

func (*PublicCloudVMServiceUpdateRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceUpdateRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceUpdateRequest) GetLabels

func (*PublicCloudVMServiceUpdateRequest) GetName

func (*PublicCloudVMServiceUpdateRequest) GetProjectUuid

func (x *PublicCloudVMServiceUpdateRequest) GetProjectUuid() string

func (*PublicCloudVMServiceUpdateRequest) GetSize

func (*PublicCloudVMServiceUpdateRequest) GetUpdateMeta

func (x *PublicCloudVMServiceUpdateRequest) GetUpdateMeta() *v1.UpdateMeta

func (*PublicCloudVMServiceUpdateRequest) GetUuid

func (*PublicCloudVMServiceUpdateRequest) ProtoMessage

func (*PublicCloudVMServiceUpdateRequest) ProtoMessage()

func (*PublicCloudVMServiceUpdateRequest) ProtoReflect

func (*PublicCloudVMServiceUpdateRequest) Reset

func (*PublicCloudVMServiceUpdateRequest) String

type PublicCloudVMServiceUpdateResponse

type PublicCloudVMServiceUpdateResponse struct {

	// The updated VM.
	Vm *PublicCloudVM `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
	// contains filtered or unexported fields
}

The response when updating a VM.

func (*PublicCloudVMServiceUpdateResponse) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceUpdateResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceUpdateResponse) GetVm

func (*PublicCloudVMServiceUpdateResponse) ProtoMessage

func (*PublicCloudVMServiceUpdateResponse) ProtoMessage()

func (*PublicCloudVMServiceUpdateResponse) ProtoReflect

func (*PublicCloudVMServiceUpdateResponse) Reset

func (*PublicCloudVMServiceUpdateResponse) String

type PublicCloudVMServiceValidateCreateRequest

type PublicCloudVMServiceValidateCreateRequest struct {

	// The create request to validate.
	Create *PublicCloudVMServiceCreateRequest `protobuf:"bytes,1,opt,name=create,proto3" json:"create,omitempty"`
	// contains filtered or unexported fields
}

Request to validate a VM create without creating anything.

func (*PublicCloudVMServiceValidateCreateRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceValidateCreateRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceValidateCreateRequest) GetCreate

func (*PublicCloudVMServiceValidateCreateRequest) GetProjectUuid added in v0.6.0

GetProjectUuid returns the project of the wrapped create request so the request satisfies the project-scope resolution used by authorization.

func (*PublicCloudVMServiceValidateCreateRequest) ProtoMessage

func (*PublicCloudVMServiceValidateCreateRequest) ProtoReflect

func (*PublicCloudVMServiceValidateCreateRequest) Reset

func (*PublicCloudVMServiceValidateCreateRequest) String

type PublicCloudVMServiceValidateCreateResponse

type PublicCloudVMServiceValidateCreateResponse struct {
	// contains filtered or unexported fields
}

Response for ValidateCreate; violations are returned as an InvalidArgument error.

func (*PublicCloudVMServiceValidateCreateResponse) Descriptor deprecated

Deprecated: Use PublicCloudVMServiceValidateCreateResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceValidateCreateResponse) ProtoMessage

func (*PublicCloudVMServiceValidateCreateResponse) ProtoReflect

func (*PublicCloudVMServiceValidateCreateResponse) Reset

func (*PublicCloudVMServiceValidateCreateResponse) String

type PublicCloudVMServiceValidateUpdateRequest

type PublicCloudVMServiceValidateUpdateRequest struct {

	// The update request to validate.
	Update *PublicCloudVMServiceUpdateRequest `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
	// contains filtered or unexported fields
}

Request to validate a VM update without updating anything.

func (*PublicCloudVMServiceValidateUpdateRequest) Descriptor deprecated

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

Deprecated: Use PublicCloudVMServiceValidateUpdateRequest.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceValidateUpdateRequest) GetProjectUuid added in v0.6.0

GetProjectUuid returns the project of the wrapped update request so the request satisfies the project-scope resolution used by authorization.

func (*PublicCloudVMServiceValidateUpdateRequest) GetUpdate

func (*PublicCloudVMServiceValidateUpdateRequest) ProtoMessage

func (*PublicCloudVMServiceValidateUpdateRequest) ProtoReflect

func (*PublicCloudVMServiceValidateUpdateRequest) Reset

func (*PublicCloudVMServiceValidateUpdateRequest) String

type PublicCloudVMServiceValidateUpdateResponse

type PublicCloudVMServiceValidateUpdateResponse struct {
	// contains filtered or unexported fields
}

Response for ValidateUpdate; violations are returned as an InvalidArgument error.

func (*PublicCloudVMServiceValidateUpdateResponse) Descriptor deprecated

Deprecated: Use PublicCloudVMServiceValidateUpdateResponse.ProtoReflect.Descriptor instead.

func (*PublicCloudVMServiceValidateUpdateResponse) ProtoMessage

func (*PublicCloudVMServiceValidateUpdateResponse) ProtoReflect

func (*PublicCloudVMServiceValidateUpdateResponse) Reset

func (*PublicCloudVMServiceValidateUpdateResponse) String

type Size

type Size int32

Size specifies the size of the VM machine

const (
	// SIZE_UNSPECIFIED is not specified.
	Size_SIZE_UNSPECIFIED Size = 0
	// SIZE_SMALL: small machine size.
	Size_SIZE_SMALL Size = 1
	// SIZE_MEDIUM: medium machine size.
	Size_SIZE_MEDIUM Size = 2
	// SIZE_LARGE: large machine size.
	Size_SIZE_LARGE Size = 3
)

func (Size) Descriptor

func (Size) Descriptor() protoreflect.EnumDescriptor

func (Size) Enum

func (x Size) Enum() *Size

func (Size) EnumDescriptor deprecated

func (Size) EnumDescriptor() ([]byte, []int)

Deprecated: Use Size.Descriptor instead.

func (Size) Number

func (x Size) Number() protoreflect.EnumNumber

func (Size) String

func (x Size) String() string

func (Size) Type

func (Size) Type() protoreflect.EnumType

type State

type State int32

The health state of the VM.

const (
	// STATE_UNSPECIFIED is not specified.
	State_STATE_UNSPECIFIED State = 0
	// STATE_HEALTHY: the VM is healthy.
	State_STATE_HEALTHY State = 1
	// STATE_HEALTHY: there are some health warnings for this VM.
	State_STATE_WARNING State = 2
	// STATE_ERROR: the VM is unhealthy.
	State_STATE_ERROR State = 3
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

type Status

type Status struct {

	// The state of the VM status.
	State State `protobuf:"varint,1,opt,name=state,proto3,enum=fits.api.pcvm.v1.State" json:"state,omitempty"`
	// The info details of the current state.
	Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// The current operation running on the VM.
	Operation Operation `protobuf:"varint,3,opt,name=operation,proto3,enum=fits.api.pcvm.v1.Operation" json:"operation,omitempty"`
	// contains filtered or unexported fields
}

The Status of a VM.

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetInfo

func (x *Status) GetInfo() string

func (*Status) GetOperation

func (x *Status) GetOperation() Operation

func (*Status) GetState

func (x *Status) GetState() State

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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