Help us shape the future of Go! Take the 2026 Go Developer Survey

parser

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder added in v1.16.0

type Decoder interface {
	// Decode transforms a monitor event into a hubble event.
	Decode(monitorEvent *observerTypes.MonitorEvent) (*v1.Event, error)
}

Decoder is an interface for the parser. It decodes a monitor event into a hubble event.

type Parser

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

Parser for all flows

func New

func New(
	log *slog.Logger,
	endpointGetter getters.EndpointGetter,
	identityGetter getters.IdentityGetter,
	dnsGetter getters.DNSGetter,
	ipGetter getters.IPGetter,
	serviceGetter getters.ServiceGetter,
	linkGetter getters.LinkGetter,
	cgroupGetter getters.PodMetadataGetter,
	opts ...options.Option,
) (*Parser, error)

New creates a new parser

func (*Parser) Decode

func (p *Parser) Decode(monitorEvent *observerTypes.MonitorEvent) (*v1.Event, error)

Decode decodes a cilium monitor 'payload' and returns a v1.Event with the Event field populated.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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