agentv1

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	AgentGatewayService_Connect_FullMethodName = "/syncloud.agent.v1.AgentGatewayService/Connect"
)

Variables

View Source
var (
	RestartPolicy_name = map[int32]string{
		0: "RESTART_POLICY_UNSPECIFIED",
		1: "RESTART_POLICY_NO",
		2: "RESTART_POLICY_ALWAYS",
		3: "RESTART_POLICY_UNLESS_STOPPED",
		4: "RESTART_POLICY_ON_FAILURE",
	}
	RestartPolicy_value = map[string]int32{
		"RESTART_POLICY_UNSPECIFIED":    0,
		"RESTART_POLICY_NO":             1,
		"RESTART_POLICY_ALWAYS":         2,
		"RESTART_POLICY_UNLESS_STOPPED": 3,
		"RESTART_POLICY_ON_FAILURE":     4,
	}
)

Enum value maps for RestartPolicy.

View Source
var (
	TaskState_name = map[int32]string{
		0: "TASK_STATE_UNSPECIFIED",
		1: "TASK_STATE_PULLING",
		2: "TASK_STATE_STARTING",
		3: "TASK_STATE_RUNNING",
		4: "TASK_STATE_EXITED",
		5: "TASK_STATE_FAILED",
		6: "TASK_STATE_REMOVED",
	}
	TaskState_value = map[string]int32{
		"TASK_STATE_UNSPECIFIED": 0,
		"TASK_STATE_PULLING":     1,
		"TASK_STATE_STARTING":    2,
		"TASK_STATE_RUNNING":     3,
		"TASK_STATE_EXITED":      4,
		"TASK_STATE_FAILED":      5,
		"TASK_STATE_REMOVED":     6,
	}
)

Enum value maps for TaskState.

View Source
var (
	Mount_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_VOLUME",
		2: "TYPE_BIND",
	}
	Mount_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_VOLUME":      1,
		"TYPE_BIND":        2,
	}
)

Enum value maps for Mount_Type.

View Source
var AgentGatewayService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "syncloud.agent.v1.AgentGatewayService",
	HandlerType: (*AgentGatewayServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Connect",
			Handler:       _AgentGatewayService_Connect_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "syncloud/agent/v1/agent.proto",
}

AgentGatewayService_ServiceDesc is the grpc.ServiceDesc for AgentGatewayService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_syncloud_agent_v1_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentGatewayServiceServer

func RegisterAgentGatewayServiceServer(s grpc.ServiceRegistrar, srv AgentGatewayServiceServer)

Types

type AgentGatewayServiceClient

type AgentGatewayServiceClient interface {
	// Connect is the long-lived agent stream. The first message must be Hello.
	// The node identity comes from the mTLS client certificate, not the messages.
	Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ConnectRequest, ConnectResponse], error)
}

AgentGatewayServiceClient is the client API for AgentGatewayService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AgentGatewayServiceServer

type AgentGatewayServiceServer interface {
	// Connect is the long-lived agent stream. The first message must be Hello.
	// The node identity comes from the mTLS client certificate, not the messages.
	Connect(grpc.BidiStreamingServer[ConnectRequest, ConnectResponse]) error
	// contains filtered or unexported methods
}

AgentGatewayServiceServer is the server API for AgentGatewayService service. All implementations must embed UnimplementedAgentGatewayServiceServer for forward compatibility.

type AgentGatewayService_ConnectClient

