Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DRKey ¶
type DRKey []byte
DRKey represents a raw binary key
type DelegationSecret ¶
DelegationSecret is similar to a level 2 key, type AS to AS.
type Epoch ¶
Epoch represents a validity period.
type Lvl1DB ¶
type Lvl1DB interface { BaseDB GetLvl1Key(ctx context.Context, key Lvl1Meta, valTime uint32) (Lvl1Key, error) InsertLvl1Key(ctx context.Context, key Lvl1Key) error RemoveOutdatedLvl1Keys(ctx context.Context, cutoff uint32) (int64, error) GetLvl1SrcASes(ctx context.Context) ([]addr.IA, error) GetValidLvl1SrcASes(ctx context.Context, valTime uint32) ([]addr.IA, error) }
Lvl1DB is the drkey database interface for level 1.
type Lvl1Meta ¶
Lvl1Meta represents the information about a level 1 DRKey other than the key itself.
type Lvl2DB ¶
type Lvl2DB interface { BaseDB GetLvl2Key(ctx context.Context, key Lvl2Meta, valTime uint32) (Lvl2Key, error) InsertLvl2Key(ctx context.Context, key Lvl2Key) error RemoveOutdatedLvl2Keys(ctx context.Context, cutoff uint32) (int64, error) }
Lvl2DB is the drkey database interface for level 2.
type Lvl2KeyType ¶
type Lvl2KeyType uint8
Lvl2KeyType represents the different types of level 2 DRKeys (AS->AS, AS->host, host->host).
const ( AS2AS Lvl2KeyType = iota AS2Host Host2Host )
Lvl2KeyType constants
type Lvl2Meta ¶
type Lvl2Meta struct { KeyType Lvl2KeyType Protocol string Epoch Epoch SrcIA addr.IA DstIA addr.IA SrcHost addr.HostAddr DstHost addr.HostAddr }
Lvl2Meta represents the information about a level 2 DRKey, without the key itself.
Click to show internal directories.
Click to hide internal directories.