agentpb

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ingest_RegisterAgent_FullMethodName = "/maintenant.agent.v1.Ingest/RegisterAgent"
	Ingest_Push_FullMethodName          = "/maintenant.agent.v1.Ingest/Push"
)

Variables

View Source
var (
	Runtime_name = map[int32]string{
		0: "RUNTIME_UNSPECIFIED",
		1: "RUNTIME_DOCKER",
		2: "RUNTIME_SWARM",
		3: "RUNTIME_KUBERNETES",
	}
	Runtime_value = map[string]int32{
		"RUNTIME_UNSPECIFIED": 0,
		"RUNTIME_DOCKER":      1,
		"RUNTIME_SWARM":       2,
		"RUNTIME_KUBERNETES":  3,
	}
)

Enum value maps for Runtime.

View Source
var (
	ContainerState_name = map[int32]string{
		0: "CONTAINER_STATE_UNSPECIFIED",
		1: "CONTAINER_STATE_CREATED",
		2: "CONTAINER_STATE_RUNNING",
		3: "CONTAINER_STATE_PAUSED",
		4: "CONTAINER_STATE_RESTARTING",
		5: "CONTAINER_STATE_REMOVING",
		6: "CONTAINER_STATE_EXITED",
		7: "CONTAINER_STATE_DEAD",
	}
	ContainerState_value = map[string]int32{
		"CONTAINER_STATE_UNSPECIFIED": 0,
		"CONTAINER_STATE_CREATED":     1,
		"CONTAINER_STATE_RUNNING":     2,
		"CONTAINER_STATE_PAUSED":      3,
		"CONTAINER_STATE_RESTARTING":  4,
		"CONTAINER_STATE_REMOVING":    5,
		"CONTAINER_STATE_EXITED":      6,
		"CONTAINER_STATE_DEAD":        7,
	}
)

Enum value maps for ContainerState.

View Source
var (
	EndpointStatus_name = map[int32]string{
		0: "ENDPOINT_STATUS_UNSPECIFIED",
		1: "ENDPOINT_STATUS_UP",
		2: "ENDPOINT_STATUS_DOWN",
		3: "ENDPOINT_STATUS_DEGRADED",
	}
	EndpointStatus_value = map[string]int32{
		"ENDPOINT_STATUS_UNSPECIFIED": 0,
		"ENDPOINT_STATUS_UP":          1,
		"ENDPOINT_STATUS_DOWN":        2,
		"ENDPOINT_STATUS_DEGRADED":    3,
	}
)

Enum value maps for EndpointStatus.

View Source
var (
	HostOSSource_name = map[int32]string{
		0: "HOST_OS_SOURCE_UNSPECIFIED",
		1: "HOST_OS_SOURCE_HOST_FILE",
		2: "HOST_OS_SOURCE_KUBERNETES_NODE",
	}
	HostOSSource_value = map[string]int32{
		"HOST_OS_SOURCE_UNSPECIFIED":     0,
		"HOST_OS_SOURCE_HOST_FILE":       1,
		"HOST_OS_SOURCE_KUBERNETES_NODE": 2,
	}
)

Enum value maps for HostOSSource.

View Source
var File_proto_ingest_proto protoreflect.FileDescriptor
View Source
var Ingest_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "maintenant.agent.v1.Ingest",
	HandlerType: (*IngestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterAgent",
			Handler:    _Ingest_RegisterAgent_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Push",
			Handler:       _Ingest_Push_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/ingest.proto",
}

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

Functions

func RegisterIngestServer

func RegisterIngestServer(s grpc.ServiceRegistrar, srv IngestServer)

Types

type AgentCommand added in v1.3.8

type AgentCommand struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Types that are valid to be assigned to Command:
	//
	//	*AgentCommand_Logs
	//	*AgentCommand_Cancel
	Command isAgentCommand_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*AgentCommand) Descriptor deprecated added in v1.3.8

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

Deprecated: Use AgentCommand.ProtoReflect.Descriptor instead.

func (*AgentCommand) GetCancel added in v1.3.8

func (x *AgentCommand) GetCancel() *CancelRequest

func (*AgentCommand) GetCommand added in v1.3.8

func (x *AgentCommand) GetCommand() isAgentCommand_Command

func (*AgentCommand) GetLogs added in v1.3.8

func (x *AgentCommand) GetLogs() *LogsRequest

func (*AgentCommand) GetRequestId added in v1.3.8

func (x *AgentCommand) GetRequestId() string

func (*AgentCommand) ProtoMessage added in v1.3.8

func (*AgentCommand) ProtoMessage()

func (*AgentCommand) ProtoReflect added in v1.3.8

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

func (*AgentCommand) Reset added in v1.3.8

func (x *AgentCommand) Reset()

func (*AgentCommand) String added in v1.3.8

func (x *AgentCommand) String() string

type AgentCommand_Cancel added in v1.3.8

type AgentCommand_Cancel struct {
	Cancel *CancelRequest `protobuf:"bytes,11,opt,name=cancel,proto3,oneof"` // stop work on request_id (viewer went away)
}

type AgentCommand_Logs added in v1.3.8

type AgentCommand_Logs struct {
	Logs *LogsRequest `protobuf:"bytes,10,opt,name=logs,proto3,oneof"`
}

type AgentConfig

type AgentConfig struct {

	// Server-side defaults pushed once at registration. The agent does NOT
	// accept dynamic reconfiguration during streaming — push-only invariant.
	ResourceSampleIntervalSeconds uint32 `` // default 10
	/* 153-byte string literal not displayed */
	CertificateScanIntervalSeconds uint32 `` // default 60
	/* 156-byte string literal not displayed */
	MaxEventsPerSecond uint32 `protobuf:"varint,3,opt,name=max_events_per_second,json=maxEventsPerSecond,proto3" json:"max_events_per_second,omitempty"` // default 1000
	// contains filtered or unexported fields
}

func (*AgentConfig) Descriptor deprecated

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

Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead.

func (*AgentConfig) GetCertificateScanIntervalSeconds

func (x *AgentConfig) GetCertificateScanIntervalSeconds() uint32

func (*AgentConfig) GetMaxEventsPerSecond

func (x *AgentConfig) GetMaxEventsPerSecond() uint32

func (*AgentConfig) GetResourceSampleIntervalSeconds

func (x *AgentConfig) GetResourceSampleIntervalSeconds() uint32

func (*AgentConfig) ProtoMessage

func (*AgentConfig) ProtoMessage()

func (*AgentConfig) ProtoReflect

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

func (*AgentConfig) Reset

func (x *AgentConfig) Reset()

func (*AgentConfig) String

func (x *AgentConfig) String() string

type AgentEvent

type AgentEvent struct {
	AgentId    string                 `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
	EventId    string                 `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` // UUID v4 generated by agent
	ObservedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"`
	Seq        uint64                 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"`           // monotonic per-stream, used for EventAck
	Replayed   bool                   `protobuf:"varint,5,opt,name=replayed,proto3" json:"replayed,omitempty"` // set when the event comes out of the agent's spool
	// Types that are valid to be assigned to Body:
	//
	//	*AgentEvent_Container
	//	*AgentEvent_Endpoint
	//	*AgentEvent_Heartbeat
	//	*AgentEvent_Resource
	//	*AgentEvent_Certificate
	//	*AgentEvent_Swarm
	//	*AgentEvent_Kubernetes
	//	*AgentEvent_Inventory
	//	*AgentEvent_HostOs
	Body isAgentEvent_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*AgentEvent) Descriptor deprecated

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

Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead.

func (*AgentEvent) GetAgentId

func (x *AgentEvent) GetAgentId() string

func (*AgentEvent) GetBody

func (x *AgentEvent) GetBody() isAgentEvent_Body

func (*AgentEvent) GetCertificate

func (x *AgentEvent) GetCertificate() *CertificateInfo

func (*AgentEvent) GetContainer

func (x *AgentEvent) GetContainer() *ContainerEvent

func (*AgentEvent) GetEndpoint

func (x *AgentEvent) GetEndpoint() *EndpointEvent

func (*AgentEvent) GetEventId

func (x *AgentEvent) GetEventId() string

func (*AgentEvent) GetHeartbeat

func (x *AgentEvent) GetHeartbeat() *HeartbeatEvent

func (*AgentEvent) GetHostOs added in v1.7.0

func (x *AgentEvent) GetHostOs() *HostOSMsg

func (*AgentEvent) GetInventory added in v1.3.8

func (x *AgentEvent) GetInventory() *ContainerInventory

func (*AgentEvent) GetKubernetes

func (x *AgentEvent) GetKubernetes() *KubernetesTopology

func (*AgentEvent) GetObservedAt

func (x *AgentEvent) GetObservedAt() *timestamppb.Timestamp

func (*AgentEvent) GetReplayed added in v1.6.0

