proto

package
v0.0.0-...-b82b390 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskStarted       = "Started"
	TaskTerminated    = "Terminated"
	TaskRestarting    = "Restarting"
	TaskNotRestarting = "Not-restarting"
	TaskSiblingFailed = "Sibling-failed"
	TaskKilling       = "Task-Killing"
)

Variables

View Source
var (
	ServiceState_State_name = map[int32]string{
		0: "Pending",
		1: "Running",
		2: "Tainted",
		3: "Dead",
	}
	ServiceState_State_value = map[string]int32{
		"Pending": 0,
		"Running": 1,
		"Tainted": 2,
		"Dead":    3,
	}
)

Enum value maps for ServiceState_State.

View Source
var File_proto_structs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	Project string                 `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Service string                 `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	Type    string                 `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Details map[string]string      `` /* 155-byte string literal not displayed */
	Time    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(project, service, typ string) *Event

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) FailsTask

func (t *Event) FailsTask() bool

func (*Event) GetDetails

func (x *Event) GetDetails() map[string]string

func (*Event) GetProject

func (x *Event) GetProject() string

func (*Event) GetService

func (x *Event) GetService() string

func (*Event) GetTime

func (x *Event) GetTime() *timestamppb.Timestamp

func (*Event) GetType

func (x *Event) GetType() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) SetExitCode

func (t *Event) SetExitCode(c int64) *Event

func (*Event) SetFailsTask

func (t *Event) SetFailsTask() *Event

func (*Event) SetSignal

func (t *Event) SetSignal(s int64) *Event

func (*Event) SetTaskFailed

func (t *Event) SetTaskFailed(name string) *Event

func (*Event) String

func (x *Event) String() string

type ExecTaskResult

type ExecTaskResult struct {
	Stdout   string `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
	Stderr   string `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
	ExitCode uint64 `protobuf:"varint,3,opt,name=exitCode,proto3" json:"exitCode,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecTaskResult) Descriptor deprecated

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

Deprecated: Use ExecTaskResult.ProtoReflect.Descriptor instead.

func (*ExecTaskResult) GetExitCode

func (x *ExecTaskResult) GetExitCode() uint64

func (*ExecTaskResult) GetStderr

func (x *ExecTaskResult) GetStderr() string

func (*ExecTaskResult) GetStdout

func (x *ExecTaskResult) GetStdout() string

func (*ExecTaskResult) ProtoMessage

func (*ExecTaskResult) ProtoMessage()

func (*ExecTaskResult) ProtoReflect

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

func (*ExecTaskResult) Reset

func (x *ExecTaskResult) Reset()

func (*ExecTaskResult) String

func (x *ExecTaskResult) String() string

type ExitResult

type ExitResult struct {
	ExitCode uint64 `protobuf:"varint,1,opt,name=exitCode,proto3" json:"exitCode,omitempty"`
	// contains filtered or unexported fields
}

func (*ExitResult) Descriptor deprecated

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

Deprecated: Use ExitResult.ProtoReflect.Descriptor instead.

func (*ExitResult) GetExitCode

func (x *ExitResult) GetExitCode() uint64

func (*ExitResult) ProtoMessage

func (*ExitResult) ProtoMessage()

func (*ExitResult) ProtoReflect

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

func (*ExitResult) Reset

func (x *ExitResult) Reset()

func (*ExitResult) String

func (x *ExitResult) String() string

func (*ExitResult) Successful

func (r *ExitResult) Successful() bool

type Project

