Documentation
¶
Index ¶
- type DaemonEngine
- func (e *DaemonEngine) ASInfo(_ context.Context, ia addr.IA) (types.ASInfo, error)
- func (e *DaemonEngine) DRKeyGetASHostKey(ctx context.Context, meta drkey.ASHostMeta) (drkey.ASHostKey, error)
- func (e *DaemonEngine) DRKeyGetHostASKey(ctx context.Context, meta drkey.HostASMeta) (drkey.HostASKey, error)
- func (e *DaemonEngine) DRKeyGetHostHostKey(ctx context.Context, meta drkey.HostHostMeta) (drkey.HostHostKey, error)
- func (e *DaemonEngine) Interfaces(_ context.Context) (map[uint16]netip.AddrPort, error)
- func (e *DaemonEngine) LocalIA(_ context.Context) (addr.IA, error)
- func (e *DaemonEngine) NotifyInterfaceDown(ctx context.Context, ia addr.IA, ifID uint64) error
- func (e *DaemonEngine) Paths(ctx context.Context, dst, src addr.IA, flags types.PathReqFlags) ([]snet.Path, error)
- func (e *DaemonEngine) PortRange(_ context.Context) (uint16, uint16, error)
- func (e *DaemonEngine) SVCInfo(_ context.Context) ([]string, error)
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 ¶
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 ¶
Interfaces returns the map of interface identifiers to the underlay internal address.
func (*DaemonEngine) NotifyInterfaceDown ¶
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.
Click to show internal directories.
Click to hide internal directories.