path_mgmt

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MinRevTTL = 10 * time.Second // MinRevTTL is the minimum lifetime of a revocation

Variables

This section is empty.

Functions

This section is empty.

Types

type RevInfo

type RevInfo struct {
	IfID     common.IFIDType
	RawIsdas addr.IA
	// LinkType of revocation
	LinkType proto.LinkType
	// RawTimestamp the issuing timestamp in seconds.
	RawTimestamp uint32
	// RawTTL validity period of the revocation in seconds
	RawTTL uint32
}

func (*RevInfo) Active

func (r *RevInfo) Active() error

func (*RevInfo) Equal

func (r *RevInfo) Equal(other *RevInfo) bool

func (*RevInfo) Expiration

func (r *RevInfo) Expiration() time.Time

func (*RevInfo) IA

func (r *RevInfo) IA() addr.IA

func (*RevInfo) RelativeTTL

func (r *RevInfo) RelativeTTL(reference time.Time) time.Duration

RelativeTTL returns the duration r is still valid for, relative to reference. If the revocation is already expired, the returned value is 0.

func (*RevInfo) SameIntf

func (r *RevInfo) SameIntf(other *RevInfo) bool

SameIntf returns true if r and other both apply to the same interface.

func (*RevInfo) String

func (r *RevInfo) String() string

func (*RevInfo) TTL

func (r *RevInfo) TTL() time.Duration

func (*RevInfo) Timestamp

func (r *RevInfo) Timestamp() time.Time

Timestamp returns the issuing time stamp of the revocation.

type RevTimeError

type RevTimeError string

func NewRevTimeError

func NewRevTimeError(r *RevInfo) RevTimeError

func (RevTimeError) Error

func (ee RevTimeError) Error() string

func (RevTimeError) Timeout

func (ee RevTimeError) Timeout() bool

Directories

Path Synopsis
Package proto used to contain mostly auto-generated code for parsing/packing SCION capnproto protocol structs.
Package proto used to contain mostly auto-generated code for parsing/packing SCION capnproto protocol structs.

Jump to

Keyboard shortcuts

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