v1

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 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 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
}

EndpointInfo defines readable fields of a Cilium endpoint.

type Event

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

Event represents a single event observed and stored by Hubble

func (*Event) GetFlow

func (ev *Event) GetFlow() Flow

GetFlow returns the decoded flow, or nil if there is no event

type Flow added in v1.8.0

type Flow interface {
	proto.Message
	GetTime() *timestamp.Timestamp
	GetVerdict() flowpb.Verdict
	GetDropReason() uint32
	GetEthernet() *flowpb.Ethernet
	GetIP() *flowpb.IP
	GetL4() *flowpb.Layer4
	GetSource() *flowpb.Endpoint
	GetDestination() *flowpb.Endpoint
	GetType() flowpb.FlowType
	GetNodeName() string
	GetSourceNames() []string
	GetDestinationNames() []string
	GetL7() *flowpb.Layer7
	GetReply() bool
	GetEventType() *flowpb.CiliumEventType
	GetSourceService() *flowpb.Service
	GetDestinationService() *flowpb.Service
	GetTrafficDirection() flowpb.TrafficDirection
	GetPolicyMatchType() uint32
	GetSummary() string
}

Flow is an interface matching pb.Flow

Jump to

Keyboard shortcuts

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