v1

package
v1.14.0-snapshot.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 32

Documentation

Index

Constants

View Source
const (
	// ObserverServiceName is the name of the observer service for the grpc health check
	ObserverServiceName = "hubble.server.Observer"
)

Variables

This section is empty.

Functions

func FlowProtocol

func FlowProtocol(flow *pb.Flow) string

FlowProtocol returns the protocol best describing the flow. If available, this is the L7 protocol name, then the L4 protocol name.

Types

type EndpointInfo

type EndpointInfo interface {
	GetID() uint64
	GetIdentity() identity.NumericIdentity
	GetK8sPodName() string
	GetK8sNamespace() string
	GetLabels() []string
	GetPod() *slim_corev1.Pod
}

EndpointInfo defines readable fields of a Cilium endpoint.

type Event

type Event struct {
	// Timestamp when event was observed in Hubble
	Timestamp *timestamppb.Timestamp
	// Event contains the actual event
	Event interface{}
}

Event represents a single event observed and stored by Hubble

func (*Event) GetAgentEvent

func (ev *Event) GetAgentEvent() *pb.AgentEvent

GetAgentEvent returns the decoded agent event, or nil if the event is nil or not an agent event

func (*Event) GetDebugEvent

func (ev *Event) GetDebugEvent() *pb.DebugEvent

GetDebugEvent returns the decoded debug event, or nil if the event is nil or not an debug event

func (*Event) GetFlow

func (ev *Event) GetFlow() *pb.Flow

GetFlow returns the decoded flow, or nil if the event is nil or not a flow

func (*Event) GetLostEvent

func (ev *Event) GetLostEvent() *pb.LostEvent

GetLostEvent returns the decoded lost event, or nil if the event is nil or not a lost event

Jump to

Keyboard shortcuts

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