externaltrafficholder

package
v0.0.0-...-dc3c0fb Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalTrafficCallbackFunc

type ExternalTrafficCallbackFunc func(context.Context, []TimestampedExternalTrafficIntent)

type ExternalTrafficIntent

type ExternalTrafficIntent struct {
	Client   model.OtterizeServiceIdentity `json:"client"`
	LastSeen time.Time
	DNSName  string
	IPs      map[IP]struct{}
}

type ExternalTrafficIntentsHolder

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

func NewExternalTrafficIntentsHolder

func NewExternalTrafficIntentsHolder() *ExternalTrafficIntentsHolder

func (*ExternalTrafficIntentsHolder) AddIntent

func (*ExternalTrafficIntentsHolder) GetNewIntentsSinceLastGet

func (h *ExternalTrafficIntentsHolder) GetNewIntentsSinceLastGet() []TimestampedExternalTrafficIntent

func (*ExternalTrafficIntentsHolder) PeriodicIntentsUpload

func (h *ExternalTrafficIntentsHolder) PeriodicIntentsUpload(ctx context.Context, interval time.Duration)

func (*ExternalTrafficIntentsHolder) RegisterNotifyIntents

func (h *ExternalTrafficIntentsHolder) RegisterNotifyIntents(callback ExternalTrafficCallbackFunc)

type ExternalTrafficKey

type ExternalTrafficKey struct {
	ClientName      string
	ClientNamespace string
	DestDNSName     string
}

type IP

type IP string

type TimestampedExternalTrafficIntent

type TimestampedExternalTrafficIntent struct {
	Timestamp time.Time
	Intent    ExternalTrafficIntent
}

Jump to

Keyboard shortcuts

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