func (x *AgentEvent) GetReplayed() bool

func (*AgentEvent) GetResource

func (x *AgentEvent) GetResource() *ResourceSample

func (*AgentEvent) GetSeq

func (x *AgentEvent) GetSeq() uint64

func (*AgentEvent) GetSwarm

func (x *AgentEvent) GetSwarm() *SwarmTopology

func (*AgentEvent) ProtoMessage

func (*AgentEvent) ProtoMessage()

func (*AgentEvent) ProtoReflect

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

func (*AgentEvent) Reset

func (x *AgentEvent) Reset()

func (*AgentEvent) String

func (x *AgentEvent) String() string

type AgentEvent_Certificate

type AgentEvent_Certificate struct {
	Certificate *CertificateInfo `protobuf:"bytes,14,opt,name=certificate,proto3,oneof"`
}

type AgentEvent_Container

type AgentEvent_Container struct {
	Container *ContainerEvent `protobuf:"bytes,10,opt,name=container,proto3,oneof"`
}

type AgentEvent_Endpoint

type AgentEvent_Endpoint struct {
	Endpoint *EndpointEvent `protobuf:"bytes,11,opt,name=endpoint,proto3,oneof"`
}

type AgentEvent_Heartbeat

type AgentEvent_Heartbeat struct {
	Heartbeat *HeartbeatEvent `protobuf:"bytes,12,opt,name=heartbeat,proto3,oneof"`
}

type AgentEvent_HostOs added in v1.7.0

type AgentEvent_HostOs struct {
	HostOs *HostOSMsg `protobuf:"bytes,18,opt,name=host_os,json=hostOs,proto3,oneof"`
}

type AgentEvent_Inventory added in v1.3.8

type AgentEvent_Inventory struct {
	Inventory *ContainerInventory `protobuf:"bytes,17,opt,name=inventory,proto3,oneof"`
}

type AgentEvent_Kubernetes

type AgentEvent_Kubernetes struct {
	Kubernetes *KubernetesTopology `protobuf:"bytes,16,opt,name=kubernetes,proto3,oneof"`
}

type AgentEvent_Resource

type AgentEvent_Resource struct {
	Resource *ResourceSample `protobuf:"bytes,13,opt,name=resource,proto3,oneof"`
}

type AgentEvent_Swarm

type AgentEvent_Swarm struct {
	Swarm *SwarmTopology `protobuf:"bytes,15,opt,name=swarm,proto3,oneof"`
}

type AuthChallenge

type AuthChallenge struct {
	Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // exactly 32 bytes random, generated server-side per stream
	// contains filtered or unexported fields
}

func (*AuthChallenge) Descriptor deprecated

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

Deprecated: Use AuthChallenge.ProtoReflect.Descriptor instead.

func (*AuthChallenge) GetNonce

func (x *AuthChallenge) GetNonce() []byte

func (*AuthChallenge) ProtoMessage

func (*AuthChallenge) ProtoMessage()

func (*AuthChallenge) ProtoReflect

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

func (*AuthChallenge) Reset

func (x *AuthChallenge) Reset()

func (*AuthChallenge) String

func (x *AuthChallenge) String() string

type AuthResponse

type AuthResponse struct {
	AgentId   string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // UUID v4
	Timestamp int64  `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`           // unix seconds, client clock at signing time
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`            // Ed25519.Sign(privkey, signing_payload)
	// Reported on every connect, unlike RegisterRequest.agent_version which is
	// frozen at enrollment time and goes stale the moment the agent is upgraded.
	// The server refreshes the stored version from this.
	AgentVersion string `protobuf:"bytes,4,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	// Command families this build understands, e.g. ["logs"]. Absent on agents
	// predating the command channel, which is exactly how the server detects them.
	// NOT part of the signing payload — adding fields here never breaks the
	// signature, so old and new agents interoperate with old and new servers.
	Capabilities []string `protobuf:"bytes,5,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthResponse) Descriptor deprecated

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

Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.

func (*AuthResponse) GetAgentId

func (x *AuthResponse) GetAgentId() string

func (*AuthResponse) GetAgentVersion added in v1.3.8

func (x *AuthResponse) GetAgentVersion() string

func (*AuthResponse) GetCapabilities added in v1.3.8

func (x *AuthResponse) GetCapabilities() []string

func (*AuthResponse) GetSignature

func (x *AuthResponse) GetSignature() []byte

func (*AuthResponse) GetTimestamp

func (x *AuthResponse) GetTimestamp() int64

func (*AuthResponse) ProtoMessage

func (*AuthResponse) ProtoMessage()

func (*AuthResponse) ProtoReflect

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

func (*AuthResponse) Reset

func (x *AuthResponse) Reset()

func (*AuthResponse) String

func (x *AuthResponse) String() string

type CancelRequest added in v1.3.8

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

CancelRequest carries no body: the enclosing AgentCommand.request_id names the request to abort.

func (*CancelRequest) Descriptor deprecated added in v1.3.8

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

Deprecated: Use CancelRequest.ProtoReflect.Descriptor instead.

func (*CancelRequest) ProtoMessage added in v1.3.8

func (*CancelRequest) ProtoMessage()

func (*CancelRequest) ProtoReflect added in v1.3.8

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

func (*CancelRequest) Reset added in v1.3.8

func (x *CancelRequest) Reset()

func (*CancelRequest) String added in v1.3.8

func (x *CancelRequest) String() string

type CertificateInfo

type CertificateInfo struct {
	Host              string                 `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port              uint32                 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	SubjectCn         string                 `protobuf:"bytes,3,opt,name=subject_cn,json=subjectCn,proto3" json:"subject_cn,omitempty"`
	IssuerCn          string                 `protobuf:"bytes,4,opt,name=issuer_cn,json=issuerCn,proto3" json:"issuer_cn,omitempty"`
	NotBefore         *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"`
	NotAfter          *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
	FingerprintSha256 []byte                 `protobuf:"bytes,7,opt,name=fingerprint_sha256,json=fingerprintSha256,proto3" json:"fingerprint_sha256,omitempty"`
	SanDns            []string               `protobuf:"bytes,8,rep,name=san_dns,json=sanDns,proto3" json:"san_dns,omitempty"`
	// contains filtered or unexported fields
}

func (*CertificateInfo) Descriptor deprecated

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

Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead.

func (*CertificateInfo) GetFingerprintSha256

func (x *CertificateInfo) GetFingerprintSha256() []byte

func (*CertificateInfo) GetHost

func (x *CertificateInfo) GetHost() string

func (*CertificateInfo) GetIssuerCn

func (x *CertificateInfo) GetIssuerCn() string

func (*CertificateInfo) GetNotAfter

func (x *CertificateInfo) GetNotAfter() *timestamppb.Timestamp

func (*CertificateInfo) GetNotBefore

func (x *CertificateInfo) GetNotBefore() *timestamppb.Timestamp

func (*CertificateInfo) GetPort

func (x *CertificateInfo) GetPort() uint32

func (*CertificateInfo) GetSanDns

func (x *CertificateInfo) GetSanDns() []string

func (*CertificateInfo) GetSubjectCn

func (x *CertificateInfo) GetSubjectCn() string

func (*CertificateInfo) ProtoMessage

func (*CertificateInfo) ProtoMessage()

func (*CertificateInfo) ProtoReflect

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

func (*CertificateInfo) Reset

func (x *CertificateInfo) Reset()

func (*CertificateInfo) String

func (x *CertificateInfo) String() string

type ClientMessage

type ClientMessage struct {

	// Types that are valid to be assigned to Payload:
	//
	//	*ClientMessage_Auth
	//	*ClientMessage_Event
	//	*ClientMessage_Result
	//	*ClientMessage_Status
	Payload isClientMessage_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*ClientMessage) Descriptor deprecated

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

Deprecated: Use ClientMessage.ProtoReflect.Descriptor instead.

func (*ClientMessage) GetAuth

func (x *ClientMessage) GetAuth() *AuthResponse

func (*ClientMessage) GetEvent

func (x *ClientMessage) GetEvent() *AgentEvent

func (*ClientMessage) GetPayload

func (x *ClientMessage) GetPayload() isClientMessage_Payload

func (*ClientMessage) GetResult added in v1.3.8

func (x *ClientMessage) GetResult() *CommandResult

func (*ClientMessage) GetStatus added in v1.6.0

func (x *ClientMessage) GetStatus() *SpoolStatus

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) ProtoReflect

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

func (*ClientMessage) Reset

func (x *ClientMessage) Reset()

func (*ClientMessage) String

func (x *ClientMessage) String() string

type ClientMessage_Auth

type ClientMessage_Auth struct {
	Auth *AuthResponse `protobuf:"bytes,1,opt,name=auth,proto3,oneof"` // first message only
}

type ClientMessage_Event

