Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterObserverServer(s *grpc.Server, srv ObserverServer)
- type CiliumEventType
- type DNS
- type DropReason
- type Endpoint
- type Ethernet
- type EventType
- type EventTypeFilter
- type Flow
- type FlowFilter
- type FlowType
- type GetFlowsRequest
- func (*GetFlowsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFlowsRequest) GetBlacklist() []*flow.FlowFilter
- func (x *GetFlowsRequest) GetFollow() bool
- func (x *GetFlowsRequest) GetNumber() uint64
- func (x *GetFlowsRequest) GetSince() *timestamp.Timestamp
- func (x *GetFlowsRequest) GetUntil() *timestamp.Timestamp
- func (x *GetFlowsRequest) GetWhitelist() []*flow.FlowFilter
- func (msg *GetFlowsRequest) MarshalJSON() ([]byte, error)
- func (*GetFlowsRequest) ProtoMessage()
- func (x *GetFlowsRequest) ProtoReflect() protoreflect.Message
- func (x *GetFlowsRequest) Reset()
- func (x *GetFlowsRequest) String() string
- func (msg *GetFlowsRequest) UnmarshalJSON(b []byte) error
- type GetFlowsResponse
- func (*GetFlowsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFlowsResponse) GetFlow() *flow.Flow
- func (x *GetFlowsResponse) GetLostEvents() *flow.LostEvent
- func (x *GetFlowsResponse) GetNodeName() string
- func (x *GetFlowsResponse) GetNodeStatus() *relay.NodeStatusEvent
- func (m *GetFlowsResponse) GetResponseTypes() isGetFlowsResponse_ResponseTypes
- func (x *GetFlowsResponse) GetTime() *timestamp.Timestamp
- func (msg *GetFlowsResponse) MarshalJSON() ([]byte, error)
- func (*GetFlowsResponse) ProtoMessage()
- func (x *GetFlowsResponse) ProtoReflect() protoreflect.Message
- func (x *GetFlowsResponse) Reset()
- func (x *GetFlowsResponse) String() string
- func (msg *GetFlowsResponse) UnmarshalJSON(b []byte) error
- type GetFlowsResponse_Flow
- type GetFlowsResponse_LostEvents
- type GetFlowsResponse_NodeStatus
- type HTTP
- type HTTPHeader
- type ICMPv4
- type ICMPv6
- type IP
- type IPVersion
- type Kafka
- type L7FlowType
- type Layer4
- type Layer4_ICMPv4
- type Layer4_ICMPv6
- type Layer4_TCP
- type Layer4_UDP
- type Layer7
- type Layer7_Dns
- type Layer7_Http
- type Layer7_Kafka
- type LostEvent
- type LostEventSource
- type ObserverClient
- type ObserverServer
- type Observer_GetFlowsClient
- type Observer_GetFlowsServer
- type ServerStatusRequest
- func (*ServerStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (msg *ServerStatusRequest) MarshalJSON() ([]byte, error)
- func (*ServerStatusRequest) ProtoMessage()
- func (x *ServerStatusRequest) ProtoReflect() protoreflect.Message
- func (x *ServerStatusRequest) Reset()
- func (x *ServerStatusRequest) String() string
- func (msg *ServerStatusRequest) UnmarshalJSON(b []byte) error
- type ServerStatusResponse
- func (*ServerStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStatusResponse) GetMaxFlows() uint64
- func (x *ServerStatusResponse) GetNumConnectedNodes() *wrappers.UInt32Value
- func (x *ServerStatusResponse) GetNumFlows() uint64
- func (x *ServerStatusResponse) GetNumUnavailableNodes() *wrappers.UInt32Value
- func (x *ServerStatusResponse) GetSeenFlows() uint64
- func (x *ServerStatusResponse) GetUnavailableNodes() []string
- func (x *ServerStatusResponse) GetUptimeNs() uint64
- func (msg *ServerStatusResponse) MarshalJSON() ([]byte, error)
- func (*ServerStatusResponse) ProtoMessage()
- func (x *ServerStatusResponse) ProtoReflect() protoreflect.Message
- func (x *ServerStatusResponse) Reset()
- func (x *ServerStatusResponse) String() string
- func (msg *ServerStatusResponse) UnmarshalJSON(b []byte) error
- type Service
- type TCP
- type TCPFlags
- type TraceObservationPoint
- type TrafficDirection
- type UDP
- type UnimplementedObserverServer
- type Verdict
Constants ¶
const DropReason_CT_CANNOT_CREATE_ENTRY_FROM_PACKET = flow.DropReason_CT_CANNOT_CREATE_ENTRY_FROM_PACKET
const DropReason_CT_MAP_INSERTION_FAILED = flow.DropReason_CT_MAP_INSERTION_FAILED
const DropReason_CT_MISSING_TCP_ACK_FLAG = flow.DropReason_CT_MISSING_TCP_ACK_FLAG
const DropReason_CT_TRUNCATED_OR_INVALID_HEADER = flow.DropReason_CT_TRUNCATED_OR_INVALID_HEADER
const DropReason_CT_UNKNOWN_L4_PROTOCOL = flow.DropReason_CT_UNKNOWN_L4_PROTOCOL
const DropReason_DENIED_BY_LB_SRC_RANGE_CHECK = flow.DropReason_DENIED_BY_LB_SRC_RANGE_CHECK
const DropReason_DROP_REASON_UNKNOWN = flow.DropReason_DROP_REASON_UNKNOWN
const DropReason_ENCAPSULATION_TRAFFIC_IS_PROHIBITED = flow.DropReason_ENCAPSULATION_TRAFFIC_IS_PROHIBITED
const DropReason_ERROR_RETRIEVING_TUNNEL_KEY = flow.DropReason_ERROR_RETRIEVING_TUNNEL_KEY
const DropReason_ERROR_RETRIEVING_TUNNEL_OPTIONS = flow.DropReason_ERROR_RETRIEVING_TUNNEL_OPTIONS
const DropReason_ERROR_WHILE_CORRECTING_L3_CHECKSUM = flow.DropReason_ERROR_WHILE_CORRECTING_L3_CHECKSUM
const DropReason_ERROR_WHILE_CORRECTING_L4_CHECKSUM = flow.DropReason_ERROR_WHILE_CORRECTING_L4_CHECKSUM
const DropReason_ERROR_WRITING_TO_PACKET = flow.DropReason_ERROR_WRITING_TO_PACKET
const DropReason_FAILED_TO_INSERT_INTO_PROXYMAP = flow.DropReason_FAILED_TO_INSERT_INTO_PROXYMAP
const DropReason_FIB_LOOKUP_FAILED = flow.DropReason_FIB_LOOKUP_FAILED
const DropReason_FIRST_LOGICAL_DATAGRAM_FRAGMENT_NOT_FOUND = flow.DropReason_FIRST_LOGICAL_DATAGRAM_FRAGMENT_NOT_FOUND
const DropReason_FORBIDDEN_ICMPV6_MESSAGE = flow.DropReason_FORBIDDEN_ICMPV6_MESSAGE
const DropReason_INVALID_DESTINATION_MAC = flow.DropReason_INVALID_DESTINATION_MAC
const DropReason_INVALID_GENEVE_OPTION = flow.DropReason_INVALID_GENEVE_OPTION
const DropReason_INVALID_IDENTITY = flow.DropReason_INVALID_IDENTITY
const DropReason_INVALID_IPV6_EXTENSION_HEADER = flow.DropReason_INVALID_IPV6_EXTENSION_HEADER
const DropReason_INVALID_PACKET_DROPPED = flow.DropReason_INVALID_PACKET_DROPPED
const DropReason_INVALID_SOURCE_IP = flow.DropReason_INVALID_SOURCE_IP
const DropReason_INVALID_SOURCE_MAC = flow.DropReason_INVALID_SOURCE_MAC
const DropReason_IP_FRAGMENTATION_NOT_SUPPORTED = flow.DropReason_IP_FRAGMENTATION_NOT_SUPPORTED
const DropReason_IS_A_CLUSTERIP = flow.DropReason_IS_A_CLUSTERIP
const DropReason_LOCAL_HOST_IS_UNREACHABLE = flow.DropReason_LOCAL_HOST_IS_UNREACHABLE
const DropReason_MISSED_TAIL_CALL = flow.DropReason_MISSED_TAIL_CALL
const DropReason_NAT_NOT_NEEDED = flow.DropReason_NAT_NOT_NEEDED
const DropReason_NO_CONFIGURATION_AVAILABLE_TO_PERFORM_POLICY_DECISION = flow.DropReason_NO_CONFIGURATION_AVAILABLE_TO_PERFORM_POLICY_DECISION
const DropReason_NO_MAPPING_FOR_NAT_MASQUERADE = flow.DropReason_NO_MAPPING_FOR_NAT_MASQUERADE
const DropReason_NO_MATCHING_LOCAL_CONTAINER_FOUND = flow.DropReason_NO_MATCHING_LOCAL_CONTAINER_FOUND
const DropReason_NO_TUNNEL_OR_ENCAPSULATION_ENDPOINT = flow.DropReason_NO_TUNNEL_OR_ENCAPSULATION_ENDPOINT
const DropReason_POLICY_DENIED = flow.DropReason_POLICY_DENIED
const DropReason_PROXY_REDIRECTION_NOT_SUPPORTED_FOR_PROTOCOL = flow.DropReason_PROXY_REDIRECTION_NOT_SUPPORTED_FOR_PROTOCOL
const DropReason_REACHED_EDT_RATE_LIMITING_DROP_HORIZON = flow.DropReason_REACHED_EDT_RATE_LIMITING_DROP_HORIZON
const DropReason_SERVICE_BACKEND_NOT_FOUND = flow.DropReason_SERVICE_BACKEND_NOT_FOUND
const DropReason_SOCKET_ASSIGN_FAILED = flow.DropReason_SOCKET_ASSIGN_FAILED
const DropReason_SOCKET_LOOKUP_FAILED = flow.DropReason_SOCKET_LOOKUP_FAILED
const DropReason_STALE_OR_UNROUTABLE_IP = flow.DropReason_STALE_OR_UNROUTABLE_IP
const DropReason_UNKNOWN_CONNECTION_TRACKING_STATE = flow.DropReason_UNKNOWN_CONNECTION_TRACKING_STATE
const DropReason_UNKNOWN_ICMPV4_CODE = flow.DropReason_UNKNOWN_ICMPV4_CODE
const DropReason_UNKNOWN_ICMPV4_TYPE = flow.DropReason_UNKNOWN_ICMPV4_TYPE
const DropReason_UNKNOWN_ICMPV6_CODE = flow.DropReason_UNKNOWN_ICMPV6_CODE
const DropReason_UNKNOWN_ICMPV6_TYPE = flow.DropReason_UNKNOWN_ICMPV6_TYPE
const DropReason_UNKNOWN_L3_TARGET_ADDRESS = flow.DropReason_UNKNOWN_L3_TARGET_ADDRESS
const DropReason_UNKNOWN_L4_PROTOCOL = flow.DropReason_UNKNOWN_L4_PROTOCOL
const DropReason_UNKNOWN_SENDER = flow.DropReason_UNKNOWN_SENDER
const DropReason_UNSUPPORTED_L2_PROTOCOL = flow.DropReason_UNSUPPORTED_L2_PROTOCOL
const DropReason_UNSUPPORTED_L3_PROTOCOL = flow.DropReason_UNSUPPORTED_L3_PROTOCOL
const DropReason_UNSUPPORTED_PROTOCOL_FOR_NAT_MASQUERADE = flow.DropReason_UNSUPPORTED_PROTOCOL_FOR_NAT_MASQUERADE
const EventType_EventSample = flow.EventType_EventSample
const EventType_RecordLost = flow.EventType_RecordLost
const EventType_UNKNOWN = flow.EventType_UNKNOWN
const FlowType_L3_L4 = flow.FlowType_L3_L4
const FlowType_L7 = flow.FlowType_L7
const FlowType_UNKNOWN_TYPE = flow.FlowType_UNKNOWN_TYPE
const IPVersion_IP_NOT_USED = flow.IPVersion_IP_NOT_USED
const IPVersion_IPv4 = flow.IPVersion_IPv4
const IPVersion_IPv6 = flow.IPVersion_IPv6
const L7FlowType_REQUEST = flow.L7FlowType_REQUEST
const L7FlowType_RESPONSE = flow.L7FlowType_RESPONSE
const L7FlowType_SAMPLE = flow.L7FlowType_SAMPLE
const L7FlowType_UNKNOWN_L7_TYPE = flow.L7FlowType_UNKNOWN_L7_TYPE
const LostEventSource_OBSERVER_EVENTS_QUEUE = flow.LostEventSource_OBSERVER_EVENTS_QUEUE
const LostEventSource_PERF_EVENT_RING_BUFFER = flow.LostEventSource_PERF_EVENT_RING_BUFFER
const LostEventSource_UNKNOWN_LOST_EVENT_SOURCE = flow.LostEventSource_UNKNOWN_LOST_EVENT_SOURCE
const TraceObservationPoint_FROM_ENDPOINT = flow.TraceObservationPoint_FROM_ENDPOINT
const TraceObservationPoint_FROM_HOST = flow.TraceObservationPoint_FROM_HOST
const TraceObservationPoint_FROM_NETWORK = flow.TraceObservationPoint_FROM_NETWORK
const TraceObservationPoint_FROM_OVERLAY = flow.TraceObservationPoint_FROM_OVERLAY
const TraceObservationPoint_FROM_PROXY = flow.TraceObservationPoint_FROM_PROXY
const TraceObservationPoint_FROM_STACK = flow.TraceObservationPoint_FROM_STACK
const TraceObservationPoint_TO_ENDPOINT = flow.TraceObservationPoint_TO_ENDPOINT
const TraceObservationPoint_TO_HOST = flow.TraceObservationPoint_TO_HOST
const TraceObservationPoint_TO_NETWORK = flow.TraceObservationPoint_TO_NETWORK
const TraceObservationPoint_TO_OVERLAY = flow.TraceObservationPoint_TO_OVERLAY
const TraceObservationPoint_TO_PROXY = flow.TraceObservationPoint_TO_PROXY
const TraceObservationPoint_TO_STACK = flow.TraceObservationPoint_TO_STACK
const TraceObservationPoint_UNKNOWN_POINT = flow.TraceObservationPoint_UNKNOWN_POINT
const TrafficDirection_EGRESS = flow.TrafficDirection_EGRESS
const TrafficDirection_INGRESS = flow.TrafficDirection_INGRESS
const TrafficDirection_TRAFFIC_DIRECTION_UNKNOWN = flow.TrafficDirection_TRAFFIC_DIRECTION_UNKNOWN
const Verdict_DROPPED = flow.Verdict_DROPPED
const Verdict_ERROR = flow.Verdict_ERROR
const Verdict_FORWARDED = flow.Verdict_FORWARDED
const Verdict_VERDICT_UNKNOWN = flow.Verdict_VERDICT_UNKNOWN
Variables ¶
var DropReason_name = flow.DropReason_name
var DropReason_value = flow.DropReason_value
var EventType_name = flow.EventType_name
var EventType_value = flow.EventType_value
var File_observer_observer_proto protoreflect.FileDescriptor
var FlowType_name = flow.FlowType_name
var FlowType_value = flow.FlowType_value
var IPVersion_name = flow.IPVersion_name
var IPVersion_value = flow.IPVersion_value
var L7FlowType_name = flow.L7FlowType_name
var L7FlowType_value = flow.L7FlowType_value
var LostEventSource_name = flow.LostEventSource_name
var LostEventSource_value = flow.LostEventSource_value
var TraceObservationPoint_name = flow.TraceObservationPoint_name
var TraceObservationPoint_value = flow.TraceObservationPoint_value
var TrafficDirection_name = flow.TrafficDirection_name
var TrafficDirection_value = flow.TrafficDirection_value
var Verdict_name = flow.Verdict_name
var Verdict_value = flow.Verdict_value
Functions ¶
func RegisterObserverServer ¶
func RegisterObserverServer(s *grpc.Server, srv ObserverServer)
Types ¶
type CiliumEventType ¶
type CiliumEventType = flow.CiliumEventType
type DropReason ¶
type DropReason = flow.DropReason
type EventTypeFilter ¶
type EventTypeFilter = flow.EventTypeFilter
type FlowFilter ¶
type FlowFilter = flow.FlowFilter
type GetFlowsRequest ¶
type GetFlowsRequest struct { // Number of flows that should be returned. Incompatible with `since/until`. Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // follow sets when the server should continue to stream flows after // printing the last N flows. Follow bool `protobuf:"varint,3,opt,name=follow,proto3" json:"follow,omitempty"` // blacklist defines a list of filters which have to match for a flow to be // excluded from the result. // If multiple blacklist filters are specified, only one of them has to // match for a flow to be excluded. Blacklist []*flow.FlowFilter `protobuf:"bytes,5,rep,name=blacklist,proto3" json:"blacklist,omitempty"` // whitelist defines a list of filters which have to match for a flow to be // included in the result. // If multiple whitelist filters are specified, only one of them has to // match for a flow to be included. // The whitelist and blacklist can both be specified. In such cases, the // set of the returned flows is the set difference `whitelist - blacklist`. // In other words, the result will contain all flows matched by the // whitelist that are not also simultaneously matched by the blacklist. Whitelist []*flow.FlowFilter `protobuf:"bytes,6,rep,name=whitelist,proto3" json:"whitelist,omitempty"` // Since this time for returned flows. Incompatible with `number`. Since *timestamp.Timestamp `protobuf:"bytes,7,opt,name=since,proto3" json:"since,omitempty"` // Until this time for returned flows. Incompatible with `number`. Until *timestamp.Timestamp `protobuf:"bytes,8,opt,name=until,proto3" json:"until,omitempty"` // contains filtered or unexported fields }
func (*GetFlowsRequest) Descriptor
deprecated
func (*GetFlowsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFlowsRequest.ProtoReflect.Descriptor instead.
func (*GetFlowsRequest) GetBlacklist ¶
func (x *GetFlowsRequest) GetBlacklist() []*flow.FlowFilter
func (*GetFlowsRequest) GetFollow ¶
func (x *GetFlowsRequest) GetFollow() bool
func (*GetFlowsRequest) GetNumber ¶
func (x *GetFlowsRequest) GetNumber() uint64
func (*GetFlowsRequest) GetSince ¶
func (x *GetFlowsRequest) GetSince() *timestamp.Timestamp
func (*GetFlowsRequest) GetUntil ¶
func (x *GetFlowsRequest) GetUntil() *timestamp.Timestamp
func (*GetFlowsRequest) GetWhitelist ¶
func (x *GetFlowsRequest) GetWhitelist() []*flow.FlowFilter
func (*GetFlowsRequest) MarshalJSON ¶
func (msg *GetFlowsRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetFlowsRequest) ProtoMessage ¶
func (*GetFlowsRequest) ProtoMessage()
func (*GetFlowsRequest) ProtoReflect ¶
func (x *GetFlowsRequest) ProtoReflect() protoreflect.Message
func (*GetFlowsRequest) Reset ¶
func (x *GetFlowsRequest) Reset()
func (*GetFlowsRequest) String ¶
func (x *GetFlowsRequest) String() string
func (*GetFlowsRequest) UnmarshalJSON ¶
func (msg *GetFlowsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type GetFlowsResponse ¶
type GetFlowsResponse struct { // Types that are assignable to ResponseTypes: // *GetFlowsResponse_Flow // *GetFlowsResponse_NodeStatus // *GetFlowsResponse_LostEvents ResponseTypes isGetFlowsResponse_ResponseTypes `protobuf_oneof:"response_types"` // Name of the node where this event was observed. NodeName string `protobuf:"bytes,1000,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` // Timestamp at which this event was observed. Time *timestamp.Timestamp `protobuf:"bytes,1001,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
GetFlowsResponse contains either a flow or a protocol message.
func (*GetFlowsResponse) Descriptor
deprecated
func (*GetFlowsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFlowsResponse.ProtoReflect.Descriptor instead.
func (*GetFlowsResponse) GetFlow ¶
func (x *GetFlowsResponse) GetFlow() *flow.Flow
func (*GetFlowsResponse) GetLostEvents ¶
func (x *GetFlowsResponse) GetLostEvents() *flow.LostEvent
func (*GetFlowsResponse) GetNodeName ¶
func (x *GetFlowsResponse) GetNodeName() string
func (*GetFlowsResponse) GetNodeStatus ¶
func (x *GetFlowsResponse) GetNodeStatus() *relay.NodeStatusEvent
func (*GetFlowsResponse) GetResponseTypes ¶
func (m *GetFlowsResponse) GetResponseTypes() isGetFlowsResponse_ResponseTypes
func (*GetFlowsResponse) GetTime ¶
func (x *GetFlowsResponse) GetTime() *timestamp.Timestamp
func (*GetFlowsResponse) MarshalJSON ¶
func (msg *GetFlowsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetFlowsResponse) ProtoMessage ¶
func (*GetFlowsResponse) ProtoMessage()
func (*GetFlowsResponse) ProtoReflect ¶
func (x *GetFlowsResponse) ProtoReflect() protoreflect.Message
func (*GetFlowsResponse) Reset ¶
func (x *GetFlowsResponse) Reset()
func (*GetFlowsResponse) String ¶
func (x *GetFlowsResponse) String() string
func (*GetFlowsResponse) UnmarshalJSON ¶
func (msg *GetFlowsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type GetFlowsResponse_Flow ¶
type GetFlowsResponse_NodeStatus ¶
type GetFlowsResponse_NodeStatus struct { // node_status informs clients about the state of the nodes // participating in this particular GetFlows request. NodeStatus *relay.NodeStatusEvent `protobuf:"bytes,2,opt,name=node_status,json=nodeStatus,proto3,oneof"` }
type HTTPHeader ¶
type HTTPHeader = flow.HTTPHeader
type L7FlowType ¶
type L7FlowType = flow.L7FlowType
type Layer4_ICMPv4 ¶
type Layer4_ICMPv4 = flow.Layer4_ICMPv4
type Layer4_ICMPv6 ¶
type Layer4_ICMPv6 = flow.Layer4_ICMPv6
type Layer4_TCP ¶
type Layer4_TCP = flow.Layer4_TCP
type Layer4_UDP ¶
type Layer4_UDP = flow.Layer4_UDP
type Layer7_Dns ¶
type Layer7_Dns = flow.Layer7_Dns
type Layer7_Http ¶
type Layer7_Http = flow.Layer7_Http
type Layer7_Kafka ¶
type Layer7_Kafka = flow.Layer7_Kafka
type LostEventSource ¶
type LostEventSource = flow.LostEventSource
type ObserverClient ¶
type ObserverClient interface { // GetFlows returning structured data, meant to eventually obsolete GetLastNFlows. GetFlows(ctx context.Context, in *GetFlowsRequest, opts ...grpc.CallOption) (Observer_GetFlowsClient, error) // ServerStatus returns some details about the running hubble server. ServerStatus(ctx context.Context, in *ServerStatusRequest, opts ...grpc.CallOption) (*ServerStatusResponse, error) }
ObserverClient is the client API for Observer 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 NewObserverClient ¶
func NewObserverClient(cc grpc.ClientConnInterface) ObserverClient
type ObserverServer ¶
type ObserverServer interface { // GetFlows returning structured data, meant to eventually obsolete GetLastNFlows. GetFlows(*GetFlowsRequest, Observer_GetFlowsServer) error // ServerStatus returns some details about the running hubble server. ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error) }
ObserverServer is the server API for Observer service. All implementations should embed UnimplementedObserverServer for forward compatibility
type Observer_GetFlowsClient ¶
type Observer_GetFlowsClient interface { Recv() (*GetFlowsResponse, error) grpc.ClientStream }
type Observer_GetFlowsServer ¶
type Observer_GetFlowsServer interface { Send(*GetFlowsResponse) error grpc.ServerStream }
type ServerStatusRequest ¶
type ServerStatusRequest struct {
// contains filtered or unexported fields
}
func (*ServerStatusRequest) Descriptor
deprecated
func (*ServerStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerStatusRequest.ProtoReflect.Descriptor instead.
func (*ServerStatusRequest) MarshalJSON ¶
func (msg *ServerStatusRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServerStatusRequest) ProtoMessage ¶
func (*ServerStatusRequest) ProtoMessage()
func (*ServerStatusRequest) ProtoReflect ¶
func (x *ServerStatusRequest) ProtoReflect() protoreflect.Message
func (*ServerStatusRequest) Reset ¶
func (x *ServerStatusRequest) Reset()
func (*ServerStatusRequest) String ¶
func (x *ServerStatusRequest) String() string
func (*ServerStatusRequest) UnmarshalJSON ¶
func (msg *ServerStatusRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type ServerStatusResponse ¶
type ServerStatusResponse struct { // number of currently captured flows // In a multi-node context, this is the cumulative count of all captured // flows. NumFlows uint64 `protobuf:"varint,1,opt,name=num_flows,json=numFlows,proto3" json:"num_flows,omitempty"` // maximum capacity of the ring buffer // In a multi-node context, this is the aggregation of all ring buffers // capacities. MaxFlows uint64 `protobuf:"varint,2,opt,name=max_flows,json=maxFlows,proto3" json:"max_flows,omitempty"` // total amount of flows observed since the observer was started // In a multi-node context, this is the aggregation of all flows that have // been seen. SeenFlows uint64 `protobuf:"varint,3,opt,name=seen_flows,json=seenFlows,proto3" json:"seen_flows,omitempty"` // uptime of this observer instance in nanoseconds // In a multi-node context, this field corresponds to the uptime of the // longest living instance. UptimeNs uint64 `protobuf:"varint,4,opt,name=uptime_ns,json=uptimeNs,proto3" json:"uptime_ns,omitempty"` // number of nodes for which a connection is established NumConnectedNodes *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=num_connected_nodes,json=numConnectedNodes,proto3" json:"num_connected_nodes,omitempty"` NumUnavailableNodes *wrappers.UInt32Value `protobuf:"bytes,6,opt,name=num_unavailable_nodes,json=numUnavailableNodes,proto3" json:"num_unavailable_nodes,omitempty"` // This list may not be exhaustive. UnavailableNodes []string `protobuf:"bytes,7,rep,name=unavailable_nodes,json=unavailableNodes,proto3" json:"unavailable_nodes,omitempty"` // contains filtered or unexported fields }
func (*ServerStatusResponse) Descriptor
deprecated
func (*ServerStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerStatusResponse.ProtoReflect.Descriptor instead.
func (*ServerStatusResponse) GetMaxFlows ¶
func (x *ServerStatusResponse) GetMaxFlows() uint64
func (*ServerStatusResponse) GetNumConnectedNodes ¶
func (x *ServerStatusResponse) GetNumConnectedNodes() *wrappers.UInt32Value
func (*ServerStatusResponse) GetNumFlows ¶
func (x *ServerStatusResponse) GetNumFlows() uint64
func (*ServerStatusResponse) GetNumUnavailableNodes ¶
func (x *ServerStatusResponse) GetNumUnavailableNodes() *wrappers.UInt32Value
func (*ServerStatusResponse) GetSeenFlows ¶
func (x *ServerStatusResponse) GetSeenFlows() uint64
func (*ServerStatusResponse) GetUnavailableNodes ¶
func (x *ServerStatusResponse) GetUnavailableNodes() []string
func (*ServerStatusResponse) GetUptimeNs ¶
func (x *ServerStatusResponse) GetUptimeNs() uint64
func (*ServerStatusResponse) MarshalJSON ¶
func (msg *ServerStatusResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServerStatusResponse) ProtoMessage ¶
func (*ServerStatusResponse) ProtoMessage()
func (*ServerStatusResponse) ProtoReflect ¶
func (x *ServerStatusResponse) ProtoReflect() protoreflect.Message
func (*ServerStatusResponse) Reset ¶
func (x *ServerStatusResponse) Reset()
func (*ServerStatusResponse) String ¶
func (x *ServerStatusResponse) String() string
func (*ServerStatusResponse) UnmarshalJSON ¶
func (msg *ServerStatusResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type TraceObservationPoint ¶
type TraceObservationPoint = flow.TraceObservationPoint
type TrafficDirection ¶
type TrafficDirection = flow.TrafficDirection
type UnimplementedObserverServer ¶
type UnimplementedObserverServer struct { }
UnimplementedObserverServer should be embedded to have forward compatible implementations.
func (*UnimplementedObserverServer) GetFlows ¶
func (*UnimplementedObserverServer) GetFlows(*GetFlowsRequest, Observer_GetFlowsServer) error
func (*UnimplementedObserverServer) ServerStatus ¶
func (*UnimplementedObserverServer) ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error)