engine

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonEngine

type DaemonEngine struct {
	IA          addr.IA
	MTU         uint16
	LocalASInfo asinfo.LocalASInfo
	Fetcher     fetcher.Fetcher
	RevCache    revcache.RevCache
	ASInspector trust.Inspector
	DRKeyClient *drkey_daemon.ClientEngine
	// contains filtered or unexported fields
}

DaemonEngine contains the core daemon logic, independent of the transport layer. It can be used directly by in-process clients or wrapped by the gRPC server.

func (*DaemonEngine) ASInfo

func (e *DaemonEngine) ASInfo(_ context.Context, ia addr.IA) (types.ASInfo, error)

ASInfo requests information about an AS. The zero IA returns local AS info.

func (*DaemonEngine) DRKeyGetASHostKey

func (e *DaemonEngine) DRKeyGetASHostKey(
	ctx context.Context,
	meta drkey.ASHostMeta,
) (drkey.ASHostKey, error)

DRKeyGetASHostKey requests an AS-Host Key.

func (*DaemonEngine) DRKeyGetHostASKey

func (e *DaemonEngine) DRKeyGetHostASKey(
	ctx context.Context,
	meta drkey.HostASMeta,
) (drkey.HostASKey, error)

DRKeyGetHostASKey requests a Host-AS Key.

func (*DaemonEngine) DRKeyGetHostHostKey

func (e *DaemonEngine) DRKeyGetHostHostKey(
	ctx context.Context,
	meta drkey.HostHostMeta,
) (drkey.HostHostKey, error)

DRKeyGetHostHostKey requests a Host-Host Key.

func (*DaemonEngine) Interfaces

func (e *DaemonEngine) Interfaces(_ context.Context) (map[uint16]netip.AddrPort, error)

Interfaces returns the map of interface identifiers to the underlay internal address.

func (*DaemonEngine) LocalIA

func (e *DaemonEngine) LocalIA(_ context.Context) (addr.IA, error)

LocalIA returns the local ISD-AS number.

func (*DaemonEngine) NotifyInterfaceDown

func (e *DaemonEngine) NotifyInterfaceDown(ctx context.Context, ia addr.IA, ifID uint64) error

NotifyInterfaceDown notifies about an interface that is down.

func (*DaemonEngine) Paths

func (e *DaemonEngine) Paths(
	ctx context.Context,
	dst, src addr.IA,
	flags types.PathReqFlags,
) ([]snet.Path, error)

Paths requests a set of end to end paths between the source and destination.

func (*DaemonEngine) PortRange

func (e *DaemonEngine) PortRange(_ context.Context) (uint16, uint16, error)

PortRange returns the dispatched port range.

func (*DaemonEngine) SVCInfo

func (e *DaemonEngine) SVCInfo(_ context.Context) ([]string, error)

SVCInfo requests information about addresses and ports of infrastructure services.

Jump to

Keyboard shortcuts

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