Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterIngestServer(s grpc.ServiceRegistrar, srv IngestServer)
- type AgentConfig
- func (*AgentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AgentConfig) GetCertificateScanIntervalSeconds() uint32
- func (x *AgentConfig) GetMaxEventsPerSecond() uint32
- func (x *AgentConfig) GetResourceSampleIntervalSeconds() uint32
- func (*AgentConfig) ProtoMessage()
- func (x *AgentConfig) ProtoReflect() protoreflect.Message
- func (x *AgentConfig) Reset()
- func (x *AgentConfig) String() string
- type AgentEvent
- func (*AgentEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AgentEvent) GetAgentId() string
- func (x *AgentEvent) GetBody() isAgentEvent_Body
- func (x *AgentEvent) GetCertificate() *CertificateInfo
- func (x *AgentEvent) GetContainer() *ContainerEvent
- func (x *AgentEvent) GetEndpoint() *EndpointEvent
- func (x *AgentEvent) GetEventId() string
- func (x *AgentEvent) GetHeartbeat() *HeartbeatEvent
- func (x *AgentEvent) GetKubernetes() *KubernetesTopology
- func (x *AgentEvent) GetObservedAt() *timestamppb.Timestamp
- func (x *AgentEvent) GetResource() *ResourceSample
- func (x *AgentEvent) GetSeq() uint64
- func (x *AgentEvent) GetSwarm() *SwarmTopology
- func (*AgentEvent) ProtoMessage()
- func (x *AgentEvent) ProtoReflect() protoreflect.Message
- func (x *AgentEvent) Reset()
- func (x *AgentEvent) String() string
- type AgentEvent_Certificate
- type AgentEvent_Container
- type AgentEvent_Endpoint
- type AgentEvent_Heartbeat
- type AgentEvent_Kubernetes
- type AgentEvent_Resource
- type AgentEvent_Swarm
- type AuthChallenge
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetAgentId() string
- func (x *AuthResponse) GetSignature() []byte
- func (x *AuthResponse) GetTimestamp() int64
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- type CertificateInfo
- func (*CertificateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CertificateInfo) GetFingerprintSha256() []byte
- func (x *CertificateInfo) GetHost() string
- func (x *CertificateInfo) GetIssuerCn() string
- func (x *CertificateInfo) GetNotAfter() *timestamppb.Timestamp
- func (x *CertificateInfo) GetNotBefore() *timestamppb.Timestamp
- func (x *CertificateInfo) GetPort() uint32
- func (x *CertificateInfo) GetSanDns() []string
- func (x *CertificateInfo) GetSubjectCn() string
- func (*CertificateInfo) ProtoMessage()
- func (x *CertificateInfo) ProtoReflect() protoreflect.Message
- func (x *CertificateInfo) Reset()
- func (x *CertificateInfo) String() string
- type ClientMessage
- func (*ClientMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ClientMessage) GetAuth() *AuthResponse
- func (x *ClientMessage) GetEvent() *AgentEvent
- func (x *ClientMessage) GetPayload() isClientMessage_Payload
- func (*ClientMessage) ProtoMessage()
- func (x *ClientMessage) ProtoReflect() protoreflect.Message
- func (x *ClientMessage) Reset()
- func (x *ClientMessage) String() string
- type ClientMessage_Auth
- type ClientMessage_Event
- type ContainerEvent
- func (*ContainerEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ContainerEvent) GetContainerId() string
- func (x *ContainerEvent) GetImage() string
- func (x *ContainerEvent) GetImageDigest() string
- func (x *ContainerEvent) GetLabels() map[string]string
- func (x *ContainerEvent) GetName() string
- func (x *ContainerEvent) GetStartedAt() *timestamppb.Timestamp
- func (x *ContainerEvent) GetState() ContainerState
- func (x *ContainerEvent) GetStatusMessage() string
- func (*ContainerEvent) ProtoMessage()
- func (x *ContainerEvent) ProtoReflect() protoreflect.Message
- func (x *ContainerEvent) Reset()
- func (x *ContainerEvent) String() string
- type ContainerState
- func (ContainerState) Descriptor() protoreflect.EnumDescriptor
- func (x ContainerState) Enum() *ContainerState
- func (ContainerState) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContainerState) Number() protoreflect.EnumNumber
- func (x ContainerState) String() string
- func (ContainerState) Type() protoreflect.EnumType
- type EndpointEvent
- func (*EndpointEvent) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointEvent) GetEndpointId() string
- func (x *EndpointEvent) GetErrorMessage() string
- func (x *EndpointEvent) GetLatencyMs() uint64
- func (x *EndpointEvent) GetStatus() EndpointStatus
- func (x *EndpointEvent) GetStatusCode() uint32
- func (x *EndpointEvent) GetUrl() string
- func (*EndpointEvent) ProtoMessage()
- func (x *EndpointEvent) ProtoReflect() protoreflect.Message
- func (x *EndpointEvent) Reset()
- func (x *EndpointEvent) String() string
- type EndpointStatus
- func (EndpointStatus) Descriptor() protoreflect.EnumDescriptor
- func (x EndpointStatus) Enum() *EndpointStatus
- func (EndpointStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x EndpointStatus) Number() protoreflect.EnumNumber
- func (x EndpointStatus) String() string
- func (EndpointStatus) Type() protoreflect.EnumType
- type EventAck
- func (*EventAck) Descriptor() ([]byte, []int)deprecated
- func (x *EventAck) GetLastEventSeq() uint64
- func (x *EventAck) GetReceivedAt() *timestamppb.Timestamp
- func (*EventAck) ProtoMessage()
- func (x *EventAck) ProtoReflect() protoreflect.Message
- func (x *EventAck) Reset()
- func (x *EventAck) String() string
- type HeartbeatEvent
- func (*HeartbeatEvent) Descriptor() ([]byte, []int)deprecated
- func (x *HeartbeatEvent) GetHeartbeatToken() string
- func (x *HeartbeatEvent) GetSourceIp() string
- func (*HeartbeatEvent) ProtoMessage()
- func (x *HeartbeatEvent) ProtoReflect() protoreflect.Message
- func (x *HeartbeatEvent) Reset()
- func (x *HeartbeatEvent) String() string
- type IngestClient
- type IngestServer
- type Ingest_PushClient
- type Ingest_PushServer
- type K8SContainerStatusMsg
- func (*K8SContainerStatusMsg) Descriptor() ([]byte, []int)deprecated
- func (x *K8SContainerStatusMsg) GetImage() string
- func (x *K8SContainerStatusMsg) GetName() string
- func (x *K8SContainerStatusMsg) GetReady() bool
- func (x *K8SContainerStatusMsg) GetRestartCount() int32
- func (x *K8SContainerStatusMsg) GetState() string
- func (x *K8SContainerStatusMsg) GetStateReason() string
- func (*K8SContainerStatusMsg) ProtoMessage()
- func (x *K8SContainerStatusMsg) ProtoReflect() protoreflect.Message
- func (x *K8SContainerStatusMsg) Reset()
- func (x *K8SContainerStatusMsg) String() string
- type K8SEventMsg
- func (*K8SEventMsg) Descriptor() ([]byte, []int)deprecated
- func (x *K8SEventMsg) GetCount() int32
- func (x *K8SEventMsg) GetFirstSeen() *timestamppb.Timestamp
- func (x *K8SEventMsg) GetInvolvedKind() string
- func (x *K8SEventMsg) GetInvolvedName() string
- func (x *K8SEventMsg) GetInvolvedNamespace() string
- func (x *K8SEventMsg) GetLastSeen() *timestamppb.Timestamp
- func (x *K8SEventMsg) GetMessage() string
- func (x *K8SEventMsg) GetReason() string
- func (x *K8SEventMsg) GetSource() string
- func (x *K8SEventMsg) GetType() string
- func (*K8SEventMsg) ProtoMessage()
- func (x *K8SEventMsg) ProtoReflect() protoreflect.Message
- func (x *K8SEventMsg) Reset()
- func (x *K8SEventMsg) String() string
- type K8SNodeMsg
- func (*K8SNodeMsg) Descriptor() ([]byte, []int)deprecated
- func (x *K8SNodeMsg) GetAllocatableCpuMillicores() int64
- func (x *K8SNodeMsg) GetAllocatableMemoryBytes() int64
- func (x *K8SNodeMsg) GetAllocatablePods() int64
- func (x *K8SNodeMsg) GetArchitecture() string
- func (x *K8SNodeMsg) GetCapacityCpuMillicores() int64
- func (x *K8SNodeMsg) GetCapacityMemoryBytes() int64
- func (x *K8SNodeMsg) GetCapacityPods() int64
- func (x *K8SNodeMsg) GetCreatedAt() *timestamppb.Timestamp
- func (x *K8SNodeMsg) GetKubernetesVersion() string
- func (x *K8SNodeMsg) GetName() string
- func (x *K8SNodeMsg) GetOsImage() string
- func (x *K8SNodeMsg) GetRoles() []string
- func (x *K8SNodeMsg) GetRunningPods() int32
- func (x *K8SNodeMsg) GetStatus() string
- func (*K8SNodeMsg) ProtoMessage()
- func (x *K8SNodeMsg) ProtoReflect() protoreflect.Message
- func (x *K8SNodeMsg) Reset()
- func (x *K8SNodeMsg) String() string
- type K8SPodMsg
- func (*K8SPodMsg) Descriptor() ([]byte, []int)deprecated
- func (x *K8SPodMsg) GetContainers() []*K8SContainerStatusMsg
- func (x *K8SPodMsg) GetCreatedAt() *timestamppb.Timestamp
- func (x *K8SPodMsg) GetHostIp() string
- func (x *K8SPodMsg) GetName() string
- func (x *K8SPodMsg) GetNamespace() string
- func (x *K8SPodMsg) GetNodeName() string
- func (x *K8SPodMsg) GetPodIp() string
- func (x *K8SPodMsg) GetRestartCount() int32
- func (x *K8SPodMsg) GetStatus() string
- func (x *K8SPodMsg) GetStatusReason() string
- func (x *K8SPodMsg) GetWorkloadRef() string
- func (*K8SPodMsg) ProtoMessage()
- func (x *K8SPodMsg) ProtoReflect() protoreflect.Message
- func (x *K8SPodMsg) Reset()
- func (x *K8SPodMsg) String() string
- type K8SWorkloadMsg
- func (*K8SWorkloadMsg) Descriptor() ([]byte, []int)deprecated
- func (x *K8SWorkloadMsg) GetCreatedAt() *timestamppb.Timestamp
- func (x *K8SWorkloadMsg) GetDesiredReplicas() int32
- func (x *K8SWorkloadMsg) GetId() string
- func (x *K8SWorkloadMsg) GetImages() []string
- func (x *K8SWorkloadMsg) GetKind() string
- func (x *K8SWorkloadMsg) GetName() string
- func (x *K8SWorkloadMsg) GetNamespace() string
- func (x *K8SWorkloadMsg) GetReadyReplicas() int32
- func (x *K8SWorkloadMsg) GetStatus() string
- func (*K8SWorkloadMsg) ProtoMessage()
- func (x *K8SWorkloadMsg) ProtoReflect() protoreflect.Message
- func (x *K8SWorkloadMsg) Reset()
- func (x *K8SWorkloadMsg) String() string
- type KubernetesTopology
- func (*KubernetesTopology) Descriptor() ([]byte, []int)deprecated
- func (x *KubernetesTopology) GetEvents() []*K8SEventMsg
- func (x *KubernetesTopology) GetNamespaces() []string
- func (x *KubernetesTopology) GetNodes() []*K8SNodeMsg
- func (x *KubernetesTopology) GetPods() []*K8SPodMsg
- func (x *KubernetesTopology) GetWorkloads() []*K8SWorkloadMsg
- func (*KubernetesTopology) ProtoMessage()
- func (x *KubernetesTopology) ProtoReflect() protoreflect.Message
- func (x *KubernetesTopology) Reset()
- func (x *KubernetesTopology) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAgentId() string
- func (x *RegisterRequest) GetAgentVersion() string
- func (x *RegisterRequest) GetDetectedRuntime() Runtime
- func (x *RegisterRequest) GetEnrollmentToken() string
- func (x *RegisterRequest) GetHostname() string
- func (x *RegisterRequest) GetLabel() string
- func (x *RegisterRequest) GetOsArch() string
- func (x *RegisterRequest) GetPublicKey() []byte
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetAgentConfig() *AgentConfig
- func (x *RegisterResponse) GetServerTime() *timestamppb.Timestamp
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type ResourceSample
- func (*ResourceSample) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceSample) GetContainerId() string
- func (x *ResourceSample) GetCpuPercent() float64
- func (x *ResourceSample) GetDiskReadBytes() uint64
- func (x *ResourceSample) GetDiskWriteBytes() uint64
- func (x *ResourceSample) GetHostDiskTotalBytes() uint64
- func (x *ResourceSample) GetHostDiskUsedBytes() uint64
- func (x *ResourceSample) GetMemoryBytes() uint64
- func (x *ResourceSample) GetMemoryLimitBytes() uint64
- func (x *ResourceSample) GetNetworkRxBytes() uint64
- func (x *ResourceSample) GetNetworkTxBytes() uint64
- func (*ResourceSample) ProtoMessage()
- func (x *ResourceSample) ProtoReflect() protoreflect.Message
- func (x *ResourceSample) Reset()
- func (x *ResourceSample) String() string
- type Runtime
- type ServerMessage
- func (*ServerMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ServerMessage) GetAck() *EventAck
- func (x *ServerMessage) GetChallenge() *AuthChallenge
- func (x *ServerMessage) GetError() *StreamError
- func (x *ServerMessage) GetPayload() isServerMessage_Payload
- func (*ServerMessage) ProtoMessage()
- func (x *ServerMessage) ProtoReflect() protoreflect.Message
- func (x *ServerMessage) Reset()
- func (x *ServerMessage) String() string
- type ServerMessage_Ack
- type ServerMessage_Challenge
- type ServerMessage_Error
- type StreamError
- func (*StreamError) Descriptor() ([]byte, []int)deprecated
- func (x *StreamError) GetCode() string
- func (x *StreamError) GetMessage() string
- func (x *StreamError) GetRetryAfterMs() uint32
- func (*StreamError) ProtoMessage()
- func (x *StreamError) ProtoReflect() protoreflect.Message
- func (x *StreamError) Reset()
- func (x *StreamError) String() string
- type SwarmNodeMsg
- func (*SwarmNodeMsg) Descriptor() ([]byte, []int)deprecated
- func (x *SwarmNodeMsg) GetAddress() string
- func (x *SwarmNodeMsg) GetAvailability() string
- func (x *SwarmNodeMsg) GetEngineVersion() string
- func (x *SwarmNodeMsg) GetHostname() string
- func (x *SwarmNodeMsg) GetNodeId() string
- func (x *SwarmNodeMsg) GetRole() string
- func (x *SwarmNodeMsg) GetStatus() string
- func (x *SwarmNodeMsg) GetTaskCount() int32
- func (*SwarmNodeMsg) ProtoMessage()
- func (x *SwarmNodeMsg) ProtoReflect() protoreflect.Message
- func (x *SwarmNodeMsg) Reset()
- func (x *SwarmNodeMsg) String() string
- type SwarmServiceMsg
- func (*SwarmServiceMsg) Descriptor() ([]byte, []int)deprecated
- func (x *SwarmServiceMsg) GetCreatedAt() *timestamppb.Timestamp
- func (x *SwarmServiceMsg) GetDesiredReplicas() int32
- func (x *SwarmServiceMsg) GetImage() string
- func (x *SwarmServiceMsg) GetLabels() map[string]string
- func (x *SwarmServiceMsg) GetMode() string
- func (x *SwarmServiceMsg) GetName() string
- func (x *SwarmServiceMsg) GetRunningReplicas() int32
- func (x *SwarmServiceMsg) GetServiceId() string
- func (x *SwarmServiceMsg) GetStackName() string
- func (*SwarmServiceMsg) ProtoMessage()
- func (x *SwarmServiceMsg) ProtoReflect() protoreflect.Message
- func (x *SwarmServiceMsg) Reset()
- func (x *SwarmServiceMsg) String() string
- type SwarmTaskMsg
- func (*SwarmTaskMsg) Descriptor() ([]byte, []int)deprecated
- func (x *SwarmTaskMsg) GetContainerId() string
- func (x *SwarmTaskMsg) GetDesiredState() string
- func (x *SwarmTaskMsg) GetError() string
- func (x *SwarmTaskMsg) GetExitCode() int32
- func (x *SwarmTaskMsg) GetHasExitCode() bool
- func (x *SwarmTaskMsg) GetNodeHostname() string
- func (x *SwarmTaskMsg) GetNodeId() string
- func (x *SwarmTaskMsg) GetServiceId() string
- func (x *SwarmTaskMsg) GetSlot() int32
- func (x *SwarmTaskMsg) GetState() string
- func (x *SwarmTaskMsg) GetTaskId() string
- func (x *SwarmTaskMsg) GetTimestamp() *timestamppb.Timestamp
- func (*SwarmTaskMsg) ProtoMessage()
- func (x *SwarmTaskMsg) ProtoReflect() protoreflect.Message
- func (x *SwarmTaskMsg) Reset()
- func (x *SwarmTaskMsg) String() string
- type SwarmTopology
- func (*SwarmTopology) Descriptor() ([]byte, []int)deprecated
- func (x *SwarmTopology) GetNodes() []*SwarmNodeMsg
- func (x *SwarmTopology) GetServices() []*SwarmServiceMsg
- func (x *SwarmTopology) GetTasks() []*SwarmTaskMsg
- func (*SwarmTopology) ProtoMessage()
- func (x *SwarmTopology) ProtoReflect() protoreflect.Message
- func (x *SwarmTopology) Reset()
- func (x *SwarmTopology) String() string
- type UnimplementedIngestServer
- type UnsafeIngestServer
Constants ¶
const ( Ingest_RegisterAgent_FullMethodName = "/maintenant.agent.v1.Ingest/RegisterAgent" Ingest_Push_FullMethodName = "/maintenant.agent.v1.Ingest/Push" )
Variables ¶
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.
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.
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.
var File_specs_012_multiserver_pro_contracts_ingest_proto protoreflect.FileDescriptor
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: "specs/012-multiserver-pro/contracts/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 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
// Types that are valid to be assigned to Body:
//
// *AgentEvent_Container
// *AgentEvent_Endpoint
// *AgentEvent_Heartbeat
// *AgentEvent_Resource
// *AgentEvent_Certificate
// *AgentEvent_Swarm
// *AgentEvent_Kubernetes
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) GetKubernetes ¶
func (x *AgentEvent) GetKubernetes() *KubernetesTopology
func (*AgentEvent) GetObservedAt ¶
func (x *AgentEvent) GetObservedAt() *timestamppb.Timestamp
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_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)
// 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) 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 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
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) 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 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 */
// 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) 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 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) Descriptor() protoreflect.EnumDescriptor
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 (x ContainerState) Number() protoreflect.EnumNumber
func (ContainerState) String ¶
func (x ContainerState) String() string
func (ContainerState) Type ¶
func (ContainerState) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
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 (x EndpointStatus) Number() protoreflect.EnumNumber
func (EndpointStatus) String ¶
func (x EndpointStatus) String() string
func (EndpointStatus) Type ¶
func (EndpointStatus) Type() protoreflect.EnumType
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) GetLastEventSeq ¶
func (*EventAck) GetReceivedAt ¶
func (x *EventAck) GetReceivedAt() *timestamppb.Timestamp
func (*EventAck) ProtoMessage ¶
func (*EventAck) ProtoMessage()
func (*EventAck) ProtoReflect ¶
func (x *EventAck) ProtoReflect() protoreflect.Message
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 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 ¶
type Ingest_PushClient = grpc.BidiStreamingClient[ClientMessage, ServerMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Ingest_PushServer ¶
type Ingest_PushServer = grpc.BidiStreamingServer[ClientMessage, ServerMessage]
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) GetContainers ¶
func (x *K8SPodMsg) GetContainers() []*K8SContainerStatusMsg
func (*K8SPodMsg) GetCreatedAt ¶
func (x *K8SPodMsg) GetCreatedAt() *timestamppb.Timestamp
func (*K8SPodMsg) GetNamespace ¶
func (*K8SPodMsg) GetNodeName ¶
func (*K8SPodMsg) GetRestartCount ¶
func (*K8SPodMsg) GetStatusReason ¶
func (*K8SPodMsg) GetWorkloadRef ¶
func (*K8SPodMsg) ProtoMessage ¶
func (*K8SPodMsg) ProtoMessage()
func (*K8SPodMsg) ProtoReflect ¶
func (x *K8SPodMsg) ProtoReflect() protoreflect.Message
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 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
func (Runtime) Descriptor ¶
func (Runtime) Descriptor() protoreflect.EnumDescriptor
func (Runtime) EnumDescriptor
deprecated
func (Runtime) Number ¶
func (x Runtime) Number() protoreflect.EnumNumber
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
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) 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_Error ¶
type ServerMessage_Error struct {
Error *StreamError `protobuf:"bytes,3,opt,name=error,proto3,oneof"` // server-initiated termination signal
}
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) Push(grpc.BidiStreamingServer[ClientMessage, ServerMessage]) error
func (UnimplementedIngestServer) RegisterAgent ¶
func (UnimplementedIngestServer) RegisterAgent(context.Context, *RegisterRequest) (*RegisterResponse, error)
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.