revcache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 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 Key

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

Key denotes the key for the revocation cache.

func NewKey

func NewKey(ia addr.IA, ifid common.IFIDType) *Key

NewKey creates a new key for the revocation cache.

func (Key) String

func (k Key) String() string

type RevCache

type RevCache interface {
	// Get item with key k from the cache. Returns the item or nil,
	// and a bool indicating whether the key was found.
	Get(k *Key) (*path_mgmt.SignedRevInfo, bool)
	// Set sets maps the key k to the revocation rev.
	// The revocation should only be returned for the given ttl.
	// If an item with key k exists, it must be updated
	// if now + ttl is at a later point in time than the current expiry.
	// Returns whether an update was performed or not.
	Set(k *Key, rev *path_mgmt.SignedRevInfo, ttl time.Duration) bool
}

RevCache is a cache for revocations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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