registration

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrNoSegments   common.ErrMsg = "no segments"
	ErrMissingExtn  common.ErrMsg = "missing HiddenPathSeg extension"
	ErrWrongSegType common.ErrMsg = "segment must be an up- or down-segment"
	ErrUnknownGroup common.ErrMsg = "group not known to HPS"
	ErrNotRegistry  common.ErrMsg = "HPS is not a Registry of this group"
	ErrNotWriter    common.ErrMsg = "peer is not a writer of this group"
	ErrNotReader    common.ErrMsg = "peer is not a reader of this group"
)

Variables

This section is empty.

Functions

func NewSegRegHandler

func NewSegRegHandler(validator Validator, segHandler seghandler.Handler) infra.Handler

NewSegRegHandler returns a hidden path segment registration handler

Types

type DefaultValidator

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

DefaultValidator validates hidden path registrations based on hidden path group configurations

func NewDefaultValidator

func NewDefaultValidator(localIA addr.IA,
	groups map[hiddenpath.GroupId]*hiddenpath.Group) *DefaultValidator

NewDefaultValidator creates a new DefaultValidator

func (*DefaultValidator) Validate

func (v *DefaultValidator) Validate(hpSegReg *path_mgmt.HPSegReg, peer addr.IA) error

Validate validates a hpSegReg with regard to the provided HP Group

type Validator

type Validator interface {
	Validate(*path_mgmt.HPSegReg, addr.IA) error
}

Validator is used to validate hidden path segments

Directories

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

Jump to

Keyboard shortcuts

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