ctl

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceStatus_name = map[int32]string{
		0: "ANY",
		1: "STOPPED",
		2: "STARTING",
		3: "STOPPING",
		4: "STARTED",
	}
	ServiceStatus_value = map[string]int32{
		"ANY":      0,
		"STOPPED":  1,
		"STARTING": 2,
		"STOPPING": 3,
		"STARTED":  4,
	}
)

Enum value maps for ServiceStatus.

View Source
var (
	ServiceCommand_name = map[int32]string{
		0: "START",
		1: "STOP",
	}
	ServiceCommand_value = map[string]int32{
		"START": 0,
		"STOP":  1,
	}
)

Enum value maps for ServiceCommand.

View Source
var File_cells_ctl_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Peer

type Peer struct {
	Id       string            `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Address  string            `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"`
	Port     int32             `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAddress

func (x *Peer) GetAddress() string

func (*Peer) GetId

func (x *Peer) GetId() string

func (*Peer) GetMetadata

func (x *Peer) GetMetadata() map[string]string

func (*Peer) GetPort

func (x *Peer) GetPort() int32

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

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

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

func (*Peer) Validate

func (this *Peer) Validate() error

type Service

type Service struct {
	Name         string            `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Version      string            `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
	Description  string            `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Tag          string            `protobuf:"bytes,4,opt,name=Tag,proto3" json:"Tag,omitempty"`
	Controllable bool              `protobuf:"varint,5,opt,name=Controllable,proto3" json:"Controllable,omitempty"`
	Status       ServiceStatus     `protobuf:"varint,7,opt,name=Status,proto3,enum=ctl.ServiceStatus" json:"Status,omitempty"`
	RunningPeers []*Peer           `protobuf:"bytes,6,rep,name=RunningPeers,proto3" json:"RunningPeers,omitempty"`
	Metadata     map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetControllable

func (x *Service) GetControllable() bool

func (*Service) GetDescription

func (x *Service) GetDescription() string

func (*Service) GetMetadata added in v4.0.1

func (x *Service) GetMetadata() map[string]string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetRunningPeers

func (x *Service) GetRunningPeers() []*Peer

func (*Service) GetStatus

func (x *Service) GetStatus() ServiceStatus

func (*Service) GetTag

func (x *Service) GetTag() string

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) Validate

func (this *Service) Validate() error

type ServiceCommand

type ServiceCommand int32
const (
	ServiceCommand_START ServiceCommand = 0
	ServiceCommand_STOP  ServiceCommand = 1
)

func (ServiceCommand) Descriptor

func (ServiceCommand) Enum

func (x ServiceCommand) Enum() *ServiceCommand

func (ServiceCommand) EnumDescriptor deprecated

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

Deprecated: Use ServiceCommand.Descriptor instead.

func (ServiceCommand) Number

func (ServiceCommand) String

func (x ServiceCommand) String() string

func (ServiceCommand) Type

type ServiceStatus

type ServiceStatus int32
const (
	ServiceStatus_ANY      ServiceStatus = 0
	ServiceStatus_STOPPED  ServiceStatus = 1
	ServiceStatus_STARTING ServiceStatus = 2
	ServiceStatus_STOPPING ServiceStatus = 3
	ServiceStatus_STARTED  ServiceStatus = 4
)

func (ServiceStatus) Descriptor

func (ServiceStatus) Enum

func (x ServiceStatus) Enum() *ServiceStatus

func (ServiceStatus) EnumDescriptor deprecated

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

Deprecated: Use ServiceStatus.Descriptor instead.

func (ServiceStatus) Number

func (ServiceStatus) String

func (x ServiceStatus) String() string

func (ServiceStatus) Type

type ServiceStatusEvent

type ServiceStatusEvent struct {
	SourceNode  string        `protobuf:"bytes,1,opt,name=SourceNode,proto3" json:"SourceNode,omitempty"`
	ServiceName string        `protobuf:"bytes,2,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"`
	Status      ServiceStatus `protobuf:"varint,3,opt,name=Status,proto3,enum=ctl.ServiceStatus" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceStatusEvent) Descriptor deprecated

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

Deprecated: Use ServiceStatusEvent.ProtoReflect.Descriptor instead.

func (*ServiceStatusEvent) GetServiceName

func (x *ServiceStatusEvent) GetServiceName() string

func (*ServiceStatusEvent) GetSourceNode

func (x *ServiceStatusEvent) GetSourceNode() string

func (*ServiceStatusEvent) GetStatus

func (x *ServiceStatusEvent) GetStatus() ServiceStatus

func (*ServiceStatusEvent) ProtoMessage

func (*ServiceStatusEvent) ProtoMessage()

func (*ServiceStatusEvent) ProtoReflect

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

func (*ServiceStatusEvent) Reset

func (x *ServiceStatusEvent) Reset()

func (*ServiceStatusEvent) String

func (x *ServiceStatusEvent) String() string

func (*ServiceStatusEvent) Validate

func (this *ServiceStatusEvent) Validate() error

Jump to

Keyboard shortcuts

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