type Project struct {
	Name     string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Services map[string]*Service `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetServices

func (x *Project) GetServices() map[string]*Service

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type Project_Ref

type Project_Ref struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Ref) Descriptor deprecated

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

Deprecated: Use Project_Ref.ProtoReflect.Descriptor instead.

func (*Project_Ref) GetId

func (x *Project_Ref) GetId() string

func (*Project_Ref) ProtoMessage

func (*Project_Ref) ProtoMessage()

func (*Project_Ref) ProtoReflect

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

func (*Project_Ref) Reset

func (x *Project_Ref) Reset()

func (*Project_Ref) String

func (x *Project_Ref) String() string

type Service

type Service struct {
	Image         string                 `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	Depends       []string               `protobuf:"bytes,2,rep,name=depends,proto3" json:"depends,omitempty"`
	Env           map[string]string      `` /* 147-byte string literal not displayed */
	Args          []string               `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	Mounts        []*Service_MountConfig `protobuf:"bytes,5,rep,name=mounts,proto3" json:"mounts,omitempty"`
	NetworkMode   string                 `protobuf:"bytes,6,opt,name=networkMode,proto3" json:"networkMode,omitempty"`
	RestartPolicy *Service_RestartPolicy `protobuf:"bytes,7,opt,name=restartPolicy,proto3" json:"restartPolicy,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Copy

func (s *Service) Copy() *Service

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetArgs

func (x *Service) GetArgs() []string

func (*Service) GetDepends

func (x *Service) GetDepends() []string

func (*Service) GetEnv

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

func (*Service) GetImage

func (x *Service) GetImage() string

func (*Service) GetMounts

func (x *Service) GetMounts() []*Service_MountConfig

func (*Service) GetNetworkMode

func (x *Service) GetNetworkMode() string

func (*Service) GetRestartPolicy

func (x *Service) GetRestartPolicy() *Service_RestartPolicy

func (*Service) Hash

func (s *Service) Hash() (string, error)

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

type ServiceState

type ServiceState struct {
	State  ServiceState_State   `protobuf:"varint,1,opt,name=state,proto3,enum=proto.ServiceState_State" json:"state,omitempty"`
	Handle *ServiceState_Handle `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	Hash   string               `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	Failed bool                 `protobuf:"varint,4,opt,name=failed,proto3" json:"failed,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceState) Descriptor deprecated

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

Deprecated: Use ServiceState.ProtoReflect.Descriptor instead.

func (*ServiceState) GetFailed

func (x *ServiceState) GetFailed() bool

func (*ServiceState) GetHandle

func (x *ServiceState) GetHandle() *ServiceState_Handle

func (*ServiceState) GetHash

func (x *ServiceState) GetHash() string

func (*ServiceState) GetState

func (x *ServiceState) GetState() ServiceState_State

func (*ServiceState) ProtoMessage

func (*ServiceState) ProtoMessage()

func (*ServiceState) ProtoReflect

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

func (*ServiceState) Reset

func (x *ServiceState) Reset()

func (*ServiceState) String

func (x *ServiceState) String() string

type ServiceState_Handle

type ServiceState_Handle struct {
	ContainerId string `protobuf:"bytes,1,opt,name=containerId,proto3" json:"containerId,omitempty"`
	Ip          string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceState_Handle) Descriptor deprecated

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

Deprecated: Use ServiceState_Handle.ProtoReflect.Descriptor instead.

func (*ServiceState_Handle) GetContainerId

func (x *ServiceState_Handle) GetContainerId() string

func (*ServiceState_Handle) GetIp

func (x *ServiceState_Handle) GetIp() string

func (*ServiceState_Handle) ProtoMessage

func (*ServiceState_Handle) ProtoMessage()

func (*ServiceState_Handle) ProtoReflect

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

func (*ServiceState_Handle) Reset

func (x *ServiceState_Handle) Reset()

func (*ServiceState_Handle) String

func (x *ServiceState_Handle) String() string

type ServiceState_State

type ServiceState_State int32
const (
	ServiceState_Pending ServiceState_State = 0
	ServiceState_Running ServiceState_State = 1
	ServiceState_Tainted ServiceState_State = 2
	ServiceState_Dead    ServiceState_State = 3
)

func (ServiceState_State) Descriptor

func (ServiceState_State) Enum

func (ServiceState_State) EnumDescriptor deprecated

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

Deprecated: Use ServiceState_State.Descriptor instead.

func (ServiceState_State) Number

func (ServiceState_State) String

func (x ServiceState_State) String() string

func (ServiceState_State) Type

type Service_MountConfig

type Service_MountConfig struct {
	HostPath string `protobuf:"bytes,1,opt,name=hostPath,proto3" json:"hostPath,omitempty"`
	TaskPath string `protobuf:"bytes,2,opt,name=taskPath,proto3" json:"taskPath,omitempty"`
	// contains filtered or unexported fields
}

func (*Service_MountConfig) Descriptor deprecated

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

Deprecated: Use Service_MountConfig.ProtoReflect.Descriptor instead.

func (*Service_MountConfig) GetHostPath

func (x *Service_MountConfig) GetHostPath() string

func (*Service_MountConfig) GetTaskPath

func (x *Service_MountConfig) GetTaskPath() string

func (*Service_MountConfig) ProtoMessage

func (*Service_MountConfig) ProtoMessage()

func (*Service_MountConfig) ProtoReflect

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

func (*Service_MountConfig) Reset

func (x *Service_MountConfig) Reset()

func (*Service_MountConfig) String

func (x *Service_MountConfig) String() string

type Service_RestartPolicy

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

func (*Service_RestartPolicy) Descriptor deprecated

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

Deprecated: Use Service_RestartPolicy.ProtoReflect.Descriptor instead.

func (*Service_RestartPolicy) ProtoMessage

func (*Service_RestartPolicy) ProtoMessage()

func (*Service_RestartPolicy) ProtoReflect

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

func (*Service_RestartPolicy) Reset

func (x *Service_RestartPolicy) Reset()

func (*Service_RestartPolicy) String

func (x *Service_RestartPolicy) String() string

Jump to

Keyboard shortcuts

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