common

package
v0.0.0-...-bff9524 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "Deploying",
		1: "Running",
		2: "Crashed",
		3: "Stopped",
	}
	Status_value = map[string]int32{
		"Deploying": 0,
		"Running":   1,
		"Crashed":   2,
		"Stopped":   3,
	}
)

Enum value maps for Status.

View Source
var File_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Profiles        []*Profile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	HeartbeatPeriod uint32     `protobuf:"varint,2,opt,name=heartbeat_period,json=heartbeatPeriod,proto3" json:"heartbeat_period,omitempty"`
	// contains filtered or unexported fields
}

func (*Configuration) Descriptor deprecated

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

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetHeartbeatPeriod

func (x *Configuration) GetHeartbeatPeriod() uint32

func (*Configuration) GetProfiles

func (x *Configuration) GetProfiles() []*Profile

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

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

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type Device

type Device struct {
	Id            string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	EnrolStatus   string   `protobuf:"bytes,2,opt,name=enrol_status,json=enrolStatus,proto3" json:"enrol_status,omitempty"`
	EnroledAt     string   `protobuf:"bytes,3,opt,name=enroled_at,json=enroledAt,proto3" json:"enroled_at,omitempty"`
	Registered    bool     `protobuf:"varint,4,opt,name=registered,proto3" json:"registered,omitempty"`
	RegisteredAt  string   `protobuf:"bytes,5,opt,name=registered_at,json=registeredAt,proto3" json:"registered_at,omitempty"`
	CertificateSn string   `protobuf:"bytes,6,opt,name=certificate_sn,json=certificateSn,proto3" json:"certificate_sn,omitempty"`
	Namespace     string   `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Set           string   `protobuf:"bytes,8,opt,name=set,proto3" json:"set,omitempty"`
	Configuration string   `protobuf:"bytes,9,opt,name=configuration,proto3" json:"configuration,omitempty"`
	Manifests     []string `protobuf:"bytes,10,rep,name=manifests,proto3" json:"manifests,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetCertificateSn

func (x *Device) GetCertificateSn() string

func (*Device) GetConfiguration

func (x *Device) GetConfiguration() string

func (*Device) GetEnrolStatus

func (x *Device) GetEnrolStatus() string

func (*Device) GetEnroledAt

func (x *Device) GetEnroledAt() string

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetManifests

func (x *Device) GetManifests() []string

func (*Device) GetNamespace

func (x *Device) GetNamespace() string

func (*Device) GetRegistered

func (x *Device) GetRegistered() bool

func (*Device) GetRegisteredAt

func (x *Device) GetRegisteredAt() string

func (*Device) GetSet

func (x *Device) GetSet() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type Empty

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

An empty message

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type HeartbeatInfo

type HeartbeatInfo struct {
	DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// contains filtered or unexported fields
}

Heartbeat

func (*HeartbeatInfo) Descriptor deprecated

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

Deprecated: Use HeartbeatInfo.ProtoReflect.Descriptor instead.

func (*HeartbeatInfo) GetDeviceId

func (x *HeartbeatInfo) GetDeviceId() string

func (*HeartbeatInfo) ProtoMessage

func (*HeartbeatInfo) ProtoMessage()

func (*HeartbeatInfo) ProtoReflect

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

func (*HeartbeatInfo) Reset

func (x *HeartbeatInfo) Reset()

func (*HeartbeatInfo) String

func (x *HeartbeatInfo) String() string

type Profile

type Profile struct {
	Name       string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Conditions []*ProfileCondition `protobuf:"bytes,2,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetConditions

func (x *Profile) GetConditions() []*ProfileCondition

func (*Profile) GetName

func (x *Profile) GetName() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfileCondition

type ProfileCondition struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileCondition) Descriptor deprecated

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

Deprecated: Use ProfileCondition.ProtoReflect.Descriptor instead.

func (*ProfileCondition) GetExpression

func (x *ProfileCondition) GetExpression() string

func (*ProfileCondition) GetName

func (x *ProfileCondition) GetName() string

func (*ProfileCondition) ProtoMessage

func (*ProfileCondition) ProtoMessage()

func (*ProfileCondition) ProtoReflect

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

func (*ProfileCondition) Reset

func (x *ProfileCondition) Reset()

func (*ProfileCondition) String

func (x *ProfileCondition) String() string

type Set

type Set struct {
	Name          string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace     string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Configuration string   `protobuf:"bytes,3,opt,name=configuration,proto3" json:"configuration,omitempty"`
	Devices       []string `protobuf:"bytes,4,rep,name=devices,proto3" json:"devices,omitempty"`
	Manifests     []string `protobuf:"bytes,5,rep,name=manifests,proto3" json:"manifests,omitempty"`
	// contains filtered or unexported fields
}

func (*Set) Descriptor deprecated

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

Deprecated: Use Set.ProtoReflect.Descriptor instead.

func (*Set) GetConfiguration

func (x *Set) GetConfiguration() string

func (*Set) GetDevices

func (x *Set) GetDevices() []string

func (*Set) GetManifests

func (x *Set) GetManifests() []string

func (*Set) GetName

func (x *Set) GetName() string

func (*Set) GetNamespace

func (x *Set) GetNamespace() string

func (*Set) ProtoMessage

func (*Set) ProtoMessage()

func (*Set) ProtoReflect

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

func (*Set) Reset

func (x *Set) Reset()

func (*Set) String

func (x *Set) String() string

type Status

type Status int32
const (
	Status_Deploying Status = 0
	Status_Running   Status = 1
	Status_Crashed   Status = 2
	Status_Stopped   Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type WorkloadStatus

type WorkloadStatus struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status      Status `protobuf:"varint,2,opt,name=status,proto3,enum=Status" json:"status,omitempty"`
	LastUpdated uint64 `protobuf:"varint,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*WorkloadStatus) Descriptor deprecated

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

Deprecated: Use WorkloadStatus.ProtoReflect.Descriptor instead.

func (*WorkloadStatus) GetLastUpdated

func (x *WorkloadStatus) GetLastUpdated() uint64

func (*WorkloadStatus) GetName

func (x *WorkloadStatus) GetName() string

func (*WorkloadStatus) GetStatus

func (x *WorkloadStatus) GetStatus() Status

func (*WorkloadStatus) ProtoMessage

func (*WorkloadStatus) ProtoMessage()

func (*WorkloadStatus) ProtoReflect

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

func (*WorkloadStatus) Reset

func (x *WorkloadStatus) Reset()

func (*WorkloadStatus) String

func (x *WorkloadStatus) String() string

Jump to

Keyboard shortcuts

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