dnsmanager

package
v0.2.209 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSManager

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

DNSManager is used to manage DNS events and save IP resolutions.

func CreateDNSManager

func CreateDNSManager() *DNSManager

func (*DNSManager) ContainerCallback added in v0.2.197

func (dm *DNSManager) ContainerCallback(notif containercollection.PubSubEvent)

func (*DNSManager) ReportEvent added in v0.2.197

func (dm *DNSManager) ReportEvent(dnsEvent tracerdnstype.Event)

func (*DNSManager) ResolveContainerProcessToCloudServices added in v0.2.203

func (dm *DNSManager) ResolveContainerProcessToCloudServices(containerId string, pid uint32) mapset.Set[string]

func (*DNSManager) ResolveIPAddress

func (dm *DNSManager) ResolveIPAddress(ipAddr string) (string, bool)

type DNSManagerClient

type DNSManagerClient interface {
	ReportEvent(networkEvent tracerdnstype.Event)
	ContainerCallback(notif containercollection.PubSubEvent)
}

type DNSManagerMock

type DNSManagerMock struct {
}

func CreateDNSManagerMock

func CreateDNSManagerMock() *DNSManagerMock

func (*DNSManagerMock) ContainerCallback added in v0.2.197

func (n *DNSManagerMock) ContainerCallback(notif containercollection.PubSubEvent)

func (*DNSManagerMock) ReportEvent added in v0.2.197

func (n *DNSManagerMock) ReportEvent(_ tracerdnstype.Event)

func (*DNSManagerMock) ResolveContainerProcessToCloudServices added in v0.2.203

func (n *DNSManagerMock) ResolveContainerProcessToCloudServices(_ string, _ uint32) mapset.Set[string]

func (*DNSManagerMock) ResolveIPAddress

func (n *DNSManagerMock) ResolveIPAddress(_ string) (string, bool)

type DNSResolver

type DNSResolver interface {
	ResolveIPAddress(ipAddr string) (string, bool)
	ResolveContainerProcessToCloudServices(containerId string, pid uint32) mapset.Set[string]
}

Jump to

Keyboard shortcuts

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