type AgentGatewayService_ConnectClient = grpc.BidiStreamingClient[ConnectRequest, ConnectResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type AgentGatewayService_ConnectServer

type AgentGatewayService_ConnectServer = grpc.BidiStreamingServer[ConnectRequest, ConnectResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type CertificateIssued

type CertificateIssued struct {
	Certificate string `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // PEM; the previous certificate stays valid until the agent reconnects with this one
	// contains filtered or unexported fields
}

func (*CertificateIssued) Descriptor deprecated

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

Deprecated: Use CertificateIssued.ProtoReflect.Descriptor instead.

func (*CertificateIssued) GetCertificate

func (x *CertificateIssued) GetCertificate() string

func (*CertificateIssued) ProtoMessage

func (*CertificateIssued) ProtoMessage()

func (*CertificateIssued) ProtoReflect

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

func (*CertificateIssued) Reset

func (x *CertificateIssued) Reset()

func (*CertificateIssued) String

func (x *CertificateIssued) String() string

type CommandResult

type CommandResult struct {
	CommandId string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	Ok        bool   `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"`
	Error     string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandResult) Descriptor deprecated

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

Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.

func (*CommandResult) GetCommandId

func (x *CommandResult) GetCommandId() string

func (*CommandResult) GetError

func (x *CommandResult) GetError() string

func (*CommandResult) GetOk

func (x *CommandResult) GetOk() bool

func (*CommandResult) ProtoMessage

func (*CommandResult) ProtoMessage()

func (*CommandResult) ProtoReflect

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

func (*CommandResult) Reset

func (x *CommandResult) Reset()

func (*CommandResult) String

func (x *CommandResult) String() string

type ConfirmNetwork

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

ConfirmNetwork tells the agent the controller still hears it after it applied this generation (commit-confirm, §8.3).

func (*ConfirmNetwork) Descriptor deprecated

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

Deprecated: Use ConfirmNetwork.ProtoReflect.Descriptor instead.

func (*ConfirmNetwork) GetGeneration

func (x *ConfirmNetwork) GetGeneration() uint64

func (*ConfirmNetwork) ProtoMessage

func (*ConfirmNetwork) ProtoMessage()

func (*ConfirmNetwork) ProtoReflect

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

func (*ConfirmNetwork) Reset

func (x *ConfirmNetwork) Reset()

func (*ConfirmNetwork) String

func (x *ConfirmNetwork) String() string

type ConnectRequest

type ConnectRequest struct {

	// Types that are valid to be assigned to Msg:
	//
	//	*ConnectRequest_Hello
	//	*ConnectRequest_Heartbeat
	//	*ConnectRequest_Result
	//	*ConnectRequest_TaskStatus
	//	*ConnectRequest_RenewCertificate
	//	*ConnectRequest_Logs
	//	*ConnectRequest_ExecOutput
	//	*ConnectRequest_UpgradeResult
	Msg isConnectRequest_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetExecOutput

func (x *ConnectRequest) GetExecOutput() *ExecOutput

func (*ConnectRequest) GetHeartbeat

func (x *ConnectRequest) GetHeartbeat() *Heartbeat

func (*ConnectRequest) GetHello

func (x *ConnectRequest) GetHello() *Hello

func (*ConnectRequest) GetLogs

func (x *ConnectRequest) GetLogs() *LogBatch

func (*ConnectRequest) GetMsg

func (x *ConnectRequest) GetMsg() isConnectRequest_Msg

func (*ConnectRequest) GetRenewCertificate

func (x *ConnectRequest) GetRenewCertificate() *RenewCertificate

func (*ConnectRequest) GetResult

func (x *ConnectRequest) GetResult() *CommandResult

func (*ConnectRequest) GetTaskStatus

func (x *ConnectRequest) GetTaskStatus() *TaskStatus

func (*ConnectRequest) GetUpgradeResult

func (x *ConnectRequest) GetUpgradeResult() *UpgradeResult

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

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

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

type ConnectRequest_ExecOutput

type ConnectRequest_ExecOutput struct {
	ExecOutput *ExecOutput `protobuf:"bytes,7,opt,name=exec_output,json=execOutput,proto3,oneof"`
}

type ConnectRequest_Heartbeat

type ConnectRequest_Heartbeat struct {
	Heartbeat *Heartbeat `protobuf:"bytes,2,opt,name=heartbeat,proto3,oneof"`
}

type ConnectRequest_Hello

type ConnectRequest_Hello struct {
	Hello *Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}

type ConnectRequest_Logs

type ConnectRequest_Logs struct {
	Logs *LogBatch `protobuf:"bytes,6,opt,name=logs,proto3,oneof"`
}

type ConnectRequest_RenewCertificate

type ConnectRequest_RenewCertificate struct {
	RenewCertificate *RenewCertificate `protobuf:"bytes,5,opt,name=renew_certificate,json=renewCertificate,proto3,oneof"`
}

type ConnectRequest_Result

type ConnectRequest_Result struct {
	Result *CommandResult `protobuf:"bytes,3,opt,name=result,proto3,oneof"`
}

type ConnectRequest_TaskStatus

type ConnectRequest_TaskStatus struct {
	TaskStatus *TaskStatus `protobuf:"bytes,4,opt,name=task_status,json=taskStatus,proto3,oneof"`
}

type ConnectRequest_UpgradeResult

type ConnectRequest_UpgradeResult struct {
	UpgradeResult *UpgradeResult `protobuf:"bytes,8,opt,name=upgrade_result,json=upgradeResult,proto3,oneof"`
}

type ConnectResponse

type ConnectResponse struct {

	// Types that are valid to be assigned to Msg:
	//
	//	*ConnectResponse_Welcome
	//	*ConnectResponse_RunTask
	//	*ConnectResponse_StopTask
	//	*ConnectResponse_Network
	//	*ConnectResponse_Certificate
	//	*ConnectResponse_ConfirmNetwork
	//	*ConnectResponse_Discovery
	//	*ConnectResponse_ExecInput
	//	*ConnectResponse_PullImage
	//	*ConnectResponse_UpgradeAgent
	Msg isConnectResponse_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

func (*ConnectResponse) Descriptor deprecated

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

Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.

func (*ConnectResponse) GetCertificate

func (x *ConnectResponse) GetCertificate() *CertificateIssued

func (*ConnectResponse) GetConfirmNetwork

func (x *ConnectResponse) GetConfirmNetwork() *ConfirmNetwork

func (*ConnectResponse) GetDiscovery

func (x *ConnectResponse) GetDiscovery() *Discovery

func (*ConnectResponse) GetExecInput

func (x *ConnectResponse) GetExecInput() *ExecInput

func (*ConnectResponse) GetMsg

func (x *ConnectResponse) GetMsg() isConnectResponse_Msg

func (*ConnectResponse) GetNetwork

func (x *ConnectResponse) GetNetwork() *NetworkConfig

func (*ConnectResponse) GetPullImage

func (x *ConnectResponse) GetPullImage() *PullImage

func (*ConnectResponse) GetRunTask

func (x *ConnectResponse) GetRunTask() *RunTask

func (*ConnectResponse) GetStopTask

func (x *ConnectResponse) GetStopTask() *StopTask

func (*ConnectResponse) GetUpgradeAgent

func (x *ConnectResponse) GetUpgradeAgent() *UpgradeAgent

func (*ConnectResponse) GetWelcome

func (x *ConnectResponse) GetWelcome() *Welcome

func (*ConnectResponse) ProtoMessage

func (*ConnectResponse) ProtoMessage()

func (*ConnectResponse) ProtoReflect

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

func (*ConnectResponse) Reset

func (x *ConnectResponse) Reset()

func (*ConnectResponse) String

func (x *ConnectResponse) String() string

type ConnectResponse_Certificate

type ConnectResponse_Certificate struct {
	Certificate *CertificateIssued `protobuf:"bytes,5,opt,name=certificate,proto3,oneof"`
}

type ConnectResponse_ConfirmNetwork

type ConnectResponse_ConfirmNetwork struct {
	ConfirmNetwork *ConfirmNetwork `protobuf:"bytes,6,opt,name=confirm_network,json=confirmNetwork,proto3,oneof"`
}

type ConnectResponse_Discovery

type ConnectResponse_Discovery struct {
	Discovery *Discovery `protobuf:"bytes,7,opt,name=discovery,proto3,oneof"`
}

type ConnectResponse_ExecInput

type ConnectResponse_ExecInput struct {
	ExecInput *ExecInput `protobuf:"bytes,8,opt,name=exec_input,json=execInput,proto3,oneof"`
}

type ConnectResponse_Network

type ConnectResponse_Network struct {
	Network *NetworkConfig `protobuf:"bytes,4,opt,name=network,proto3,oneof"`
}

type ConnectResponse_PullImage

type ConnectResponse_PullImage struct {
	PullImage *PullImage `protobuf:"bytes,9,opt,name=pull_image,json=pullImage,proto3,oneof"`
}

type ConnectResponse_RunTask

type ConnectResponse_RunTask struct {
	RunTask *RunTask `protobuf:"bytes,2,opt,name=run_task,json=runTask,proto3,oneof"`
}

type ConnectResponse_StopTask

type ConnectResponse_StopTask struct {
	StopTask *StopTask `protobuf:"bytes,3,opt,name=stop_task,json=stopTask,proto3,oneof"`
}

type ConnectResponse_UpgradeAgent

type ConnectResponse_UpgradeAgent struct {
	UpgradeAgent *UpgradeAgent `protobuf:"bytes,10,opt,name=upgrade_agent,json=upgradeAgent,proto3,oneof"`
}

type ConnectResponse_Welcome

type ConnectResponse_Welcome struct {
	Welcome *Welcome `protobuf:"bytes,1,opt,name=welcome,proto3,oneof"`
}

type DNSRecord

type DNSRecord struct {
	Name string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // fully qualified, lowercase, no trailing dot
	Ips  []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"`
	// contains filtered or unexported fields
}

func (*DNSRecord) Descriptor deprecated

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

Deprecated: Use DNSRecord.ProtoReflect.Descriptor instead.

func (*DNSRecord) GetIps

func (x *DNSRecord) GetIps() []string

func (*DNSRecord) GetName

func (x *DNSRecord) GetName() string

func (*DNSRecord) ProtoMessage

func (*DNSRecord) ProtoMessage()

func (*DNSRecord) ProtoReflect

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

func (*DNSRecord) Reset

func (x *DNSRecord) Reset()

func (*DNSRecord) String

func (x *DNSRecord) String() string

type Discovery

type Discovery struct {
	Generation uint64            `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"`
	Records    []*DNSRecord      `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
	Services   []*VirtualService `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"`
	Security   *SecurityPolicy   `protobuf:"bytes,4,opt,name=security,proto3" json:"security,omitempty"` // unset: security groups are off
	// contains filtered or unexported fields
}

Discovery is the cluster's service directory (§8.1, §8.6): DNS records and virtual IPs with their backends. Sent in full whenever it changes.

func (*Discovery) Descriptor deprecated

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

Deprecated: Use Discovery.ProtoReflect.Descriptor instead.

func (*Discovery) GetGeneration

func (x *Discovery) GetGeneration() uint64

func (*Discovery) GetRecords

func (x *Discovery) GetRecords() []*DNSRecord

func (*Discovery) GetSecurity

func (x *Discovery) GetSecurity() *SecurityPolicy

func (*Discovery) GetServices

func (x *Discovery) GetServices() []*VirtualService

func (*Discovery) ProtoMessage

func (*Discovery) ProtoMessage()

func (*Discovery) ProtoReflect

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

func (*Discovery) Reset

func (x *Discovery) Reset()

func (*Discovery) String

func (x *Discovery) String() string

type DropFlow

type DropFlow struct {
	Direction string `protobuf:"bytes,1,opt,name=direction,proto3" json:"direction,omitempty"` // host (public interface) | in (to a container) | out (from a container)
	Src       string `protobuf:"bytes,2,opt,name=src,proto3" json:"src,omitempty"`
	Dst       string `protobuf:"bytes,3,opt,name=dst,proto3" json:"dst,omitempty"`
	Protocol  string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // tcp | udp
	Port      uint32 `protobuf:"varint,5,opt,name=port,proto3" json:"port,omitempty"`
	Packets   uint64 `protobuf:"varint,6,opt,name=packets,proto3" json:"packets,omitempty"`
	// contains filtered or unexported fields
}

DropFlow is a connection attempt a default deny dropped, aggregated by source, destination, protocol and port.

func (*DropFlow) Descriptor deprecated

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

Deprecated: Use DropFlow.ProtoReflect.Descriptor instead.

func (*DropFlow) GetDirection

func (x *DropFlow) GetDirection() string

func (*DropFlow) GetDst

func (x *DropFlow) GetDst() string

func (*DropFlow) GetPackets

func (x *DropFlow) GetPackets() uint64

func (*DropFlow) GetPort

func (x *DropFlow) GetPort() uint32

func (*DropFlow) GetProtocol

func (x *DropFlow) GetProtocol() string

func (*DropFlow) GetSrc

func (x *DropFlow) GetSrc() string

func (*DropFlow) ProtoMessage

func (*DropFlow) ProtoMessage()

func (*DropFlow) ProtoReflect

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

func (*DropFlow) Reset

func (x *DropFlow) Reset()

func (*DropFlow) String

func (x *DropFlow) String() string

type ExecInput

type ExecInput struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// Types that are valid to be assigned to Msg:
	//
	//	*ExecInput_Start
	//	*ExecInput_Stdin
	//	*ExecInput_Resize
	//	*ExecInput_Close
	//	*ExecInput_StdinEof
	Msg isExecInput_Msg `protobuf_oneof:"msg"`
	// contains filtered or unexported fields
}

Interactive exec into a task container (§10, kubectl exec). Sessions are multiplexed on the agent stream by session_id.

func (*ExecInput) Descriptor deprecated

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

Deprecated: Use ExecInput.ProtoReflect.Descriptor instead.

func (*ExecInput) GetClose

func (x *ExecInput) GetClose() bool

func (*ExecInput) GetMsg

func (x *ExecInput) GetMsg() isExecInput_Msg

func (*ExecInput) GetResize

func (x *ExecInput) GetResize() *ExecResize

func (*ExecInput) GetSessionId

func (x *ExecInput) GetSessionId() string

func (*ExecInput) GetStart

func (x *ExecInput) GetStart() *ExecStart

func (*ExecInput) GetStdin

func (x *ExecInput) GetStdin() []byte

func (*ExecInput) GetStdinEof

func (x *ExecInput) GetStdinEof() bool

func (*ExecInput) ProtoMessage

func (*ExecInput) ProtoMessage()

func (*ExecInput) ProtoReflect

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

func (*ExecInput) Reset

func (x *ExecInput) Reset()

func (*ExecInput) String

func (x *ExecInput) String() string

type ExecInput_Close

type ExecInput_Close struct {
	Close bool `protobuf:"varint,5,opt,name=close,proto3,oneof"` // controller side went away: kill the session
}

type ExecInput_Resize

type ExecInput_Resize struct {
	Resize *ExecResize `protobuf:"bytes,4,opt,name=resize,proto3,oneof"`
}

type ExecInput_Start

type ExecInput_Start struct {
	Start *ExecStart `protobuf:"bytes,2,opt,name=start,proto3,oneof"`
}

type ExecInput_Stdin

type ExecInput_Stdin struct {
	Stdin []byte `protobuf:"bytes,3,opt,name=stdin,proto3,oneof"`
}

type ExecInput_StdinEof

type ExecInput_StdinEof struct {
	StdinEof bool `protobuf:"varint,6,opt,name=stdin_eof,json=stdinEof,proto3,oneof"` // no more input: close the command's stdin
}

type ExecOutput

type ExecOutput struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // stdout (and stderr when tty)
	Exited    bool   `protobuf:"varint,3,opt,name=exited,proto3" json:"exited,omitempty"`
	ExitCode  int32  `protobuf:"varint,4,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Error     string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // could not start
	// contains filtered or unexported fields
}

func (*ExecOutput) Descriptor deprecated

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

Deprecated: Use ExecOutput.ProtoReflect.Descriptor instead.

func (*ExecOutput) GetData

func (x *ExecOutput) GetData() []byte

func (*ExecOutput) GetError

func (x *ExecOutput) GetError() string

func (*ExecOutput) GetExitCode

func (x *ExecOutput) GetExitCode() int32

func (*ExecOutput) GetExited

func (x *ExecOutput) GetExited() bool

func (*ExecOutput) GetSessionId

func (x *ExecOutput) GetSessionId() string

func (*ExecOutput) ProtoMessage

func (*ExecOutput) ProtoMessage()

func (*ExecOutput) ProtoReflect

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

func (*ExecOutput) Reset

func (x *ExecOutput) Reset()

func (*ExecOutput) String

func (x *ExecOutput) String() string

type ExecResize

type ExecResize struct {
	Cols uint32 `protobuf:"varint,1,opt,name=cols,proto3" json:"cols,omitempty"`
	Rows uint32 `protobuf:"varint,2,opt,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*ExecResize) Descriptor deprecated

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

Deprecated: Use ExecResize.ProtoReflect.Descriptor instead.

func (*ExecResize) GetCols

func (x *ExecResize) GetCols() uint32

func (*ExecResize) GetRows

func (x *ExecResize) GetRows() uint32

func (*ExecResize) ProtoMessage

func (*ExecResize) ProtoMessage()

func (*ExecResize) ProtoReflect

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

func (*ExecResize) Reset

func (x *ExecResize) Reset()

func (*ExecResize) String

func (x *ExecResize) String() string

type ExecStart

type ExecStart struct {
	TaskId  string   `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` // default: sh
	Tty     bool     `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"`
	Cols    uint32   `protobuf:"varint,4,opt,name=cols,proto3" json:"cols,omitempty"`
	Rows    uint32   `protobuf:"varint,5,opt,name=rows,proto3" json:"rows,omitempty"`
	Host    bool     `protobuf:"varint,6,opt,name=host,proto3" json:"host,omitempty"` // on the node itself, not in a task (task_id empty)
	// contains filtered or unexported fields
}

func (*ExecStart) Descriptor deprecated

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

Deprecated: Use ExecStart.ProtoReflect.Descriptor instead.

func (*ExecStart) GetCols

func (x *ExecStart) GetCols() uint32

func (*ExecStart) GetCommand

func (x *ExecStart) GetCommand() []string

func (*ExecStart) GetHost

func (x *ExecStart) GetHost() bool

func (*ExecStart) GetRows

func (x *ExecStart) GetRows() uint32

func (*ExecStart) GetTaskId

func (x *ExecStart) GetTaskId() string

func (*ExecStart) GetTty

func (x *ExecStart) GetTty() bool

func (*ExecStart) ProtoMessage

func (*ExecStart) ProtoMessage()

func (*ExecStart) ProtoReflect

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

func (*ExecStart) Reset

func (x *ExecStart) Reset()

func (*ExecStart) String

func (x *ExecStart) String() string

type Firewall

type Firewall struct {
	Rules []*FirewallRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Addresses of cluster nodes (WireGuard endpoints), for "cluster" sources.
	ClusterSources []string `protobuf:"bytes,2,rep,name=cluster_sources,json=clusterSources,proto3" json:"cluster_sources,omitempty"`
	// A config whose firewall differs from the last confirmed one must be
	// confirmed (ConfirmNetwork) within this many seconds, or the agent rolls back.
	ConfirmTimeoutSeconds uint32 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

Firewall is the node's inbound policy for its public interfaces. The mesh, loopback, Docker bridges, established traffic and essential ICMP are always allowed; everything else is dropped unless a rule allows it.

func (*Firewall) Descriptor deprecated

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

Deprecated: Use Firewall.ProtoReflect.Descriptor instead.

func (*Firewall) GetClusterSources

func (x *Firewall) GetClusterSources() []string

func (*Firewall) GetConfirmTimeoutSeconds

func (x *Firewall) GetConfirmTimeoutSeconds() uint32

func (*Firewall) GetRules

func (x *Firewall) GetRules() []*FirewallRule

func (*Firewall) ProtoMessage

func (*Firewall) ProtoMessage()

func (*Firewall) ProtoReflect

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

func (*Firewall) Reset

func (x *Firewall) Reset()

func (*Firewall) String

func (x *Firewall) String() string

type FirewallRule

type FirewallRule struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`             // policy ID + index, used in counters
	Protocol    string   `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // tcp, udp, icmp, any
	Ports       string   `protobuf:"bytes,3,opt,name=ports,proto3" json:"ports,omitempty"`       // "22", "8000-8100", "" (all)
	Sources     []string `protobuf:"bytes,4,rep,name=sources,proto3" json:"sources,omitempty"`   // CIDRs; "cluster" = cluster nodes; empty = anywhere
	Description string   `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*FirewallRule) Descriptor deprecated

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

Deprecated: Use FirewallRule.ProtoReflect.Descriptor instead.

func (*FirewallRule) GetDescription

func (x *FirewallRule) GetDescription() string

func (*FirewallRule) GetId

func (x *FirewallRule) GetId() string

func (*FirewallRule) GetPorts

func (x *FirewallRule) GetPorts() string

func (*FirewallRule) GetProtocol

func (x *FirewallRule) GetProtocol() string

func (*FirewallRule) GetSources

func (x *FirewallRule) GetSources() []string

func (*FirewallRule) ProtoMessage

func (*FirewallRule) ProtoMessage()

func (*FirewallRule) ProtoReflect

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

func (*FirewallRule) Reset

func (x *FirewallRule) Reset()

func (*FirewallRule) String

func (x *FirewallRule) String() string

type GatewayEndpoint added in v0.2.2

type GatewayEndpoint struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // host:port
	// server_name is the TLS name sent (SNI) for Traefik to route by; the
	// certificate is then checked for pki.GatewayName. Empty: the address's
	// host is sent and checked.
	ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
	// contains filtered or unexported fields
}

GatewayEndpoint is one way to reach the agent gateway.

func (*GatewayEndpoint) Descriptor deprecated added in v0.2.2

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

Deprecated: Use GatewayEndpoint.ProtoReflect.Descriptor instead.

func (*GatewayEndpoint) GetAddress added in v0.2.2

func (x *GatewayEndpoint) GetAddress() string

func (*GatewayEndpoint) GetServerName added in v0.2.2

func (x *GatewayEndpoint) GetServerName() string

func (*GatewayEndpoint) ProtoMessage added in v0.2.2

func (*GatewayEndpoint) ProtoMessage()

func (*GatewayEndpoint) ProtoReflect added in v0.2.2

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

func (*GatewayEndpoint) Reset added in v0.2.2

func (x *GatewayEndpoint) Reset()

func (*GatewayEndpoint) String added in v0.2.2

func (x *GatewayEndpoint) String() string

type HealthCheck

type HealthCheck struct {
	Type               string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`       // http | tcp | cmd
	Path               string   `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`       // http: request path
	Port               uint32   `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`      // http, tcp: container port
	Command            []string `protobuf:"bytes,4,rep,name=command,proto3" json:"command,omitempty"` // cmd: run in the container; exit 0 = healthy
	IntervalSeconds    uint32   `protobuf:"varint,5,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"`
	TimeoutSeconds     uint32   `protobuf:"varint,6,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	Retries            uint32   `protobuf:"varint,7,opt,name=retries,proto3" json:"retries,omitempty"`
	StartPeriodSeconds uint32   `protobuf:"varint,8,opt,name=start_period_seconds,json=startPeriodSeconds,proto3" json:"start_period_seconds,omitempty"`
	// contains filtered or unexported fields
}

HealthCheck is probed by the agent against the task's IP (§5.6, layer 1). The task is "starting" until the first success, "unhealthy" after `retries` consecutive failures (failures during the start period do not count), and "healthy" again after one success.

func (*HealthCheck) Descriptor deprecated

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

Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.

func (*HealthCheck) GetCommand

func (x *HealthCheck) GetCommand() []string

func (*HealthCheck) GetIntervalSeconds

func (x *HealthCheck) GetIntervalSeconds() uint32

func (*HealthCheck) GetPath

func (x *HealthCheck) GetPath() string

func (*HealthCheck) GetPort

func (x *HealthCheck) GetPort() uint32

func (*HealthCheck) GetRetries

func (x *HealthCheck) GetRetries() uint32

func (*HealthCheck) GetStartPeriodSeconds

func (x *HealthCheck) GetStartPeriodSeconds() uint32

func (*HealthCheck) GetTimeoutSeconds

func (x *HealthCheck) GetTimeoutSeconds() uint32

func (*HealthCheck) GetType

func (x *HealthCheck) GetType() string

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) ProtoReflect

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

func (*HealthCheck) Reset

func (x *HealthCheck) Reset()

func (*HealthCheck) String

func (x *HealthCheck) String() string

type Heartbeat

type Heartbeat struct {
	Metrics *NodeMetrics   `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"`
	Network *NetworkStatus `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Tasks   []*TaskMetrics `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` // samples taken since the last heartbeat (§9.1)
	// contains filtered or unexported fields
}

func (*Heartbeat) Descriptor deprecated

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

Deprecated: Use Heartbeat.ProtoReflect.Descriptor instead.

func (*Heartbeat) GetMetrics

func (x *Heartbeat) GetMetrics() *NodeMetrics

func (*Heartbeat) GetNetwork

func (x *Heartbeat) GetNetwork() *NetworkStatus

func (*Heartbeat) GetTasks

func (x *Heartbeat) GetTasks() []*TaskMetrics

func (*Heartbeat) ProtoMessage

func (*Heartbeat) ProtoMessage()

func (*Heartbeat) ProtoReflect

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

func (*Heartbeat) Reset

func (x *Heartbeat) Reset()

func (*Heartbeat) String

func (x *Heartbeat) String() string

type Hello

type Hello struct {
	AgentVersion string    `protobuf:"bytes,1,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	Info         *NodeInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// Every SynCloud-managed container on the node, so the controller can
	// reconcile after a reconnect (§6.3).
	Tasks []*TaskStatus `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*Hello) Descriptor deprecated

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

Deprecated: Use Hello.ProtoReflect.Descriptor instead.

func (*Hello) GetAgentVersion

func (x *Hello) GetAgentVersion() string

func (*Hello) GetInfo

func (x *Hello) GetInfo() *NodeInfo

func (*Hello) GetTasks

func (x *Hello) GetTasks() []*TaskStatus

func (*Hello) ProtoMessage

func (*Hello) ProtoMessage()

func (*Hello) ProtoReflect

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

func (*Hello) Reset

func (x *Hello) Reset()

func (*Hello) String

func (x *Hello) String() string

type LogBatch

type LogBatch struct {
	Lines   []*LogLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	Dropped uint64     `protobuf:"varint,2,opt,name=dropped,proto3" json:"dropped,omitempty"` // lines dropped on the node since the last batch (buffer full)
	// contains filtered or unexported fields
}

LogBatch carries container output (§9.2). Labels (project, service, …) are added by the controller from the task ID.

func (*LogBatch) Descriptor deprecated

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

Deprecated: Use LogBatch.ProtoReflect.Descriptor instead.

func (*LogBatch) GetDropped

func (x *LogBatch) GetDropped() uint64

func (*LogBatch) GetLines

func (x *LogBatch) GetLines() []*LogLine

func (*LogBatch) ProtoMessage

func (*LogBatch) ProtoMessage()

func (*LogBatch) ProtoReflect

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

func (*LogBatch) Reset

func (x *LogBatch) Reset()

func (*LogBatch) String

func (x *LogBatch) String() string

type LogLine

type LogLine struct {
	TaskId       string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	TimeUnixNano int64  `protobuf:"varint,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
	Stream       string `protobuf:"bytes,3,opt,name=stream,proto3" json:"stream,omitempty"` // stdout | stderr
	Line         string `protobuf:"bytes,4,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*LogLine) Descriptor deprecated

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

Deprecated: Use LogLine.ProtoReflect.Descriptor instead.

func (*LogLine) GetLine

func (x *LogLine) GetLine() string

func (*LogLine) GetStream

func (x *LogLine) GetStream() string

func (*LogLine) GetTaskId

func (x *LogLine) GetTaskId() string

func (*LogLine) GetTimeUnixNano

func (x *LogLine) GetTimeUnixNano() int64

func (*LogLine) ProtoMessage

func (*LogLine) ProtoMessage()

func (*LogLine) ProtoReflect

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

func (*LogLine) Reset

func (x *LogLine) Reset()

func (*LogLine) String

func (x *LogLine) String() string

type Mount

type Mount struct {
	Type     Mount_Type `protobuf:"varint,1,opt,name=type,proto3,enum=syncloud.agent.v1.Mount_Type" json:"type,omitempty"`
	Source   string     `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` // volume name or host path
	Target   string     `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // path in the container
	ReadOnly bool       `protobuf:"varint,4,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
	// contains filtered or unexported fields
}

func (*Mount) Descriptor deprecated

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

Deprecated: Use Mount.ProtoReflect.Descriptor instead.

func (*Mount) GetReadOnly

func (x *Mount) GetReadOnly() bool

func (*Mount) GetSource

func (x *Mount) GetSource() string

func (*Mount) GetTarget

func (x *Mount) GetTarget() string

func (*Mount) GetType

func (x *Mount) GetType() Mount_Type

func (*Mount) ProtoMessage

func (*Mount) ProtoMessage()

func (*Mount) ProtoReflect

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

func (*Mount) Reset

func (x *Mount) Reset()

func (*Mount) String

func (x *Mount) String() string

type Mount_Type

type Mount_Type int32
const (
	Mount_TYPE_UNSPECIFIED Mount_Type = 0
	Mount_TYPE_VOLUME      Mount_Type = 1 // named Docker volume (node-local, D2)
	Mount_TYPE_BIND        Mount_Type = 2 // host path
)

func (Mount_Type) Descriptor

func (Mount_Type) Descriptor() protoreflect.EnumDescriptor

func (Mount_Type) Enum

func (x Mount_Type) Enum() *Mount_Type

func (Mount_Type) EnumDescriptor deprecated

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

Deprecated: Use Mount_Type.Descriptor instead.

func (Mount_Type) Number

func (x Mount_Type) Number() protoreflect.EnumNumber

func (Mount_Type) String

func (x Mount_Type) String() string

func (Mount_Type) Type

type NetworkConfig

type NetworkConfig struct {
	Generation      uint64    `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"`
	NodeAddress     string    `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`             // e.g. "10.90.0.5/16" for the WireGuard interface
	ContainerSubnet string    `protobuf:"bytes,3,opt,name=container_subnet,json=containerSubnet,proto3" json:"container_subnet,omitempty"` // e.g. "10.91.5.0/24" for the Docker network "syncloud"
	ListenPort      uint32    `protobuf:"varint,4,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"`               // WireGuard UDP port
	Peers           []*Peer   `protobuf:"bytes,5,rep,name=peers,proto3" json:"peers,omitempty"`
	MeshCidr        string    `protobuf:"bytes,6,opt,name=mesh_cidr,json=meshCidr,proto3" json:"mesh_cidr,omitempty"`                // 10.90.0.0/16
	ContainerCidr   string    `protobuf:"bytes,7,opt,name=container_cidr,json=containerCidr,proto3" json:"container_cidr,omitempty"` // 10.91.0.0/16
	ServiceCidr     string    `protobuf:"bytes,8,opt,name=service_cidr,json=serviceCidr,proto3" json:"service_cidr,omitempty"`       // 10.92.0.0/16 (VIPs, §8.6)
	Firewall        *Firewall `protobuf:"bytes,9,opt,name=firewall,proto3" json:"firewall,omitempty"`                                // host firewall (§8.3); unset = no host firewall
	// contains filtered or unexported fields
}

NetworkConfig is this node's view of the WireGuard mesh (§8). It is sent after Welcome and again whenever a node joins, leaves or changes address.

func (*NetworkConfig) Descriptor deprecated

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

Deprecated: Use NetworkConfig.ProtoReflect.Descriptor instead.

func (*NetworkConfig) GetContainerCidr

func (x *NetworkConfig) GetContainerCidr() string

func (*NetworkConfig) GetContainerSubnet

func (x *NetworkConfig) GetContainerSubnet() string

func (*NetworkConfig) GetFirewall

func (x *NetworkConfig) GetFirewall() *Firewall

func (*NetworkConfig) GetGeneration

func (x *NetworkConfig) GetGeneration() uint64

func (*NetworkConfig) GetListenPort

func (x *NetworkConfig) GetListenPort() uint32

func (*NetworkConfig) GetMeshCidr

func (x *NetworkConfig) GetMeshCidr() string

func (*NetworkConfig) GetNodeAddress

func (x *NetworkConfig) GetNodeAddress() string

func (*NetworkConfig) GetPeers

func (x *NetworkConfig) GetPeers() []*Peer

func (*NetworkConfig) GetServiceCidr

func (x *NetworkConfig) GetServiceCidr() string

func (*NetworkConfig) ProtoMessage

func (*NetworkConfig) ProtoMessage()

func (*NetworkConfig) ProtoReflect

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

func (*NetworkConfig) Reset

func (x *NetworkConfig) Reset()

func (*NetworkConfig) String

func (x *NetworkConfig) String() string

type NetworkStatus

type NetworkStatus struct {
	Generation       uint64         `protobuf:"varint,1,opt,name=generation,proto3" json:"generation,omitempty"` // last NetworkConfig applied
	Error            string         `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`            // why the last apply failed
	Mode             string         `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`              // "kernel" or "userspace" WireGuard
	Peers            []*PeerStatus  `protobuf:"bytes,4,rep,name=peers,proto3" json:"peers,omitempty"`
	FirewallPending  bool           `protobuf:"varint,5,opt,name=firewall_pending,json=firewallPending,proto3" json:"firewall_pending,omitempty"`    // applied, waiting for ConfirmNetwork
	DriftCorrections uint64         `protobuf:"varint,6,opt,name=drift_corrections,json=driftCorrections,proto3" json:"drift_corrections,omitempty"` // times the managed ruleset was changed by hand and restored
	Counters         []*RuleCounter `protobuf:"bytes,7,rep,name=counters,proto3" json:"counters,omitempty"`                                          // per firewall rule, cumulative since the agent started (§8.3)
	Drops            []*DropFlow    `protobuf:"bytes,8,rep,name=drops,proto3" json:"drops,omitempty"`                                                // flows dropped since the last heartbeat
	SecurityError    string         `protobuf:"bytes,9,opt,name=security_error,json=securityError,proto3" json:"security_error,omitempty"`           // why security groups are not enforced on this node
	// contains filtered or unexported fields
}

func (*NetworkStatus) Descriptor deprecated

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

Deprecated: Use NetworkStatus.ProtoReflect.Descriptor instead.

func (*NetworkStatus) GetCounters

func (x *NetworkStatus) GetCounters() []*RuleCounter

func (*NetworkStatus) GetDriftCorrections

func (x *NetworkStatus) GetDriftCorrections() uint64

func (*NetworkStatus) GetDrops

func (x *NetworkStatus) GetDrops() []*DropFlow

func (*NetworkStatus) GetError

func (x *NetworkStatus) GetError() string

func (*NetworkStatus) GetFirewallPending

func (x *NetworkStatus) GetFirewallPending() bool

func (*NetworkStatus) GetGeneration

func (x *NetworkStatus) GetGeneration() uint64

func (*NetworkStatus) GetMode

func (x *NetworkStatus) GetMode() string

func (*NetworkStatus) GetPeers

func (x *NetworkStatus) GetPeers() []*PeerStatus

func (*NetworkStatus) GetSecurityError

func (x *NetworkStatus) GetSecurityError() string

func (*NetworkStatus) ProtoMessage

func (*NetworkStatus) ProtoMessage()

func (*NetworkStatus) ProtoReflect

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

func (*NetworkStatus) Reset

func (x *NetworkStatus) Reset()

func (*NetworkStatus) String

func (x *NetworkStatus) String() string

type NodeInfo

type NodeInfo struct {
	Hostname      string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Os            string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"` // e.g. "Ubuntu 24.04.1 LTS"
	Kernel        string `protobuf:"bytes,3,opt,name=kernel,proto3" json:"kernel,omitempty"`
	Arch          string `protobuf:"bytes,4,opt,name=arch,proto3" json:"arch,omitempty"` // amd64, arm64
	CpuCores      int32  `protobuf:"varint,5,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"`
	MemoryBytes   uint64 `protobuf:"varint,6,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`
	DiskBytes     uint64 `protobuf:"varint,7,opt,name=disk_bytes,json=diskBytes,proto3" json:"disk_bytes,omitempty"`            // root filesystem size
	DockerVersion string `protobuf:"bytes,8,opt,name=docker_version,json=dockerVersion,proto3" json:"docker_version,omitempty"` // empty when Docker is unavailable
	// Private networking (§8). The key is generated on the node.
	WireguardPublicKey string `protobuf:"bytes,9,opt,name=wireguard_public_key,json=wireguardPublicKey,proto3" json:"wireguard_public_key,omitempty"`
	// advertise_address is the address peers use to reach this node's
	// WireGuard port (--advertise-address). Empty: the controller uses the
	// address the node connects from.
	AdvertiseAddress string `protobuf:"bytes,10,opt,name=advertise_address,json=advertiseAddress,proto3" json:"advertise_address,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeInfo) Descriptor deprecated

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

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetAdvertiseAddress

func (x *NodeInfo) GetAdvertiseAddress() string

func (*NodeInfo) GetArch

func (x *NodeInfo) GetArch() string

func (*NodeInfo) GetCpuCores

func (x *NodeInfo) GetCpuCores() int32

func (*NodeInfo) GetDiskBytes

func (x *NodeInfo) GetDiskBytes() uint64

func (*NodeInfo) GetDockerVersion

func (x *NodeInfo) GetDockerVersion() string

func (*NodeInfo) GetHostname

func (x *NodeInfo) GetHostname() string

func (*NodeInfo) GetKernel

func (x *NodeInfo) GetKernel() string

func (*NodeInfo) GetMemoryBytes

func (x *NodeInfo) GetMemoryBytes() uint64

func (*NodeInfo) GetOs

func (x *NodeInfo) GetOs() string

func (*NodeInfo) GetWireguardPublicKey

func (x *NodeInfo) GetWireguardPublicKey() string

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

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

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type NodeMetrics

type NodeMetrics struct {
	CpuPercent       float64 `protobuf:"fixed64,1,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`
	MemoryUsedBytes  uint64  `protobuf:"varint,2,opt,name=memory_used_bytes,json=memoryUsedBytes,proto3" json:"memory_used_bytes,omitempty"`
	MemoryTotalBytes uint64  `protobuf:"varint,3,opt,name=memory_total_bytes,json=memoryTotalBytes,proto3" json:"memory_total_bytes,omitempty"`
	DiskUsedBytes    uint64  `protobuf:"varint,4,opt,name=disk_used_bytes,json=diskUsedBytes,proto3" json:"disk_used_bytes,omitempty"`
	DiskTotalBytes   uint64  `protobuf:"varint,5,opt,name=disk_total_bytes,json=diskTotalBytes,proto3" json:"disk_total_bytes,omitempty"`
	Load1            float64 `protobuf:"fixed64,6,opt,name=load1,proto3" json:"load1,omitempty"`
	Load5            float64 `protobuf:"fixed64,7,opt,name=load5,proto3" json:"load5,omitempty"`
	Load15           float64 `protobuf:"fixed64,8,opt,name=load15,proto3" json:"load15,omitempty"`
	NetRxBytes       uint64  `protobuf:"varint,9,opt,name=net_rx_bytes,json=netRxBytes,proto3" json:"net_rx_bytes,omitempty"` // cumulative, all non-loopback interfaces
	NetTxBytes       uint64  `protobuf:"varint,10,opt,name=net_tx_bytes,json=netTxBytes,proto3" json:"net_tx_bytes,omitempty"`
	UptimeSeconds    int64   `protobuf:"varint,11,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeMetrics) Descriptor deprecated

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

Deprecated: Use NodeMetrics.ProtoReflect.Descriptor instead.

func (*NodeMetrics) GetCpuPercent

func (x *NodeMetrics) GetCpuPercent() float64

func (*NodeMetrics) GetDiskTotalBytes

func (x *NodeMetrics) GetDiskTotalBytes() uint64

func (*NodeMetrics) GetDiskUsedBytes

func (x *NodeMetrics) GetDiskUsedBytes() uint64

func (*NodeMetrics) GetLoad1

func (x *NodeMetrics) GetLoad1() float64

func (*NodeMetrics) GetLoad5

func (x *NodeMetrics) GetLoad5() float64

func (*NodeMetrics) GetLoad15

func (x *NodeMetrics) GetLoad15() float64

func (*NodeMetrics) GetMemoryTotalBytes

func (x *NodeMetrics) GetMemoryTotalBytes() uint64

func (*NodeMetrics) GetMemoryUsedBytes

func (x *NodeMetrics) GetMemoryUsedBytes() uint64

func (*NodeMetrics) GetNetRxBytes

func (x *NodeMetrics) GetNetRxBytes() uint64

func (*NodeMetrics) GetNetTxBytes

func (x *NodeMetrics) GetNetTxBytes() uint64

func (*NodeMetrics) GetUptimeSeconds

func (x *NodeMetrics) GetUptimeSeconds() int64

func (*NodeMetrics) ProtoMessage

func (*NodeMetrics) ProtoMessage()

func (*NodeMetrics) ProtoReflect

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

func (*NodeMetrics) Reset

func (x *NodeMetrics) Reset()

func (*NodeMetrics) String

func (x *NodeMetrics) String() string

type Peer

type Peer struct {
	NodeId     string   `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Name       string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	PublicKey  string   `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Endpoint   string   `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // host:port
	AllowedIps []string `protobuf:"bytes,5,rep,name=allowed_ips,json=allowedIps,proto3" json:"allowed_ips,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

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

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAllowedIps

func (x *Peer) GetAllowedIps() []string

func (*Peer) GetEndpoint

func (x *Peer) GetEndpoint() string

func (*Peer) GetName

func (x *Peer) GetName() string

func (*Peer) GetNodeId

func (x *Peer) GetNodeId() string

func (*Peer) GetPublicKey

func (x *Peer) GetPublicKey() string

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

type PeerStatus

type PeerStatus struct {
	PublicKey         string  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	LastHandshakeUnix int64   `protobuf:"varint,2,opt,name=last_handshake_unix,json=lastHandshakeUnix,proto3" json:"last_handshake_unix,omitempty"`
	RxBytes           uint64  `protobuf:"varint,3,opt,name=rx_bytes,json=rxBytes,proto3" json:"rx_bytes,omitempty"`
	TxBytes           uint64  `protobuf:"varint,4,opt,name=tx_bytes,json=txBytes,proto3" json:"tx_bytes,omitempty"`
	Endpoint          string  `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"`          // as seen by WireGuard (may differ behind NAT)
	RttMs             float64 `protobuf:"fixed64,6,opt,name=rtt_ms,json=rttMs,proto3" json:"rtt_ms,omitempty"` // TCP probe to the peer's node address; 0 = unknown
	// contains filtered or unexported fields
}

func (*PeerStatus) Descriptor deprecated

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

Deprecated: Use PeerStatus.ProtoReflect.Descriptor instead.

func (*PeerStatus) GetEndpoint

func (x *PeerStatus) GetEndpoint() string

func (*PeerStatus) GetLastHandshakeUnix

func (x *PeerStatus) GetLastHandshakeUnix() int64

func (*PeerStatus) GetPublicKey

func (x *PeerStatus) GetPublicKey() string

func (*PeerStatus) GetRttMs

func (x *PeerStatus) GetRttMs() float64

func (*PeerStatus) GetRxBytes

func (x *PeerStatus) GetRxBytes() uint64

func (*PeerStatus) GetTxBytes

func (x *PeerStatus) GetTxBytes() uint64

func (*PeerStatus) ProtoMessage

func (*PeerStatus) ProtoMessage()

func (*PeerStatus) ProtoReflect

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

func (*PeerStatus) Reset

func (x *PeerStatus) Reset()

func (*PeerStatus) String

func (x *PeerStatus) String() string

type PortBinding

type PortBinding struct {
	HostIp        string `protobuf:"bytes,1,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` // e.g. "127.0.0.1"; empty = all interfaces
	HostPort      uint32 `protobuf:"varint,2,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
	ContainerPort uint32 `protobuf:"varint,3,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
	Protocol      string `protobuf:"bytes,4,opt,name=protocol,proto3" json:"protocol,omitempty"` // "tcp" (default) or "udp"
	// contains filtered or unexported fields
}

func (*PortBinding) Descriptor deprecated

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

Deprecated: Use PortBinding.ProtoReflect.Descriptor instead.

func (*PortBinding) GetContainerPort

func (x *PortBinding) GetContainerPort() uint32

func (*PortBinding) GetHostIp

func (x *PortBinding) GetHostIp() string

func (*PortBinding) GetHostPort

func (x *PortBinding) GetHostPort() uint32

func (*PortBinding) GetProtocol

func (x *PortBinding) GetProtocol() string

func (*PortBinding) ProtoMessage

func (*PortBinding) ProtoMessage()

func (*PortBinding) ProtoReflect

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

func (*PortBinding) Reset

func (x *PortBinding) Reset()

func (*PortBinding) String

func (x *PortBinding) String() string

type PullImage

type PullImage struct {
	Image        string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	RegistryAuth string `protobuf:"bytes,2,opt,name=registry_auth,json=registryAuth,proto3" json:"registry_auth,omitempty"` // X-Registry-Auth (short-lived)
	RegistryCa   string `protobuf:"bytes,3,opt,name=registry_ca,json=registryCa,proto3" json:"registry_ca,omitempty"`       // PEM to trust for the image's registry (self-signed, private networks)
	// contains filtered or unexported fields
}

PullImage asks a node to pull an image ahead of a deployment (§5.9 pre-pull), so new tasks start without waiting for the download.

func (*PullImage) Descriptor deprecated

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

Deprecated: Use PullImage.ProtoReflect.Descriptor instead.

func (*PullImage) GetImage

func (x *PullImage) GetImage() string

func (*PullImage) GetRegistryAuth

func (x *PullImage) GetRegistryAuth() string

func (*PullImage) GetRegistryCa

func (x *PullImage) GetRegistryCa() string

func (*PullImage) ProtoMessage

func (*PullImage) ProtoMessage()

func (*PullImage) ProtoReflect

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

func (*PullImage) Reset

func (x *PullImage) Reset()

func (*PullImage) String

func (x *PullImage) String() string

type RenewCertificate

type RenewCertificate struct {
	Csr string `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` // PEM CERTIFICATE REQUEST
	// contains filtered or unexported fields
}

RenewCertificate asks for a new node certificate for a freshly generated key, before the current one expires (certificates last 90 days).

func (*RenewCertificate) Descriptor deprecated

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

Deprecated: Use RenewCertificate.ProtoReflect.Descriptor instead.

func (*RenewCertificate) GetCsr

func (x *RenewCertificate) GetCsr() string

func (*RenewCertificate) ProtoMessage

func (*RenewCertificate) ProtoMessage()

func (*RenewCertificate) ProtoReflect

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

func (*RenewCertificate) Reset

func (x *RenewCertificate) Reset()

func (*RenewCertificate) String

func (x *RenewCertificate) String() string

type RestartPolicy

type RestartPolicy int32
const (
	RestartPolicy_RESTART_POLICY_UNSPECIFIED    RestartPolicy = 0 // same as UNLESS_STOPPED
	RestartPolicy_RESTART_POLICY_NO             RestartPolicy = 1
	RestartPolicy_RESTART_POLICY_ALWAYS         RestartPolicy = 2
	RestartPolicy_RESTART_POLICY_UNLESS_STOPPED RestartPolicy = 3
	RestartPolicy_RESTART_POLICY_ON_FAILURE     RestartPolicy = 4
)

func (RestartPolicy) Descriptor

func (RestartPolicy) Enum

func (x RestartPolicy) Enum() *RestartPolicy

func (RestartPolicy) EnumDescriptor deprecated

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

Deprecated: Use RestartPolicy.Descriptor instead.

func (RestartPolicy) Number

func (RestartPolicy) String

func (x RestartPolicy) String() string

func (RestartPolicy) Type

type RuleCounter

type RuleCounter struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // rule comment: host rule ID, "<group>:<in|out>:<n>" or a built-in name
	Packets uint64 `protobuf:"varint,2,opt,name=packets,proto3" json:"packets,omitempty"`
	Bytes   uint64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*RuleCounter) Descriptor deprecated

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

Deprecated: Use RuleCounter.ProtoReflect.Descriptor instead.

func (*RuleCounter) GetBytes

func (x *RuleCounter) GetBytes() uint64

func (*RuleCounter) GetId

func (x *RuleCounter) GetId() string

func (*RuleCounter) GetPackets

func (x *RuleCounter) GetPackets() uint64

func (*RuleCounter) ProtoMessage

func (*RuleCounter) ProtoMessage()

func (*RuleCounter) ProtoReflect

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

func (*RuleCounter) Reset

func (x *RuleCounter) Reset()

func (*RuleCounter) String

func (x *RuleCounter) String() string

type RunTask

type RunTask struct {
	CommandId string    `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	Spec      *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (*RunTask) Descriptor deprecated

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

Deprecated: Use RunTask.ProtoReflect.Descriptor instead.

func (*RunTask) GetCommandId

func (x *RunTask) GetCommandId() string

func (*RunTask) GetSpec

func (x *RunTask) GetSpec() *TaskSpec

func (*RunTask) ProtoMessage

func (*RunTask) ProtoMessage()

func (*RunTask) ProtoReflect

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

func (*RunTask) Reset

func (x *RunTask) Reset()

func (*RunTask) String

func (x *RunTask) String() string

type SecurityPolicy

type SecurityPolicy struct {
	Sets        []*SecuritySet  `protobuf:"bytes,1,rep,name=sets,proto3" json:"sets,omitempty"`
	Rules       []*SecurityRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	PlatformIps []string        `protobuf:"bytes,3,rep,name=platform_ips,json=platformIps,proto3" json:"platform_ips,omitempty"` // always allowed in: the nodes' mesh addresses (Traefik, health checks)
	// contains filtered or unexported fields
}

SecurityPolicy is the compiled form of every security group (§8.3): sets of task IPs and allow rules between them. Each agent enforces the rules for traffic to and from its local containers.

func (*SecurityPolicy) Descriptor deprecated

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

Deprecated: Use SecurityPolicy.ProtoReflect.Descriptor instead.

func (*SecurityPolicy) GetPlatformIps

func (x *SecurityPolicy) GetPlatformIps() []string

func (*SecurityPolicy) GetRules

func (x *SecurityPolicy) GetRules() []*SecurityRule

func (*SecurityPolicy) GetSets

func (x *SecurityPolicy) GetSets() []*SecuritySet

func (*SecurityPolicy) ProtoMessage

func (*SecurityPolicy) ProtoMessage()

func (*SecurityPolicy) ProtoReflect

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

func (*SecurityPolicy) Reset

func (x *SecurityPolicy) Reset()

func (*SecurityPolicy) String

func (x *SecurityPolicy) String() string

type SecurityRule

type SecurityRule struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                             // "<group ID>:<in|out>:<n>", for counters
	Direction string   `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"`               // in | out
	LocalSet  string   `protobuf:"bytes,3,opt,name=local_set,json=localSet,proto3" json:"local_set,omitempty"` // the members the rule is for
	PeerSets  []string `protobuf:"bytes,4,rep,name=peer_sets,json=peerSets,proto3" json:"peer_sets,omitempty"`
	PeerCidrs []string `protobuf:"bytes,5,rep,name=peer_cidrs,json=peerCidrs,proto3" json:"peer_cidrs,omitempty"`
	Protocol  string   `protobuf:"bytes,6,opt,name=protocol,proto3" json:"protocol,omitempty"` // tcp | udp | icmp | any
	Ports     string   `protobuf:"bytes,7,opt,name=ports,proto3" json:"ports,omitempty"`       // "", "8080" or "8000-8100"
	// contains filtered or unexported fields
}

func (*SecurityRule) Descriptor deprecated

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

Deprecated: Use SecurityRule.ProtoReflect.Descriptor instead.

func (*SecurityRule) GetDirection

func (x *SecurityRule) GetDirection() string

func (*SecurityRule) GetId

func (x *SecurityRule) GetId() string

func (*SecurityRule) GetLocalSet

func (x *SecurityRule) GetLocalSet() string

func (*SecurityRule) GetPeerCidrs

func (x *SecurityRule) GetPeerCidrs() []string

func (*SecurityRule) GetPeerSets

func (x *SecurityRule) GetPeerSets() []string

func (*SecurityRule) GetPorts

func (x *SecurityRule) GetPorts() string

func (*SecurityRule) GetProtocol

func (x *SecurityRule) GetProtocol() string

func (*SecurityRule) ProtoMessage

func (*SecurityRule) ProtoMessage()

func (*SecurityRule) ProtoReflect

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

func (*SecurityRule) Reset

func (x *SecurityRule) Reset()

func (*SecurityRule) String

func (x *SecurityRule) String() string

type SecuritySet

type SecuritySet struct {
	Name string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // nftables set name
	Ips  []string `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"`   // known members on every node
	// Local containers join when their labels match one of these, so new
	// tasks are classified before the controller hears of them:
	// "svc:<service ID>", "env:<project>/<env>", "proj:<project>",
	// "standalone:<project>[/<env>]" (job runs without a service).
	Match []string `protobuf:"bytes,3,rep,name=match,proto3" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*SecuritySet) Descriptor deprecated

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

Deprecated: Use SecuritySet.ProtoReflect.Descriptor instead.

func (*SecuritySet) GetIps

func (x *SecuritySet) GetIps() []string

func (*SecuritySet) GetMatch

func (x *SecuritySet) GetMatch() []string

func (*SecuritySet) GetName

func (x *SecuritySet) GetName() string

func (*SecuritySet) ProtoMessage

func (*SecuritySet) ProtoMessage()

func (*SecuritySet) ProtoReflect

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

func (*SecuritySet) Reset

func (x *SecuritySet) Reset()

func (*SecuritySet) String

func (x *SecuritySet) String() string

type StopTask

type StopTask struct {
	CommandId      string `protobuf:"bytes,1,opt,name=command_id,json=commandId,proto3" json:"command_id,omitempty"`
	TaskId         string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	TimeoutSeconds int32  `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` // before SIGKILL
	Remove         bool   `protobuf:"varint,4,opt,name=remove,proto3" json:"remove,omitempty"`                                       // also remove the container
	// Named volumes to delete after removing the container (a database
	// member that is gone for good). Only syncloud-db-* volumes are removed.
	RemoveVolumes []string `protobuf:"bytes,5,rep,name=remove_volumes,json=removeVolumes,proto3" json:"remove_volumes,omitempty"`
	// contains filtered or unexported fields
}

func (*StopTask) Descriptor deprecated

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

Deprecated: Use StopTask.ProtoReflect.Descriptor instead.

func (*StopTask) GetCommandId

func (x *StopTask) GetCommandId() string

func (*StopTask) GetRemove

func (x *StopTask) GetRemove() bool

func (*StopTask) GetRemoveVolumes

func (x *StopTask) GetRemoveVolumes() []string

func (*StopTask) GetTaskId

func (x *StopTask) GetTaskId() string

func (*StopTask) GetTimeoutSeconds

func (x *StopTask) GetTimeoutSeconds() int32

func (*StopTask) ProtoMessage

func (*StopTask) ProtoMessage()

func (*StopTask) ProtoReflect

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

func (*StopTask) Reset

func (x *StopTask) Reset()

func (*StopTask) String

func (x *StopTask) String() string

type TaskMetrics

type TaskMetrics struct {
	TaskId           string  `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	ServiceId        string  `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Project          string  `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	Environment      string  `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"`
	Service          string  `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	AtUnixMs         int64   `protobuf:"varint,6,opt,name=at_unix_ms,json=atUnixMs,proto3" json:"at_unix_ms,omitempty"`
	CpuPercent       float64 `protobuf:"fixed64,7,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`   // 100 = one full core
	MemoryBytes      uint64  `protobuf:"varint,8,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"` // usage minus page cache
	MemoryLimitBytes uint64  `protobuf:"varint,9,opt,name=memory_limit_bytes,json=memoryLimitBytes,proto3" json:"memory_limit_bytes,omitempty"`
	NetRxBytes       uint64  `protobuf:"varint,10,opt,name=net_rx_bytes,json=netRxBytes,proto3" json:"net_rx_bytes,omitempty"`
	NetTxBytes       uint64  `protobuf:"varint,11,opt,name=net_tx_bytes,json=netTxBytes,proto3" json:"net_tx_bytes,omitempty"`
	BlockReadBytes   uint64  `protobuf:"varint,12,opt,name=block_read_bytes,json=blockReadBytes,proto3" json:"block_read_bytes,omitempty"`
	BlockWriteBytes  uint64  `protobuf:"varint,13,opt,name=block_write_bytes,json=blockWriteBytes,proto3" json:"block_write_bytes,omitempty"`
	// contains filtered or unexported fields
}

TaskMetrics is one resource sample of a task's container. Byte counters are cumulative since the container started.

func (*TaskMetrics) Descriptor deprecated

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

Deprecated: Use TaskMetrics.ProtoReflect.Descriptor instead.

func (*TaskMetrics) GetAtUnixMs

func (x *TaskMetrics) GetAtUnixMs() int64

func (*TaskMetrics) GetBlockReadBytes

func (x *TaskMetrics) GetBlockReadBytes() uint64

func (*TaskMetrics) GetBlockWriteBytes

func (x *TaskMetrics) GetBlockWriteBytes() uint64

func (*TaskMetrics) GetCpuPercent

func (x *TaskMetrics) GetCpuPercent() float64

func (*TaskMetrics) GetEnvironment

func (x *TaskMetrics) GetEnvironment() string

func (*TaskMetrics) GetMemoryBytes

func (x *TaskMetrics) GetMemoryBytes() uint64

func (*TaskMetrics) GetMemoryLimitBytes

func (x *TaskMetrics) GetMemoryLimitBytes() uint64

func (*TaskMetrics) GetNetRxBytes

func (x *TaskMetrics) GetNetRxBytes() uint64

func (*TaskMetrics) GetNetTxBytes

func (x *TaskMetrics) GetNetTxBytes() uint64

func (*TaskMetrics) GetProject

func (x *TaskMetrics) GetProject() string

func (*TaskMetrics) GetService

func (x *TaskMetrics) GetService() string

func (*TaskMetrics) GetServiceId

func (x *TaskMetrics) GetServiceId() string

func (*TaskMetrics) GetTaskId

func (x *TaskMetrics) GetTaskId() string

func (*TaskMetrics) ProtoMessage

func (*TaskMetrics) ProtoMessage()

func (*TaskMetrics) ProtoReflect

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

func (*TaskMetrics) Reset

func (x *TaskMetrics) Reset()

func (*TaskMetrics) String

func (x *TaskMetrics) String() string

type TaskSpec

type TaskSpec struct {
	TaskId           string            `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` // stable ID, also the container label syncloud.task_id
	Name             string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                   // container name
	Image            string            `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	Command          []string          `protobuf:"bytes,4,rep,name=command,proto3" json:"command,omitempty"` // overrides the image CMD when set
	Env              map[string]string ``                                                                    /* 133-byte string literal not displayed */
	Labels           map[string]string ``                                                                    /* 139-byte string literal not displayed */
	Ports            []*PortBinding    `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"`
	Mounts           []*Mount          `protobuf:"bytes,8,rep,name=mounts,proto3" json:"mounts,omitempty"`
	NetworkMode      string            `protobuf:"bytes,9,opt,name=network_mode,json=networkMode,proto3" json:"network_mode,omitempty"` // "host", or a Docker network name (created if missing)
	Restart          RestartPolicy     `protobuf:"varint,10,opt,name=restart,proto3,enum=syncloud.agent.v1.RestartPolicy" json:"restart,omitempty"`
	MemoryLimitBytes int64             `protobuf:"varint,11,opt,name=memory_limit_bytes,json=memoryLimitBytes,proto3" json:"memory_limit_bytes,omitempty"` // 0 = unlimited
	NanoCpus         int64             `protobuf:"varint,12,opt,name=nano_cpus,json=nanoCpus,proto3" json:"nano_cpus,omitempty"`                           // 0 = unlimited; 1e9 = one CPU
	// Weight of the container's CPU under contention (Docker CPU shares,
	// 1024 = one core's worth; 0 = Docker's default). Applied to a running
	// container in place: not part of the spec hash.
	CpuShares int64 `protobuf:"varint,23,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"`
	// Memory the kernel keeps for the container under memory pressure
	// (Docker's soft limit; 0 = none). Applied in place like cpu_shares.
	MemoryReservationBytes int64        ``                                                                                                   /* 131-byte string literal not displayed */
	ExtraHosts             []string     `protobuf:"bytes,13,rep,name=extra_hosts,json=extraHosts,proto3" json:"extra_hosts,omitempty"`       // "name:ip" or "name:host-gateway"
	System                 bool         `protobuf:"varint,14,opt,name=system,proto3" json:"system,omitempty"`                                // platform component (§5.0): never evicted by users
	DnsServers             []string     `protobuf:"bytes,15,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"`       // the node's discovery DNS (§8.1)
	DnsSearch              []string     `protobuf:"bytes,16,rep,name=dns_search,json=dnsSearch,proto3" json:"dns_search,omitempty"`          // e.g. production.shop.syncloud.internal
	Health                 *HealthCheck `protobuf:"bytes,17,opt,name=health,proto3" json:"health,omitempty"`                                 // probed by the agent (§5.6); unset = no check
	Privileged             bool         `protobuf:"varint,19,opt,name=privileged,proto3" json:"privileged,omitempty"`                        // only for platform builds (BuildKit, §5.8); never user-settable
	RegistryAuth           string       `protobuf:"bytes,18,opt,name=registry_auth,json=registryAuth,proto3" json:"registry_auth,omitempty"` // X-Registry-Auth for the pull (short-lived; not part of the spec hash)
	Entrypoint             []string     `protobuf:"bytes,20,rep,name=entrypoint,proto3" json:"entrypoint,omitempty"`                         // overrides the image ENTRYPOINT when set
	// registry_ca is a certificate to trust for the image's registry, when the
	// platform registry only has a self-signed one (§5.9; not part of the spec hash).
	RegistryCa string `protobuf:"bytes,21,opt,name=registry_ca,json=registryCa,proto3" json:"registry_ca,omitempty"`
	// network_aliases are names the container answers to on its Docker
	// network, so peers on the same node resolve them without the discovery
	// DNS (a node outside the mesh).
	NetworkAliases []string `protobuf:"bytes,22,rep,name=network_aliases,json=networkAliases,proto3" json:"network_aliases,omitempty"`
	// contains filtered or unexported fields
}

TaskSpec describes one container. The agent creates it idempotently: a container whose spec hash matches is left running; otherwise it is replaced.

func (*TaskSpec) Descriptor deprecated

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

Deprecated: Use TaskSpec.ProtoReflect.Descriptor instead.

func (*TaskSpec) GetCommand

func (x *TaskSpec) GetCommand() []string

func (*TaskSpec) GetCpuShares added in v0.1.5

func (x *TaskSpec) GetCpuShares() int64

func (*TaskSpec) GetDnsSearch

func (x *TaskSpec) GetDnsSearch() []string

func (*TaskSpec) GetDnsServers

func (x *TaskSpec) GetDnsServers() []string

func (*TaskSpec) GetEntrypoint

func (x *TaskSpec) GetEntrypoint() []string

func (*TaskSpec) GetEnv

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

func (*TaskSpec) GetExtraHosts

func (x *TaskSpec) GetExtraHosts() []string

func (*TaskSpec) GetHealth

func (x *TaskSpec) GetHealth() *HealthCheck

func (*TaskSpec) GetImage

func (x *TaskSpec) GetImage() string

func (*TaskSpec) GetLabels

func (x *TaskSpec) GetLabels() map[string]string

func (*TaskSpec) GetMemoryLimitBytes

func (x *TaskSpec) GetMemoryLimitBytes() int64

func (*TaskSpec) GetMemoryReservationBytes added in v0.1.5

func (x *TaskSpec) GetMemoryReservationBytes() int64

func (*TaskSpec) GetMounts

func (x *TaskSpec) GetMounts() []*Mount

func (*TaskSpec) GetName

func (x *TaskSpec) GetName() string

func (*TaskSpec) GetNanoCpus

func (x *TaskSpec) GetNanoCpus() int64

func (*TaskSpec) GetNetworkAliases

func (x *TaskSpec) GetNetworkAliases() []string

func (*TaskSpec) GetNetworkMode

func (x *TaskSpec) GetNetworkMode() string

func (*TaskSpec) GetPorts

func (x *TaskSpec) GetPorts() []*PortBinding

func (*TaskSpec) GetPrivileged

func (x *TaskSpec) GetPrivileged() bool

func (*TaskSpec) GetRegistryAuth

func (x *TaskSpec) GetRegistryAuth() string

func (*TaskSpec) GetRegistryCa

func (x *TaskSpec) GetRegistryCa() string

func (*TaskSpec) GetRestart

func (x *TaskSpec) GetRestart() RestartPolicy

func (*TaskSpec) GetSystem

func (x *TaskSpec) GetSystem() bool

func (*TaskSpec) GetTaskId

func (x *TaskSpec) GetTaskId() string

func (*TaskSpec) ProtoMessage

func (*TaskSpec) ProtoMessage()

func (*TaskSpec) ProtoReflect

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

func (*TaskSpec) Reset

func (x *TaskSpec) Reset()

func (*TaskSpec) String

func (x *TaskSpec) String() string

type TaskState

type TaskState int32
const (
	TaskState_TASK_STATE_UNSPECIFIED TaskState = 0
	TaskState_TASK_STATE_PULLING     TaskState = 1
	TaskState_TASK_STATE_STARTING    TaskState = 2
	TaskState_TASK_STATE_RUNNING     TaskState = 3
	TaskState_TASK_STATE_EXITED      TaskState = 4
	TaskState_TASK_STATE_FAILED      TaskState = 5 // could not be created/started (see error)
	TaskState_TASK_STATE_REMOVED     TaskState = 6
)

func (TaskState) Descriptor

func (TaskState) Descriptor() protoreflect.EnumDescriptor

func (TaskState) Enum

func (x TaskState) Enum() *TaskState

func (TaskState) EnumDescriptor deprecated

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

Deprecated: Use TaskState.Descriptor instead.

func (TaskState) Number

func (x TaskState) Number() protoreflect.EnumNumber

func (TaskState) String

func (x TaskState) String() string

func (TaskState) Type

type TaskStatus

type TaskStatus struct {
	TaskId        string    `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	State         TaskState `protobuf:"varint,2,opt,name=state,proto3,enum=syncloud.agent.v1.TaskState" json:"state,omitempty"`
	ContainerId   string    `protobuf:"bytes,3,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	Image         string    `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	Health        string    `protobuf:"bytes,5,opt,name=health,proto3" json:"health,omitempty"` // Docker health: "", starting, healthy, unhealthy
	ExitCode      int32     `protobuf:"varint,6,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	Error         string    `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"`
	StartedAtUnix int64     `protobuf:"varint,8,opt,name=started_at_unix,json=startedAtUnix,proto3" json:"started_at_unix,omitempty"`
	SpecHash      string    `protobuf:"bytes,9,opt,name=spec_hash,json=specHash,proto3" json:"spec_hash,omitempty"`
	Ip            string    `protobuf:"bytes,10,opt,name=ip,proto3" json:"ip,omitempty"` // address on the task's network (the "syncloud" network for services)
	// contains filtered or unexported fields
}

func (*TaskStatus) Descriptor deprecated

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

Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead.

func (*TaskStatus) GetContainerId

func (x *TaskStatus) GetContainerId() string

func (*TaskStatus) GetError

func (x *TaskStatus) GetError() string

func (*TaskStatus) GetExitCode

func (x *TaskStatus) GetExitCode() int32

func (*TaskStatus) GetHealth

func (x *TaskStatus) GetHealth() string

func (*TaskStatus) GetImage

func (x *TaskStatus) GetImage() string

func (*TaskStatus) GetIp

func (x *TaskStatus) GetIp() string

func (*TaskStatus) GetSpecHash

func (x *TaskStatus) GetSpecHash() string

func (*TaskStatus) GetStartedAtUnix

func (x *TaskStatus) GetStartedAtUnix() int64

func (*TaskStatus) GetState

func (x *TaskStatus) GetState() TaskState

func (*TaskStatus) GetTaskId

func (x *TaskStatus) GetTaskId() string

func (*TaskStatus) ProtoMessage

func (*TaskStatus) ProtoMessage()

func (*TaskStatus) ProtoReflect

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

func (*TaskStatus) Reset

func (x *TaskStatus) Reset()

func (*TaskStatus) String

func (x *TaskStatus) String() string

type UnimplementedAgentGatewayServiceServer

type UnimplementedAgentGatewayServiceServer struct{}

UnimplementedAgentGatewayServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAgentGatewayServiceServer) Connect

type UnsafeAgentGatewayServiceServer

type UnsafeAgentGatewayServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAgentGatewayServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentGatewayServiceServer will result in compilation errors.

type UpgradeAgent

type UpgradeAgent struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Sha256  string `protobuf:"bytes,2,opt,name=sha256,proto3" json:"sha256,omitempty"`
	Size    int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Offset  int64  `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	Data    []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	Last    bool   `protobuf:"varint,6,opt,name=last,proto3" json:"last,omitempty"`
	// contains filtered or unexported fields
}

UpgradeAgent streams a new agent binary in chunks (§5.0.1, §6.2). After the last chunk checks out against sha256 the agent replaces itself; a guard restores the old binary if the new one does not reconnect.

func (*UpgradeAgent) Descriptor deprecated

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

Deprecated: Use UpgradeAgent.ProtoReflect.Descriptor instead.

func (*UpgradeAgent) GetData

func (x *UpgradeAgent) GetData() []byte

func (*UpgradeAgent) GetLast

func (x *UpgradeAgent) GetLast() bool

func (*UpgradeAgent) GetOffset

func (x *UpgradeAgent) GetOffset() int64

func (*UpgradeAgent) GetSha256

func (x *UpgradeAgent) GetSha256() string

func (*UpgradeAgent) GetSize

func (x *UpgradeAgent) GetSize() int64

func (*UpgradeAgent) GetVersion

func (x *UpgradeAgent) GetVersion() string

func (*UpgradeAgent) ProtoMessage

func (*UpgradeAgent) ProtoMessage()

func (*UpgradeAgent) ProtoReflect

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

func (*UpgradeAgent) Reset

func (x *UpgradeAgent) Reset()

func (*UpgradeAgent) String

func (x *UpgradeAgent) String() string

type UpgradeResult

type UpgradeResult struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

UpgradeResult reports an agent upgrade that failed before the restart, or one rolled back by the guard (reported after reconnecting).

func (*UpgradeResult) Descriptor deprecated

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

Deprecated: Use UpgradeResult.ProtoReflect.Descriptor instead.

func (*UpgradeResult) GetError

func (x *UpgradeResult) GetError() string

func (*UpgradeResult) GetVersion

func (x *UpgradeResult) GetVersion() string

func (*UpgradeResult) ProtoMessage

func (*UpgradeResult) ProtoMessage()

func (*UpgradeResult) ProtoReflect

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

func (*UpgradeResult) Reset

func (x *UpgradeResult) Reset()

func (*UpgradeResult) String

func (x *UpgradeResult) String() string

type VirtualPort

type VirtualPort struct {
	Protocol string   `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"` // tcp | udp
	Port     uint32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Backends []string `protobuf:"bytes,3,rep,name=backends,proto3" json:"backends,omitempty"` // ip:port of running tasks
	// contains filtered or unexported fields
}

