proto

package
v0.0.16-r04 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoCloudState_name = map[int32]string{
		0: "INIT",
		1: "UNKNOWN",
		2: "STOPPED",
		3: "RUNNING",
		4: "FAILURE",
		5: "DELETED",
		6: "SUSPENDED",
		7: "OPERATION",
	}
	NoCloudState_value = map[string]int32{
		"INIT":      0,
		"UNKNOWN":   1,
		"STOPPED":   2,
		"RUNNING":   3,
		"FAILURE":   4,
		"DELETED":   5,
		"SUSPENDED": 6,
		"OPERATION": 7,
	}
)

Enum value maps for NoCloudState.

View Source
var File_pkg_states_proto_states_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NoCloudState

type NoCloudState int32
const (
	NoCloudState_INIT      NoCloudState = 0
	NoCloudState_UNKNOWN   NoCloudState = 1
	NoCloudState_STOPPED   NoCloudState = 2
	NoCloudState_RUNNING   NoCloudState = 3
	NoCloudState_FAILURE   NoCloudState = 4
	NoCloudState_DELETED   NoCloudState = 5
	NoCloudState_SUSPENDED NoCloudState = 6
	NoCloudState_OPERATION NoCloudState = 7
)

func (NoCloudState) Descriptor

func (NoCloudState) Enum

func (x NoCloudState) Enum() *NoCloudState

func (NoCloudState) EnumDescriptor deprecated

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

Deprecated: Use NoCloudState.Descriptor instead.

func (NoCloudState) Number

func (NoCloudState) String

func (x NoCloudState) String() string

func (NoCloudState) Type

type ObjectState

type ObjectState struct {
	Uuid  string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	State *State `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectState) Descriptor deprecated

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

Deprecated: Use ObjectState.ProtoReflect.Descriptor instead.

func (*ObjectState) GetState

func (x *ObjectState) GetState() *State

func (*ObjectState) GetUuid

func (x *ObjectState) GetUuid() string

func (*ObjectState) ProtoMessage

func (*ObjectState) ProtoMessage()

func (*ObjectState) ProtoReflect

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

func (*ObjectState) Reset

func (x *ObjectState) Reset()

func (*ObjectState) String

func (x *ObjectState) String() string

type State

type State struct {
	State NoCloudState               `protobuf:"varint,1,opt,name=state,proto3,enum=nocloud.states.NoCloudState" json:"state,omitempty"` // NoCloud Instance State
	Meta  map[string]*structpb.Value ``                                                                                                  // Driver(Provider/Hypervisor) State data
	/* 149-byte string literal not displayed */
	Ts *int64 `protobuf:"varint,3,opt,name=ts,proto3,oneof" json:"ts,omitempty"`
	// contains filtered or unexported fields
}

func (*State) Descriptor deprecated

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

Deprecated: Use State.ProtoReflect.Descriptor instead.

func (*State) GetMeta

func (x *State) GetMeta() map[string]*structpb.Value

func (*State) GetState

func (x *State) GetState() NoCloudState

func (*State) GetTs

func (x *State) GetTs() int64

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) ProtoReflect

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

func (*State) Reset

func (x *State) Reset()

func (*State) String

func (x *State) String() string

Jump to

Keyboard shortcuts

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