Documentation ¶
Index ¶
- Constants
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (t *Event) FailsTask() bool
- func (x *Event) GetDetails() map[string]string
- func (x *Event) GetProject() string
- func (x *Event) GetService() string
- func (x *Event) GetTime() *timestamppb.Timestamp
- func (x *Event) GetType() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (t *Event) SetExitCode(c int64) *Event
- func (t *Event) SetFailsTask() *Event
- func (t *Event) SetSignal(s int64) *Event
- func (t *Event) SetTaskFailed(name string) *Event
- func (x *Event) String() string
- type ExecTaskResult
- func (*ExecTaskResult) Descriptor() ([]byte, []int)deprecated
- func (x *ExecTaskResult) GetExitCode() uint64
- func (x *ExecTaskResult) GetStderr() string
- func (x *ExecTaskResult) GetStdout() string
- func (*ExecTaskResult) ProtoMessage()
- func (x *ExecTaskResult) ProtoReflect() protoreflect.Message
- func (x *ExecTaskResult) Reset()
- func (x *ExecTaskResult) String() string
- type ExitResult
- type Project
- type Project_Ref
- type Service
- func (s *Service) Copy() *Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetArgs() []string
- func (x *Service) GetDepends() []string
- func (x *Service) GetEnv() map[string]string
- func (x *Service) GetImage() string
- func (x *Service) GetMounts() []*Service_MountConfig
- func (x *Service) GetNetworkMode() string
- func (x *Service) GetRestartPolicy() *Service_RestartPolicy
- func (s *Service) Hash() (string, error)
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- type ServiceState
- func (*ServiceState) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceState) GetFailed() bool
- func (x *ServiceState) GetHandle() *ServiceState_Handle
- func (x *ServiceState) GetHash() string
- func (x *ServiceState) GetState() ServiceState_State
- func (*ServiceState) ProtoMessage()
- func (x *ServiceState) ProtoReflect() protoreflect.Message
- func (x *ServiceState) Reset()
- func (x *ServiceState) String() string
- type ServiceState_Handle
- func (*ServiceState_Handle) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceState_Handle) GetContainerId() string
- func (x *ServiceState_Handle) GetIp() string
- func (*ServiceState_Handle) ProtoMessage()
- func (x *ServiceState_Handle) ProtoReflect() protoreflect.Message
- func (x *ServiceState_Handle) Reset()
- func (x *ServiceState_Handle) String() string
- type ServiceState_State
- func (ServiceState_State) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceState_State) Enum() *ServiceState_State
- func (ServiceState_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceState_State) Number() protoreflect.EnumNumber
- func (x ServiceState_State) String() string
- func (ServiceState_State) Type() protoreflect.EnumType
- type Service_MountConfig
- func (*Service_MountConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Service_MountConfig) GetHostPath() string
- func (x *Service_MountConfig) GetTaskPath() string
- func (*Service_MountConfig) ProtoMessage()
- func (x *Service_MountConfig) ProtoReflect() protoreflect.Message
- func (x *Service_MountConfig) Reset()
- func (x *Service_MountConfig) String() string
- type Service_RestartPolicy
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 (*Event) Descriptor
deprecated
func (*Event) GetDetails ¶
func (*Event) GetProject ¶
func (*Event) GetService ¶
func (*Event) GetTime ¶
func (x *Event) GetTime() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) SetExitCode ¶
func (*Event) SetFailsTask ¶
func (*Event) SetTaskFailed ¶
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) GetServices ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
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) Descriptor
deprecated
func (*Service) GetDepends ¶
func (*Service) GetMounts ¶
func (x *Service) GetMounts() []*Service_MountConfig
func (*Service) GetNetworkMode ¶
func (*Service) GetRestartPolicy ¶
func (x *Service) GetRestartPolicy() *Service_RestartPolicy
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (ServiceState_State) Enum ¶
func (x ServiceState_State) Enum() *ServiceState_State
func (ServiceState_State) EnumDescriptor
deprecated
func (ServiceState_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceState_State.Descriptor instead.
func (ServiceState_State) Number ¶
func (x ServiceState_State) Number() protoreflect.EnumNumber
func (ServiceState_State) String ¶
func (x ServiceState_State) String() string
func (ServiceState_State) Type ¶
func (ServiceState_State) Type() protoreflect.EnumType
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
Click to show internal directories.
Click to hide internal directories.