func (*VirtualPort) Descriptor deprecated

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

Deprecated: Use VirtualPort.ProtoReflect.Descriptor instead.

func (*VirtualPort) GetBackends

func (x *VirtualPort) GetBackends() []string

func (*VirtualPort) GetPort

func (x *VirtualPort) GetPort() uint32

func (*VirtualPort) GetProtocol

func (x *VirtualPort) GetProtocol() string

func (*VirtualPort) ProtoMessage

func (*VirtualPort) ProtoMessage()

func (*VirtualPort) ProtoReflect

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

func (*VirtualPort) Reset

func (x *VirtualPort) Reset()

func (*VirtualPort) String

func (x *VirtualPort) String() string

type VirtualService

type VirtualService struct {
	Id    string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // service ID (used in nftables chain names)
	Vip   string         `protobuf:"bytes,2,opt,name=vip,proto3" json:"vip,omitempty"`
	Ports []*VirtualPort `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualService) Descriptor deprecated

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

Deprecated: Use VirtualService.ProtoReflect.Descriptor instead.

func (*VirtualService) GetId

func (x *VirtualService) GetId() string

func (*VirtualService) GetPorts

func (x *VirtualService) GetPorts() []*VirtualPort

func (*VirtualService) GetVip

func (x *VirtualService) GetVip() string

func (*VirtualService) ProtoMessage

func (*VirtualService) ProtoMessage()

func (*VirtualService) ProtoReflect

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

func (*VirtualService) Reset

func (x *VirtualService) Reset()

func (*VirtualService) String

func (x *VirtualService) String() string

type Welcome

type Welcome struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// How often the agent should send heartbeats.
	HeartbeatIntervalSeconds int32 `` /* 136-byte string literal not displayed */
	// gateways are the addresses to reach the gateway at, tried in order
	// (Traefik on 443 first, the direct port last). Empty: keep the current.
	Gateways []*GatewayEndpoint `protobuf:"bytes,3,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// contains filtered or unexported fields
}

func (*Welcome) Descriptor deprecated

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

Deprecated: Use Welcome.ProtoReflect.Descriptor instead.

func (*Welcome) GetGateways added in v0.2.2

func (x *Welcome) GetGateways() []*GatewayEndpoint

func (*Welcome) GetHeartbeatIntervalSeconds

func (x *Welcome) GetHeartbeatIntervalSeconds() int32

func (*Welcome) GetNodeId

func (x *Welcome) GetNodeId() string

func (*Welcome) ProtoMessage

func (*Welcome) ProtoMessage()

func (*Welcome) ProtoReflect

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

func (*Welcome) Reset

func (x *Welcome) Reset()

func (*Welcome) String

func (x *Welcome) String() string

Jump to

Keyboard shortcuts

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