getters

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSGetter

type DNSGetter interface {
	// GetNamesOf fetches FQDNs of a given IP from the perspective of
	// the endpoint with ID sourceEpID
	GetNamesOf(sourceEpID uint64, ip net.IP) (names []string)
}

DNSGetter ...

type EndpointGetter

type EndpointGetter interface {
	// GetEndpointInfo looks up endpoint by IP address.
	GetEndpointInfo(ip net.IP) (endpoint v1.EndpointInfo, ok bool)
}

EndpointGetter ...

type IPGetter

type IPGetter interface {
	// GetIPIdentity fetches information known about a remote IP.
	GetIPIdentity(ip net.IP) (identity ipcache.IPIdentity, ok bool)
}

IPGetter fetches per-IP metadata

type IdentityGetter

type IdentityGetter interface {
	// GetIdentity fetches a full identity object given a numeric security id.
	GetIdentity(id uint64) (*models.Identity, error)
}

IdentityGetter ...

type ServiceGetter

type ServiceGetter interface {
	GetServiceByAddr(ip net.IP, port uint16) (service pb.Service, ok bool)
}

ServiceGetter fetches service metadata.

Jump to

Keyboard shortcuts

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