type ClientMessage_Event struct {
	Event *AgentEvent `protobuf:"bytes,2,opt,name=event,proto3,oneof"` // every subsequent message
}

type ClientMessage_Result added in v1.3.8

type ClientMessage_Result struct {
	Result *CommandResult `protobuf:"bytes,3,opt,name=result,proto3,oneof"` // reply to a server-issued AgentCommand
}

type ClientMessage_Status added in v1.6.0

type ClientMessage_Status struct {
	Status *SpoolStatus `protobuf:"bytes,4,opt,name=status,proto3,oneof"` // spool state, out of band from telemetry
}

type CommandResult added in v1.3.8

type CommandResult struct {
	RequestId    string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	ErrorCode    string `protobuf:"bytes,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` // empty on success; terminal when set
	ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	Last         bool   `protobuf:"varint,4,opt,name=last,proto3" json:"last,omitempty"` // final message for this request_id
	// Types that are valid to be assigned to Result:
	//
	//	*CommandResult_Logs
	Result isCommandResult_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*CommandResult) Descriptor deprecated added in v1.3.8

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

Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.

func (*CommandResult) GetErrorCode added in v1.3.8

func (x *CommandResult) GetErrorCode() string

func (*CommandResult) GetErrorMessage added in v1.3.8

func (x *CommandResult) GetErrorMessage() string

func (*CommandResult) GetLast added in v1.3.8

func (x *CommandResult) GetLast() bool

func (*CommandResult) GetLogs added in v1.3.8

func (x *CommandResult) GetLogs() *LogsChunk

func (*CommandResult) GetRequestId added in v1.3.8

func (x *CommandResult) GetRequestId() string

func (*CommandResult) GetResult added in v1.3.8

func (x *CommandResult) GetResult() isCommandResult_Result

func (*CommandResult) ProtoMessage added in v1.3.8

func (*CommandResult) ProtoMessage()

func (*CommandResult) ProtoReflect added in v1.3.8

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

func (*CommandResult) Reset added in v1.3.8

func (x *CommandResult) Reset()

func (*CommandResult) String added in v1.3.8

func (x *CommandResult) String() string

type CommandResult_Logs added in v1.3.8

type CommandResult_Logs struct {
	Logs *LogsChunk `protobuf:"bytes,10,opt,name=logs,proto3,oneof"`
}

type ContainerEvent

