fetcher

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package fetcher implements path segment fetching, verification and combination logic for SCIOND.

Index

Constants

View Source
const (
	DefaultMinWorkerLifetime = 10 * time.Second
)

Variables

This section is empty.

Functions

func Filter added in v0.4.0

func Filter(paths []*combinator.Path, policy Policy) []*combinator.Path

Filter filters the given paths with the given policy. Note that this function might change the order of elements.

Types

type Fetcher

type Fetcher interface {
	GetPaths(ctx context.Context, req *sciond.PathReq,
		earlyReplyInterval time.Duration) (*sciond.PathReply, error)
}

func NewFetcher

func NewFetcher(requestAPI segfetcher.RequestAPI, pathDB pathdb.PathDB, inspector infra.ASInspector,
	verificationFactory infra.VerificationFactory, revCache revcache.RevCache, cfg config.SDConfig,
	topoProvider topology.Provider) Fetcher

type Policy added in v0.4.0

type Policy interface {
	Filter(pathpol.PathSet) pathpol.PathSet
}

Policy is a filter on path sets.

type TrustStore added in v0.4.0

type TrustStore interface {
	infra.VerificationFactory
	infra.ASInspector
}

Directories

Path Synopsis
Package mock_fetcher is a generated GoMock package.
Package mock_fetcher is a generated GoMock package.

Jump to

Keyboard shortcuts

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