type ContainerEvent struct {
	ContainerId   string                 `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image         string                 `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	ImageDigest   string                 `protobuf:"bytes,4,opt,name=image_digest,json=imageDigest,proto3" json:"image_digest,omitempty"`
	State         ContainerState         `protobuf:"varint,5,opt,name=state,proto3,enum=maintenant.agent.v1.ContainerState" json:"state,omitempty"`
	StatusMessage string                 `protobuf:"bytes,6,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	StartedAt     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	Labels        map[string]string      `` /* 139-byte string literal not displayed */
	// Docker healthcheck state ("healthy", "unhealthy", "starting"); empty when the container has no healthcheck.
	HealthStatus   string `protobuf:"bytes,9,opt,name=health_status,json=healthStatus,proto3" json:"health_status,omitempty"`
	HasHealthCheck bool   `protobuf:"varint,10,opt,name=has_health_check,json=hasHealthCheck,proto3" json:"has_health_check,omitempty"`
	// Set when the container was removed from the host; state is then EXITED so an older server treats it as a stop.
	Destroyed bool `protobuf:"varint,11,opt,name=destroyed,proto3" json:"destroyed,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerEvent) Descriptor deprecated

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

Deprecated: Use ContainerEvent.ProtoReflect.Descriptor instead.

func (*ContainerEvent) GetContainerId

func (x *ContainerEvent) GetContainerId() string

func (*ContainerEvent) GetDestroyed added in v1.5.0

func (x *ContainerEvent) GetDestroyed() bool

func (*ContainerEvent) GetHasHealthCheck added in v1.5.0

func (x *ContainerEvent) GetHasHealthCheck() bool

func (*ContainerEvent) GetHealthStatus added in v1.5.0

func (x *ContainerEvent) GetHealthStatus() string

func (*ContainerEvent) GetImage

func (x *ContainerEvent) GetImage() string

func (*ContainerEvent) GetImageDigest

func (x *ContainerEvent) GetImageDigest() string

func (*ContainerEvent) GetLabels

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

func (*ContainerEvent) GetName

func (x *ContainerEvent) GetName() string

func (*ContainerEvent) GetStartedAt

func (x *ContainerEvent) GetStartedAt() *timestamppb.Timestamp

func (*ContainerEvent) GetState

func (x *ContainerEvent) GetState() ContainerState

func (*ContainerEvent) GetStatusMessage

func (x *ContainerEvent) GetStatusMessage() string

func (*ContainerEvent) ProtoMessage

func (*ContainerEvent) ProtoMessage()

func (*ContainerEvent) ProtoReflect

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

func (*ContainerEvent) Reset

func (x *ContainerEvent) Reset()

func (*ContainerEvent) String

func (x *ContainerEvent) String() string

type ContainerInventory added in v1.3.8

type ContainerInventory struct {
	Containers []*ContainerEvent `protobuf:"bytes,1,rep,name=containers,proto3" json:"containers,omitempty"`
	// True when discovery succeeded; an empty complete snapshot is authoritative and retires every container of the agent.
	Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
	// contains filtered or unexported fields
}

A full snapshot of every container the agent's runtime knows about, sent on connect and periodically thereafter. The server reconciles it against the rows it holds for this agent: containers present are un-archived, containers absent are archived. Unlike SwarmTopology/KubernetesTopology, rows are archived rather than deleted — containers carry history (transitions, uptime, CVEs) that must outlive their removal.

`complete` disambiguates an empty snapshot: true means discovery succeeded and the host genuinely has no containers, false means discovery failed and the inventory must not be acted upon.

func (*ContainerInventory) Descriptor deprecated added in v1.3.8

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

Deprecated: Use ContainerInventory.ProtoReflect.Descriptor instead.

func (*ContainerInventory) GetComplete added in v1.5.0

func (x *ContainerInventory) GetComplete() bool

func (*ContainerInventory) GetContainers added in v1.3.8

func (x *ContainerInventory) GetContainers() []*ContainerEvent

func (*ContainerInventory) ProtoMessage added in v1.3.8

func (*ContainerInventory) ProtoMessage()

func (*ContainerInventory) ProtoReflect added in v1.3.8

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

func (*ContainerInventory) Reset added in v1.3.8

func (x *ContainerInventory) Reset()

func (*ContainerInventory) String added in v1.3.8

func (x *ContainerInventory) String() string

type ContainerState

type ContainerState int32
const (
	ContainerState_CONTAINER_STATE_UNSPECIFIED ContainerState = 0
	ContainerState_CONTAINER_STATE_CREATED     ContainerState = 1
	ContainerState_CONTAINER_STATE_RUNNING     ContainerState = 2
	ContainerState_CONTAINER_STATE_PAUSED      ContainerState = 3
	ContainerState_CONTAINER_STATE_RESTARTING  ContainerState = 4
	ContainerState_CONTAINER_STATE_REMOVING    ContainerState = 5
	ContainerState_CONTAINER_STATE_EXITED      ContainerState = 6
	ContainerState_CONTAINER_STATE_DEAD        ContainerState = 7
)

func (ContainerState) Descriptor

func (ContainerState) Enum

func (x ContainerState) Enum() *ContainerState

func (ContainerState) EnumDescriptor deprecated

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

Deprecated: Use ContainerState.Descriptor instead.

func (ContainerState) Number

func (ContainerState) String

func (x ContainerState) String() string

func (ContainerState) Type

type EndpointEvent

type EndpointEvent struct {
	EndpointId   string         `protobuf:"bytes,1,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"` // server-assigned, originally distributed via AgentConfig or label
	Url          string         `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Status       EndpointStatus `protobuf:"varint,3,opt,name=status,proto3,enum=maintenant.agent.v1.EndpointStatus" json:"status,omitempty"`
	StatusCode   uint32         `protobuf:"varint,4,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 0 if non-HTTP probe
	LatencyMs    uint64         `protobuf:"varint,5,opt,name=latency_ms,json=latencyMs,proto3" json:"latency_ms,omitempty"`
	ErrorMessage string         `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointEvent) Descriptor deprecated

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

Deprecated: Use EndpointEvent.ProtoReflect.Descriptor instead.

func (*EndpointEvent) GetEndpointId

func (x *EndpointEvent) GetEndpointId() string

func (*EndpointEvent) GetErrorMessage

func (x *EndpointEvent) GetErrorMessage() string

func (*EndpointEvent) GetLatencyMs

func (x *EndpointEvent) GetLatencyMs() uint64

func (*EndpointEvent) GetStatus

func (x *EndpointEvent) GetStatus() EndpointStatus

func (*EndpointEvent) GetStatusCode

func (x *EndpointEvent) GetStatusCode() uint32

func (*EndpointEvent) GetUrl

func (x *EndpointEvent) GetUrl() string

func (*EndpointEvent) ProtoMessage

func (*EndpointEvent) ProtoMessage()

func (*EndpointEvent) ProtoReflect

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

func (*EndpointEvent) Reset

func (x *EndpointEvent) Reset()

func (*EndpointEvent) String

func (x *EndpointEvent) String() string

type EndpointStatus

type EndpointStatus int32
const (
	EndpointStatus_ENDPOINT_STATUS_UNSPECIFIED EndpointStatus = 0
	EndpointStatus_ENDPOINT_STATUS_UP          EndpointStatus = 1
	EndpointStatus_ENDPOINT_STATUS_DOWN        EndpointStatus = 2
	EndpointStatus_ENDPOINT_STATUS_DEGRADED    EndpointStatus = 3
)

func (EndpointStatus) Descriptor

func (EndpointStatus) Enum

func (x EndpointStatus) Enum() *EndpointStatus

func (EndpointStatus) EnumDescriptor deprecated

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

Deprecated: Use EndpointStatus.Descriptor instead.

func (EndpointStatus) Number

func (EndpointStatus) String

func (x EndpointStatus) String() string

func (EndpointStatus) Type

type EventAck

type EventAck struct {
	LastEventSeq uint64                 `protobuf:"varint,1,opt,name=last_event_seq,json=lastEventSeq,proto3" json:"last_event_seq,omitempty"` // monotonic counter assigned by client per-stream
	ReceivedAt   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
	// contains filtered or unexported fields
}

func (*EventAck) Descriptor deprecated

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

Deprecated: Use EventAck.ProtoReflect.Descriptor instead.

func (*EventAck) GetLastEventSeq

func (x *EventAck) GetLastEventSeq() uint64

func (*EventAck) GetReceivedAt

func (x *EventAck) GetReceivedAt() *timestamppb.Timestamp

func (*EventAck) ProtoMessage

func (*EventAck) ProtoMessage()

func (*EventAck) ProtoReflect

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

func (*EventAck) Reset

func (x *EventAck) Reset()

func (*EventAck) String

func (x *EventAck) String() string

type HeartbeatEvent

type HeartbeatEvent struct {
	HeartbeatToken string `protobuf:"bytes,1,opt,name=heartbeat_token,json=heartbeatToken,proto3" json:"heartbeat_token,omitempty"` // matches existing heartbeat token in DB
	SourceIp       string `protobuf:"bytes,2,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`
	// contains filtered or unexported fields
}

func (*HeartbeatEvent) Descriptor deprecated

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

Deprecated: Use HeartbeatEvent.ProtoReflect.Descriptor instead.

func (*HeartbeatEvent) GetHeartbeatToken

func (x *HeartbeatEvent) GetHeartbeatToken() string

func (*HeartbeatEvent) GetSourceIp

func (x *HeartbeatEvent) GetSourceIp() string

func (*HeartbeatEvent) ProtoMessage

func (*HeartbeatEvent) ProtoMessage()

func (*HeartbeatEvent) ProtoReflect

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

func (*HeartbeatEvent) Reset

func (x *HeartbeatEvent) Reset()

func (*HeartbeatEvent) String

func (x *HeartbeatEvent) String() string

type HostOSMsg added in v1.7.0

type HostOSMsg struct {
	Id                string       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                   // os-release ID=, or the family derived from a Kubernetes osImage
	VersionId         string       `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`    // os-release VERSION_ID=, raw
	PrettyName        string       `protobuf:"bytes,3,opt,name=pretty_name,json=prettyName,proto3" json:"pretty_name,omitempty"` // os-release PRETTY_NAME=, or the raw osImage
	Source            HostOSSource `protobuf:"varint,4,opt,name=source,proto3,enum=maintenant.agent.v1.HostOSSource" json:"source,omitempty"`
	UnavailableReason string       `protobuf:"bytes,5,opt,name=unavailable_reason,json=unavailableReason,proto3" json:"unavailable_reason,omitempty"` // "mount_missing" | "file_unreadable" | "node_not_found"; empty when the identity is present
	// contains filtered or unexported fields
}

The host's operating system identity, as current state rather than an event: the spool keeps the last one and resends it on every new stream.

func (*HostOSMsg) Descriptor deprecated added in v1.7.0

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

Deprecated: Use HostOSMsg.ProtoReflect.Descriptor instead.

func (*HostOSMsg) GetId added in v1.7.0

func (x *HostOSMsg) GetId() string

func (*HostOSMsg) GetPrettyName added in v1.7.0

func (x *HostOSMsg) GetPrettyName() string

func (*HostOSMsg) GetSource added in v1.7.0

func (x *HostOSMsg) GetSource() HostOSSource

func (*HostOSMsg) GetUnavailableReason added in v1.7.0

func (x *HostOSMsg) GetUnavailableReason() string

func (*HostOSMsg) GetVersionId added in v1.7.0

func (x *HostOSMsg) GetVersionId() string

func (*HostOSMsg) ProtoMessage added in v1.7.0

func (*HostOSMsg) ProtoMessage()

func (*HostOSMsg) ProtoReflect added in v1.7.0

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

func (*HostOSMsg) Reset added in v1.7.0

func (x *HostOSMsg) Reset()

func (*HostOSMsg) String added in v1.7.0

func (x *HostOSMsg) String() string

type HostOSSource added in v1.7.0

type HostOSSource int32
const (
	HostOSSource_HOST_OS_SOURCE_UNSPECIFIED     HostOSSource = 0
	HostOSSource_HOST_OS_SOURCE_HOST_FILE       HostOSSource = 1
	HostOSSource_HOST_OS_SOURCE_KUBERNETES_NODE HostOSSource = 2
)

func (HostOSSource) Descriptor added in v1.7.0

func (HostOSSource) Enum added in v1.7.0

func (x HostOSSource) Enum() *HostOSSource

func (HostOSSource) EnumDescriptor deprecated added in v1.7.0

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

Deprecated: Use HostOSSource.Descriptor instead.

func (HostOSSource) Number added in v1.7.0

func (HostOSSource) String added in v1.7.0

func (x HostOSSource) String() string

func (HostOSSource) Type added in v1.7.0

type IngestClient

type IngestClient interface {
	// RegisterAgent — first-boot enrollment.
	// Called once per agent identity. Idempotent on the server side: re-calling
	// with the same agent_id and a previously-consumed token returns
	// FailedPrecondition.
	RegisterAgent(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	// Push — long-lived bidirectional stream.
	// Server first sends AuthChallenge. Client sends AuthResponse, then a
	// continuous stream of AgentEvent. Server may send error ServerMessage
	// and close the stream at any time (e.g., revocation, rate-limit).
	Push(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ClientMessage, ServerMessage], error)
}

IngestClient is the client API for Ingest 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.

func NewIngestClient

func NewIngestClient(cc grpc.ClientConnInterface) IngestClient

type IngestServer

type IngestServer interface {
	// RegisterAgent — first-boot enrollment.
	// Called once per agent identity. Idempotent on the server side: re-calling
	// with the same agent_id and a previously-consumed token returns
	// FailedPrecondition.
	RegisterAgent(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// Push — long-lived bidirectional stream.
	// Server first sends AuthChallenge. Client sends AuthResponse, then a
	// continuous stream of AgentEvent. Server may send error ServerMessage
	// and close the stream at any time (e.g., revocation, rate-limit).
	Push(grpc.BidiStreamingServer[ClientMessage, ServerMessage]) error
	// contains filtered or unexported methods
}

IngestServer is the server API for Ingest service. All implementations must embed UnimplementedIngestServer for forward compatibility.

type Ingest_PushClient

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

type Ingest_PushServer

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

type K8SContainerStatusMsg

type K8SContainerStatusMsg struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Image        string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	Ready        bool   `protobuf:"varint,3,opt,name=ready,proto3" json:"ready,omitempty"`
	RestartCount int32  `protobuf:"varint,4,opt,name=restart_count,json=restartCount,proto3" json:"restart_count,omitempty"`
	State        string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` // running, waiting, terminated
	StateReason  string `protobuf:"bytes,6,opt,name=state_reason,json=stateReason,proto3" json:"state_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SContainerStatusMsg) Descriptor deprecated

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

Deprecated: Use K8SContainerStatusMsg.ProtoReflect.Descriptor instead.

func (*K8SContainerStatusMsg) GetImage

func (x *K8SContainerStatusMsg) GetImage() string

func (*K8SContainerStatusMsg) GetName

func (x *K8SContainerStatusMsg) GetName() string

func (*K8SContainerStatusMsg) GetReady

func (x *K8SContainerStatusMsg) GetReady() bool

func (*K8SContainerStatusMsg) GetRestartCount

func (x *K8SContainerStatusMsg) GetRestartCount() int32

func (*K8SContainerStatusMsg) GetState

func (x *K8SContainerStatusMsg) GetState() string

func (*K8SContainerStatusMsg) GetStateReason

func (x *K8SContainerStatusMsg) GetStateReason() string

func (*K8SContainerStatusMsg) ProtoMessage

func (*K8SContainerStatusMsg) ProtoMessage()

func (*K8SContainerStatusMsg) ProtoReflect

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

func (*K8SContainerStatusMsg) Reset

func (x *K8SContainerStatusMsg) Reset()

func (*K8SContainerStatusMsg) String

func (x *K8SContainerStatusMsg) String() string

type K8SEventMsg

type K8SEventMsg struct {
	Type              string                 `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Normal, Warning
	Reason            string                 `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	Message           string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Source            string                 `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	FirstSeen         *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=first_seen,json=firstSeen,proto3" json:"first_seen,omitempty"`
	LastSeen          *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	Count             int32                  `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
	InvolvedKind      string                 `protobuf:"bytes,8,opt,name=involved_kind,json=involvedKind,proto3" json:"involved_kind,omitempty"` // Pod, Deployment, StatefulSet, DaemonSet, Job
	InvolvedNamespace string                 `protobuf:"bytes,9,opt,name=involved_namespace,json=involvedNamespace,proto3" json:"involved_namespace,omitempty"`
	InvolvedName      string                 `protobuf:"bytes,10,opt,name=involved_name,json=involvedName,proto3" json:"involved_name,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SEventMsg) Descriptor deprecated

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

Deprecated: Use K8SEventMsg.ProtoReflect.Descriptor instead.

func (*K8SEventMsg) GetCount

func (x *K8SEventMsg) GetCount() int32

func (*K8SEventMsg) GetFirstSeen

func (x *K8SEventMsg) GetFirstSeen() *timestamppb.Timestamp

func (*K8SEventMsg) GetInvolvedKind

func (x *K8SEventMsg) GetInvolvedKind() string

func (*K8SEventMsg) GetInvolvedName

func (x *K8SEventMsg) GetInvolvedName() string

func (*K8SEventMsg) GetInvolvedNamespace

func (x *K8SEventMsg) GetInvolvedNamespace() string

func (*K8SEventMsg) GetLastSeen

func (x *K8SEventMsg) GetLastSeen() *timestamppb.Timestamp

func (*K8SEventMsg) GetMessage

func (x *K8SEventMsg) GetMessage() string

func (*K8SEventMsg) GetReason

func (x *K8SEventMsg) GetReason() string

func (*K8SEventMsg) GetSource

func (x *K8SEventMsg) GetSource() string

func (*K8SEventMsg) GetType

func (x *K8SEventMsg) GetType() string

func (*K8SEventMsg) ProtoMessage

func (*K8SEventMsg) ProtoMessage()

func (*K8SEventMsg) ProtoReflect

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

func (*K8SEventMsg) Reset

func (x *K8SEventMsg) Reset()

func (*K8SEventMsg) String

func (x *K8SEventMsg) String() string

type K8SNodeMsg

type K8SNodeMsg struct {
	Name                     string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Roles                    []string               `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	Status                   string                 `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // ready, not-ready, unknown
	RunningPods              int32                  `protobuf:"varint,4,opt,name=running_pods,json=runningPods,proto3" json:"running_pods,omitempty"`
	KubernetesVersion        string                 `protobuf:"bytes,5,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"`
	OsImage                  string                 `protobuf:"bytes,6,opt,name=os_image,json=osImage,proto3" json:"os_image,omitempty"`
	Architecture             string                 `protobuf:"bytes,7,opt,name=architecture,proto3" json:"architecture,omitempty"`
	CapacityCpuMillicores    int64                  `` /* 127-byte string literal not displayed */
	CapacityMemoryBytes      int64                  `protobuf:"varint,9,opt,name=capacity_memory_bytes,json=capacityMemoryBytes,proto3" json:"capacity_memory_bytes,omitempty"`
	CapacityPods             int64                  `protobuf:"varint,10,opt,name=capacity_pods,json=capacityPods,proto3" json:"capacity_pods,omitempty"`
	AllocatableCpuMillicores int64                  `` /* 137-byte string literal not displayed */
	AllocatableMemoryBytes   int64                  `` /* 131-byte string literal not displayed */
	AllocatablePods          int64                  `protobuf:"varint,13,opt,name=allocatable_pods,json=allocatablePods,proto3" json:"allocatable_pods,omitempty"`
	CreatedAt                *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SNodeMsg) Descriptor deprecated

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

Deprecated: Use K8SNodeMsg.ProtoReflect.Descriptor instead.

func (*K8SNodeMsg) GetAllocatableCpuMillicores

func (x *K8SNodeMsg) GetAllocatableCpuMillicores() int64

func (*K8SNodeMsg) GetAllocatableMemoryBytes

func (x *K8SNodeMsg) GetAllocatableMemoryBytes() int64

func (*K8SNodeMsg) GetAllocatablePods

func (x *K8SNodeMsg) GetAllocatablePods() int64

func (*K8SNodeMsg) GetArchitecture

func (x *K8SNodeMsg) GetArchitecture() string

func (*K8SNodeMsg) GetCapacityCpuMillicores

func (x *K8SNodeMsg) GetCapacityCpuMillicores() int64

func (*K8SNodeMsg) GetCapacityMemoryBytes

func (x *K8SNodeMsg) GetCapacityMemoryBytes() int64

func (*K8SNodeMsg) GetCapacityPods

func (x *K8SNodeMsg) GetCapacityPods() int64

func (*K8SNodeMsg) GetCreatedAt

func (x *K8SNodeMsg) GetCreatedAt() *timestamppb.Timestamp

func (*K8SNodeMsg) GetKubernetesVersion

func (x *K8SNodeMsg) GetKubernetesVersion() string

func (*K8SNodeMsg) GetName

func (x *K8SNodeMsg) GetName() string

func (*K8SNodeMsg) GetOsImage

func (x *K8SNodeMsg) GetOsImage() string

func (*K8SNodeMsg) GetRoles

func (x *K8SNodeMsg) GetRoles() []string

func (*K8SNodeMsg) GetRunningPods

func (x *K8SNodeMsg) GetRunningPods() int32

func (*K8SNodeMsg) GetStatus

func (x *K8SNodeMsg) GetStatus() string

func (*K8SNodeMsg) ProtoMessage

func (*K8SNodeMsg) ProtoMessage()

func (*K8SNodeMsg) ProtoReflect

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

func (*K8SNodeMsg) Reset

func (x *K8SNodeMsg) Reset()

func (*K8SNodeMsg) String

func (x *K8SNodeMsg) String() string

type K8SPodMsg

type K8SPodMsg struct {
	Name         string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace    string                   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Status       string                   `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`                                 // Running, Pending, Succeeded, Failed, Unknown
	StatusReason string                   `protobuf:"bytes,4,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` // CrashLoopBackOff, ImagePullBackOff, ...
	RestartCount int32                    `protobuf:"varint,5,opt,name=restart_count,json=restartCount,proto3" json:"restart_count,omitempty"`
	NodeName     string                   `protobuf:"bytes,6,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	PodIp        string                   `protobuf:"bytes,7,opt,name=pod_ip,json=podIp,proto3" json:"pod_ip,omitempty"`
	HostIp       string                   `protobuf:"bytes,8,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
	WorkloadRef  string                   `protobuf:"bytes,9,opt,name=workload_ref,json=workloadRef,proto3" json:"workload_ref,omitempty"` // owning workload ID
	Containers   []*K8SContainerStatusMsg `protobuf:"bytes,10,rep,name=containers,proto3" json:"containers,omitempty"`
	CreatedAt    *timestamppb.Timestamp   `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SPodMsg) Descriptor deprecated

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

Deprecated: Use K8SPodMsg.ProtoReflect.Descriptor instead.

func (*K8SPodMsg) GetContainers

func (x *K8SPodMsg) GetContainers() []*K8SContainerStatusMsg

func (*K8SPodMsg) GetCreatedAt

func (x *K8SPodMsg) GetCreatedAt() *timestamppb.Timestamp

func (*K8SPodMsg) GetHostIp

func (x *K8SPodMsg) GetHostIp() string

func (*K8SPodMsg) GetName

func (x *K8SPodMsg) GetName() string

func (*K8SPodMsg) GetNamespace

func (x *K8SPodMsg) GetNamespace() string

func (*K8SPodMsg) GetNodeName

func (x *K8SPodMsg) GetNodeName() string

func (*K8SPodMsg) GetPodIp

func (x *K8SPodMsg) GetPodIp() string

func (*K8SPodMsg) GetRestartCount

func (x *K8SPodMsg) GetRestartCount() int32

func (*K8SPodMsg) GetStatus

func (x *K8SPodMsg) GetStatus() string

func (*K8SPodMsg) GetStatusReason

func (x *K8SPodMsg) GetStatusReason() string

func (*K8SPodMsg) GetWorkloadRef

func (x *K8SPodMsg) GetWorkloadRef() string

func (*K8SPodMsg) ProtoMessage

func (*K8SPodMsg) ProtoMessage()

func (*K8SPodMsg) ProtoReflect

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

func (*K8SPodMsg) Reset

func (x *K8SPodMsg) Reset()

func (*K8SPodMsg) String

func (x *K8SPodMsg) String() string

type K8SWorkloadMsg

type K8SWorkloadMsg struct {
	Id              string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // "{namespace}/{kind}/{name}"
	Name            string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Namespace       string                 `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Kind            string                 `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` // Deployment, StatefulSet, DaemonSet, Job
	Images          []string               `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"`
	ReadyReplicas   int32                  `protobuf:"varint,6,opt,name=ready_replicas,json=readyReplicas,proto3" json:"ready_replicas,omitempty"`
	DesiredReplicas int32                  `protobuf:"varint,7,opt,name=desired_replicas,json=desiredReplicas,proto3" json:"desired_replicas,omitempty"`
	Status          string                 `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"` // healthy, degraded, progressing, failed
	CreatedAt       *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*K8SWorkloadMsg) Descriptor deprecated

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

Deprecated: Use K8SWorkloadMsg.ProtoReflect.Descriptor instead.

func (*K8SWorkloadMsg) GetCreatedAt

func (x *K8SWorkloadMsg) GetCreatedAt() *timestamppb.Timestamp

func (*K8SWorkloadMsg) GetDesiredReplicas

func (x *K8SWorkloadMsg) GetDesiredReplicas() int32

func (*K8SWorkloadMsg) GetId

func (x *K8SWorkloadMsg) GetId() string

func (*K8SWorkloadMsg) GetImages

func (x *K8SWorkloadMsg) GetImages() []string

func (*K8SWorkloadMsg) GetKind

func (x *K8SWorkloadMsg) GetKind() string

func (*K8SWorkloadMsg) GetName

func (x *K8SWorkloadMsg) GetName() string

func (*K8SWorkloadMsg) GetNamespace

func (x *K8SWorkloadMsg) GetNamespace() string

func (*K8SWorkloadMsg) GetReadyReplicas

func (x *K8SWorkloadMsg) GetReadyReplicas() int32

func (*K8SWorkloadMsg) GetStatus

func (x *K8SWorkloadMsg) GetStatus() string

func (*K8SWorkloadMsg) ProtoMessage

func (*K8SWorkloadMsg) ProtoMessage()

func (*K8SWorkloadMsg) ProtoReflect

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

func (*K8SWorkloadMsg) Reset

func (x *K8SWorkloadMsg) Reset()

func (*K8SWorkloadMsg) String

func (x *K8SWorkloadMsg) String() string

type KubernetesTopology

type KubernetesTopology struct {
	Namespaces []string          `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	Workloads  []*K8SWorkloadMsg `protobuf:"bytes,2,rep,name=workloads,proto3" json:"workloads,omitempty"`
	Pods       []*K8SPodMsg      `protobuf:"bytes,3,rep,name=pods,proto3" json:"pods,omitempty"`
	Nodes      []*K8SNodeMsg     `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Events     []*K8SEventMsg    `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*KubernetesTopology) Descriptor deprecated

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

Deprecated: Use KubernetesTopology.ProtoReflect.Descriptor instead.

func (*KubernetesTopology) GetEvents

func (x *KubernetesTopology) GetEvents() []*K8SEventMsg

func (*KubernetesTopology) GetNamespaces

func (x *KubernetesTopology) GetNamespaces() []string

func (*KubernetesTopology) GetNodes

func (x *KubernetesTopology) GetNodes() []*K8SNodeMsg

func (*KubernetesTopology) GetPods

func (x *KubernetesTopology) GetPods() []*K8SPodMsg

func (*KubernetesTopology) GetWorkloads

func (x *KubernetesTopology) GetWorkloads() []*K8SWorkloadMsg

func (*KubernetesTopology) ProtoMessage

func (*KubernetesTopology) ProtoMessage()

func (*KubernetesTopology) ProtoReflect

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

func (*KubernetesTopology) Reset

func (x *KubernetesTopology) Reset()

func (*KubernetesTopology) String

func (x *KubernetesTopology) String() string

type LogsChunk added in v1.3.8

type LogsChunk struct {
	Lines []string `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	// contains filtered or unexported fields
}

func (*LogsChunk) Descriptor deprecated added in v1.3.8

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

Deprecated: Use LogsChunk.ProtoReflect.Descriptor instead.

func (*LogsChunk) GetLines added in v1.3.8

func (x *LogsChunk) GetLines() []string

func (*LogsChunk) ProtoMessage added in v1.3.8

func (*LogsChunk) ProtoMessage()

func (*LogsChunk) ProtoReflect added in v1.3.8

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

func (*LogsChunk) Reset added in v1.3.8

func (x *LogsChunk) Reset()

func (*LogsChunk) String added in v1.3.8

func (x *LogsChunk) String() string

type LogsRequest added in v1.3.8

type LogsRequest struct {
	ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` // runtime external id, not the maintenant UUID
	Lines       uint32 `protobuf:"varint,2,opt,name=lines,proto3" json:"lines,omitempty"`                               // tail length; clamped server- and agent-side
	Timestamps  bool   `protobuf:"varint,3,opt,name=timestamps,proto3" json:"timestamps,omitempty"`
	Follow      bool   `protobuf:"varint,4,opt,name=follow,proto3" json:"follow,omitempty"` // stream until cancelled instead of a one-shot tail
	// contains filtered or unexported fields
}

func (*LogsRequest) Descriptor deprecated added in v1.3.8

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

Deprecated: Use LogsRequest.ProtoReflect.Descriptor instead.

func (*LogsRequest) GetContainerId added in v1.3.8

func (x *LogsRequest) GetContainerId() string

func (*LogsRequest) GetFollow added in v1.3.8

func (x *LogsRequest) GetFollow() bool

func (*LogsRequest) GetLines added in v1.3.8

func (x *LogsRequest) GetLines() uint32

func (*LogsRequest) GetTimestamps added in v1.3.8

func (x *LogsRequest) GetTimestamps() bool

func (*LogsRequest) ProtoMessage added in v1.3.8

func (*LogsRequest) ProtoMessage()

func (*LogsRequest) ProtoReflect added in v1.3.8

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

func (*LogsRequest) Reset added in v1.3.8

func (x *LogsRequest) Reset()

func (*LogsRequest) String added in v1.3.8

func (x *LogsRequest) String() string

type RegisterRequest

type RegisterRequest struct {
	AgentId         string  `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`                         // UUID v4 (lowercase, no braces) — canonical key
	PublicKey       []byte  `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`                   // raw 32 bytes Ed25519
	EnrollmentToken string  `protobuf:"bytes,3,opt,name=enrollment_token,json=enrollmentToken,proto3" json:"enrollment_token,omitempty"` // "mnt_enr_..." — one-time, TTL 24h
	Hostname        string  `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	OsArch          string  `protobuf:"bytes,5,opt,name=os_arch,json=osArch,proto3" json:"os_arch,omitempty"`                   // e.g. "linux/amd64"
	AgentVersion    string  `protobuf:"bytes,6,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` // semver — server checks major compat
	DetectedRuntime Runtime ``                                                                                                  /* 140-byte string literal not displayed */
	// Optional display label suggested by the agent (from --label= flag or
	// the operator's preference). If empty, the server falls back to using
	// `hostname` as the initial display value. Display-only — never used as
	// an identifier in API/MCP/gRPC requests; agent_id is the only key.
	// Max 64 chars enforced server-side. Editable later via PATCH /agents/:id.
	Label string `protobuf:"bytes,8,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetAgentId

func (x *RegisterRequest) GetAgentId() string

func (*RegisterRequest) GetAgentVersion

func (x *RegisterRequest) GetAgentVersion() string

func (*RegisterRequest) GetDetectedRuntime

func (x *RegisterRequest) GetDetectedRuntime() Runtime

func (*RegisterRequest) GetEnrollmentToken

func (x *RegisterRequest) GetEnrollmentToken() string

func (*RegisterRequest) GetHostname

func (x *RegisterRequest) GetHostname() string

func (*RegisterRequest) GetLabel

func (x *RegisterRequest) GetLabel() string

func (*RegisterRequest) GetOsArch

func (x *RegisterRequest) GetOsArch() string

func (*RegisterRequest) GetPublicKey

func (x *RegisterRequest) GetPublicKey() []byte

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	ServerTime  *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"` // for clock-skew calibration
	AgentConfig *AgentConfig           `protobuf:"bytes,2,opt,name=agent_config,json=agentConfig,proto3" json:"agent_config,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetAgentConfig

func (x *RegisterResponse) GetAgentConfig() *AgentConfig

func (*RegisterResponse) GetServerTime

func (x *RegisterResponse) GetServerTime() *timestamppb.Timestamp

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type ResourceSample

type ResourceSample struct {
	ContainerId      string  `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`                   // empty for host-level samples
	CpuPercent       float64 `protobuf:"fixed64,2,opt,name=cpu_percent,json=cpuPercent,proto3" json:"cpu_percent,omitempty"`                    // host CPU% when container_id empty
	MemoryBytes      uint64  `protobuf:"varint,3,opt,name=memory_bytes,json=memoryBytes,proto3" json:"memory_bytes,omitempty"`                  // host mem used when container_id empty
	MemoryLimitBytes uint64  `protobuf:"varint,4,opt,name=memory_limit_bytes,json=memoryLimitBytes,proto3" json:"memory_limit_bytes,omitempty"` // host mem total when container_id empty
	NetworkRxBytes   uint64  `protobuf:"varint,5,opt,name=network_rx_bytes,json=networkRxBytes,proto3" json:"network_rx_bytes,omitempty"`
	NetworkTxBytes   uint64  `protobuf:"varint,6,opt,name=network_tx_bytes,json=networkTxBytes,proto3" json:"network_tx_bytes,omitempty"`
	DiskReadBytes    uint64  `protobuf:"varint,7,opt,name=disk_read_bytes,json=diskReadBytes,proto3" json:"disk_read_bytes,omitempty"`
	DiskWriteBytes   uint64  `protobuf:"varint,8,opt,name=disk_write_bytes,json=diskWriteBytes,proto3" json:"disk_write_bytes,omitempty"`
	// Host-level only (container_id empty): root filesystem capacity.
	HostDiskTotalBytes uint64 `protobuf:"varint,9,opt,name=host_disk_total_bytes,json=hostDiskTotalBytes,proto3" json:"host_disk_total_bytes,omitempty"`
	HostDiskUsedBytes  uint64 `protobuf:"varint,10,opt,name=host_disk_used_bytes,json=hostDiskUsedBytes,proto3" json:"host_disk_used_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceSample) Descriptor deprecated

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

Deprecated: Use ResourceSample.ProtoReflect.Descriptor instead.

func (*ResourceSample) GetContainerId

func (x *ResourceSample) GetContainerId() string

func (*ResourceSample) GetCpuPercent

func (x *ResourceSample) GetCpuPercent() float64

func (*ResourceSample) GetDiskReadBytes

func (x *ResourceSample) GetDiskReadBytes() uint64

func (*ResourceSample) GetDiskWriteBytes

func (x *ResourceSample) GetDiskWriteBytes() uint64

func (*ResourceSample) GetHostDiskTotalBytes

func (x *ResourceSample) GetHostDiskTotalBytes() uint64

func (*ResourceSample) GetHostDiskUsedBytes

func (x *ResourceSample) GetHostDiskUsedBytes() uint64

func (*ResourceSample) GetMemoryBytes

func (x *ResourceSample) GetMemoryBytes() uint64

func (*ResourceSample) GetMemoryLimitBytes

func (x *ResourceSample) GetMemoryLimitBytes() uint64

func (*ResourceSample) GetNetworkRxBytes

func (x *ResourceSample) GetNetworkRxBytes() uint64

func (*ResourceSample) GetNetworkTxBytes

func (x *ResourceSample) GetNetworkTxBytes() uint64

func (*ResourceSample) ProtoMessage

func (*ResourceSample) ProtoMessage()

func (*ResourceSample) ProtoReflect

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

func (*ResourceSample) Reset

func (x *ResourceSample) Reset()

func (*ResourceSample) String

func (x *ResourceSample) String() string

type Runtime

type Runtime int32
const (
	Runtime_RUNTIME_UNSPECIFIED Runtime = 0
	Runtime_RUNTIME_DOCKER      Runtime = 1
	Runtime_RUNTIME_SWARM       Runtime = 2
	Runtime_RUNTIME_KUBERNETES  Runtime = 3
)

func (Runtime) Descriptor

func (Runtime) Descriptor() protoreflect.EnumDescriptor

func (Runtime) Enum

func (x Runtime) Enum() *Runtime

func (Runtime) EnumDescriptor deprecated

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

Deprecated: Use Runtime.Descriptor instead.

func (Runtime) Number

func (x Runtime) Number() protoreflect.EnumNumber

func (Runtime) String

func (x Runtime) String() string

func (Runtime) Type

func (Runtime) Type() protoreflect.EnumType

type ServerMessage

type ServerMessage struct {

	// Types that are valid to be assigned to Payload:
	//
	//	*ServerMessage_Challenge
	//	*ServerMessage_Ack
	//	*ServerMessage_Error
	//	*ServerMessage_Command
	Payload isServerMessage_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*ServerMessage) Descriptor deprecated

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

Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead.

func (*ServerMessage) GetAck

func (x *ServerMessage) GetAck() *EventAck

func (*ServerMessage) GetChallenge

func (x *ServerMessage) GetChallenge() *AuthChallenge

func (*ServerMessage) GetCommand added in v1.3.8

func (x *ServerMessage) GetCommand() *AgentCommand

func (*ServerMessage) GetError

func (x *ServerMessage) GetError() *StreamError

func (*ServerMessage) GetPayload

func (x *ServerMessage) GetPayload() isServerMessage_Payload

func (*ServerMessage) ProtoMessage

func (*ServerMessage) ProtoMessage()

func (*ServerMessage) ProtoReflect

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

func (*ServerMessage) Reset

func (x *ServerMessage) Reset()

func (*ServerMessage) String

func (x *ServerMessage) String() string

type ServerMessage_Ack

type ServerMessage_Ack struct {
	Ack *EventAck `protobuf:"bytes,2,opt,name=ack,proto3,oneof"` // optional periodic ack (every N events or T seconds)
}

type ServerMessage_Challenge

type ServerMessage_Challenge struct {
	Challenge *AuthChallenge `protobuf:"bytes,1,opt,name=challenge,proto3,oneof"` // first message only
}

type ServerMessage_Command added in v1.3.8

type ServerMessage_Command struct {
	Command *AgentCommand `protobuf:"bytes,4,opt,name=command,proto3,oneof"` // server asks the agent to do something
}

type ServerMessage_Error

type ServerMessage_Error struct {
	Error *StreamError `protobuf:"bytes,3,opt,name=error,proto3,oneof"` // server-initiated termination signal
}

type SpoolStatus added in v1.6.0

type SpoolStatus struct {
	Queued              uint64 `protobuf:"varint,1,opt,name=queued,proto3" json:"queued,omitempty"`
	Draining            bool   `protobuf:"varint,2,opt,name=draining,proto3" json:"draining,omitempty"`
	DroppedSinceConnect uint64 `protobuf:"varint,3,opt,name=dropped_since_connect,json=droppedSinceConnect,proto3" json:"dropped_since_connect,omitempty"` // discarded for lack of room since this connect
	// contains filtered or unexported fields
}

Reported by the agent on connect and while it drains its spool.

func (*SpoolStatus) Descriptor deprecated added in v1.6.0

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

Deprecated: Use SpoolStatus.ProtoReflect.Descriptor instead.

func (*SpoolStatus) GetDraining added in v1.6.0

func (x *SpoolStatus) GetDraining() bool

func (*SpoolStatus) GetDroppedSinceConnect added in v1.6.0

func (x *SpoolStatus) GetDroppedSinceConnect() uint64

func (*SpoolStatus) GetQueued added in v1.6.0

func (x *SpoolStatus) GetQueued() uint64

func (*SpoolStatus) ProtoMessage added in v1.6.0

func (*SpoolStatus) ProtoMessage()

func (*SpoolStatus) ProtoReflect added in v1.6.0

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

func (*SpoolStatus) Reset added in v1.6.0

func (x *SpoolStatus) Reset()

func (*SpoolStatus) String added in v1.6.0

func (x *SpoolStatus) String() string

type StreamError

type StreamError struct {
	Code         string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`                                        // e.g. "agent_revoked", "rate_limited", "incompatible_version"
	Message      string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`                                  // human-readable
	RetryAfterMs uint32 `protobuf:"varint,3,opt,name=retry_after_ms,json=retryAfterMs,proto3" json:"retry_after_ms,omitempty"` // hint for client backoff (rate-limit case)
	// contains filtered or unexported fields
}

func (*StreamError) Descriptor deprecated

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

Deprecated: Use StreamError.ProtoReflect.Descriptor instead.

func (*StreamError) GetCode

func (x *StreamError) GetCode() string

func (*StreamError) GetMessage

func (x *StreamError) GetMessage() string

func (*StreamError) GetRetryAfterMs

func (x *StreamError) GetRetryAfterMs() uint32

func (*StreamError) ProtoMessage

func (*StreamError) ProtoMessage()

func (*StreamError) ProtoReflect

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

func (*StreamError) Reset

func (x *StreamError) Reset()

func (*StreamError) String

func (x *StreamError) String() string

type SwarmNodeMsg

type SwarmNodeMsg struct {
	NodeId        string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Hostname      string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Role          string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`                 // "manager" or "worker"
	Status        string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`             // "ready", "down", "disconnected", "unknown"
	Availability  string `protobuf:"bytes,5,opt,name=availability,proto3" json:"availability,omitempty"` // "active", "pause", "drain"
	EngineVersion string `protobuf:"bytes,6,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
	Address       string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	TaskCount     int32  `protobuf:"varint,8,opt,name=task_count,json=taskCount,proto3" json:"task_count,omitempty"`
	// contains filtered or unexported fields
}

func (*SwarmNodeMsg) Descriptor deprecated

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

Deprecated: Use SwarmNodeMsg.ProtoReflect.Descriptor instead.

func (*SwarmNodeMsg) GetAddress

func (x *SwarmNodeMsg) GetAddress() string

func (*SwarmNodeMsg) GetAvailability

func (x *SwarmNodeMsg) GetAvailability() string

func (*SwarmNodeMsg) GetEngineVersion

func (x *SwarmNodeMsg) GetEngineVersion() string

func (*SwarmNodeMsg) GetHostname

func (x *SwarmNodeMsg) GetHostname() string

func (*SwarmNodeMsg) GetNodeId

func (x *SwarmNodeMsg) GetNodeId() string

func (*SwarmNodeMsg) GetRole

func (x *SwarmNodeMsg) GetRole() string

func (*SwarmNodeMsg) GetStatus

func (x *SwarmNodeMsg) GetStatus() string

func (*SwarmNodeMsg) GetTaskCount

func (x *SwarmNodeMsg) GetTaskCount() int32

func (*SwarmNodeMsg) ProtoMessage

func (*SwarmNodeMsg) ProtoMessage()

func (*SwarmNodeMsg) ProtoReflect

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

func (*SwarmNodeMsg) Reset

func (x *SwarmNodeMsg) Reset()

func (*SwarmNodeMsg) String

func (x *SwarmNodeMsg) String() string

type SwarmServiceMsg

type SwarmServiceMsg struct {
	ServiceId       string                 `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	Name            string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Image           string                 `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	Mode            string                 `protobuf:"bytes,4,opt,name=mode,proto3" json:"mode,omitempty"` // "replicated" or "global"
	DesiredReplicas int32                  `protobuf:"varint,5,opt,name=desired_replicas,json=desiredReplicas,proto3" json:"desired_replicas,omitempty"`
	RunningReplicas int32                  `protobuf:"varint,6,opt,name=running_replicas,json=runningReplicas,proto3" json:"running_replicas,omitempty"`
	Labels          map[string]string      `` /* 139-byte string literal not displayed */
	StackName       string                 `protobuf:"bytes,8,opt,name=stack_name,json=stackName,proto3" json:"stack_name,omitempty"`
	CreatedAt       *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SwarmServiceMsg) Descriptor deprecated

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

Deprecated: Use SwarmServiceMsg.ProtoReflect.Descriptor instead.

func (*SwarmServiceMsg) GetCreatedAt

func (x *SwarmServiceMsg) GetCreatedAt() *timestamppb.Timestamp

func (*SwarmServiceMsg) GetDesiredReplicas

func (x *SwarmServiceMsg) GetDesiredReplicas() int32

func (*SwarmServiceMsg) GetImage

func (x *SwarmServiceMsg) GetImage() string

func (*SwarmServiceMsg) GetLabels

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

func (*SwarmServiceMsg) GetMode

func (x *SwarmServiceMsg) GetMode() string

func (*SwarmServiceMsg) GetName

func (x *SwarmServiceMsg) GetName() string

func (*SwarmServiceMsg) GetRunningReplicas

func (x *SwarmServiceMsg) GetRunningReplicas() int32

func (*SwarmServiceMsg) GetServiceId

func (x *SwarmServiceMsg) GetServiceId() string

func (*SwarmServiceMsg) GetStackName

func (x *SwarmServiceMsg) GetStackName() string

func (*SwarmServiceMsg) ProtoMessage

func (*SwarmServiceMsg) ProtoMessage()

func (*SwarmServiceMsg) ProtoReflect

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

func (*SwarmServiceMsg) Reset

func (x *SwarmServiceMsg) Reset()

func (*SwarmServiceMsg) String

func (x *SwarmServiceMsg) String() string

type SwarmTaskMsg

type SwarmTaskMsg 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"`
	NodeId       string                 `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Slot         int32                  `protobuf:"varint,4,opt,name=slot,proto3" json:"slot,omitempty"`
	State        string                 `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"`
	DesiredState string                 `protobuf:"bytes,6,opt,name=desired_state,json=desiredState,proto3" json:"desired_state,omitempty"`
	ContainerId  string                 `protobuf:"bytes,7,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
	Error        string                 `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"`
	ExitCode     int32                  `protobuf:"varint,9,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	HasExitCode  bool                   `protobuf:"varint,10,opt,name=has_exit_code,json=hasExitCode,proto3" json:"has_exit_code,omitempty"` // proto3 has no nullable int; gate exit_code with this
	Timestamp    *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	NodeHostname string                 `protobuf:"bytes,12,opt,name=node_hostname,json=nodeHostname,proto3" json:"node_hostname,omitempty"`
	// contains filtered or unexported fields
}

func (*SwarmTaskMsg) Descriptor deprecated

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

Deprecated: Use SwarmTaskMsg.ProtoReflect.Descriptor instead.

func (*SwarmTaskMsg) GetContainerId

func (x *SwarmTaskMsg) GetContainerId() string

func (*SwarmTaskMsg) GetDesiredState

func (x *SwarmTaskMsg) GetDesiredState() string

func (*SwarmTaskMsg) GetError

func (x *SwarmTaskMsg) GetError() string

func (*SwarmTaskMsg) GetExitCode

func (x *SwarmTaskMsg) GetExitCode() int32

func (*SwarmTaskMsg) GetHasExitCode

func (x *SwarmTaskMsg) GetHasExitCode() bool

func (*SwarmTaskMsg) GetNodeHostname

func (x *SwarmTaskMsg) GetNodeHostname() string

func (*SwarmTaskMsg) GetNodeId

func (x *SwarmTaskMsg) GetNodeId() string

func (*SwarmTaskMsg) GetServiceId

func (x *SwarmTaskMsg) GetServiceId() string

func (*SwarmTaskMsg) GetSlot

func (x *SwarmTaskMsg) GetSlot() int32

func (*SwarmTaskMsg) GetState

func (x *SwarmTaskMsg) GetState() string

func (*SwarmTaskMsg) GetTaskId

func (x *SwarmTaskMsg) GetTaskId() string

func (*SwarmTaskMsg) GetTimestamp

func (x *SwarmTaskMsg) GetTimestamp() *timestamppb.Timestamp

func (*SwarmTaskMsg) ProtoMessage

func (*SwarmTaskMsg) ProtoMessage()

func (*SwarmTaskMsg) ProtoReflect

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

func (*SwarmTaskMsg) Reset

func (x *SwarmTaskMsg) Reset()

func (*SwarmTaskMsg) String

func (x *SwarmTaskMsg) String() string

type SwarmTopology

type SwarmTopology struct {
	Services []*SwarmServiceMsg `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
	Tasks    []*SwarmTaskMsg    `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"`
	Nodes    []*SwarmNodeMsg    `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

func (*SwarmTopology) Descriptor deprecated

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

Deprecated: Use SwarmTopology.ProtoReflect.Descriptor instead.

func (*SwarmTopology) GetNodes

func (x *SwarmTopology) GetNodes() []*SwarmNodeMsg

func (*SwarmTopology) GetServices

func (x *SwarmTopology) GetServices() []*SwarmServiceMsg

func (*SwarmTopology) GetTasks

func (x *SwarmTopology) GetTasks() []*SwarmTaskMsg

func (*SwarmTopology) ProtoMessage

func (*SwarmTopology) ProtoMessage()

func (*SwarmTopology) ProtoReflect

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

func (*SwarmTopology) Reset

func (x *SwarmTopology) Reset()

func (*SwarmTopology) String

func (x *SwarmTopology) String() string

type UnimplementedIngestServer

type UnimplementedIngestServer struct{}

UnimplementedIngestServer 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 (UnimplementedIngestServer) Push

func (UnimplementedIngestServer) RegisterAgent

type UnsafeIngestServer

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

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

Jump to

Keyboard shortcuts

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