flowtest

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeerAuthorizer

func NewPeerAuthorizer(names []string) flow.PeerAuthorizer

func Pipe

func Pipe(t *testing.T, ctx *context.T, network, address string) (dialed, accepted flow.Conn)

Pipe returns a connection pair dialed on against a listener using the given network and address.

Types

type AllowAllPeersAuthorizer

type AllowAllPeersAuthorizer struct{}

func (AllowAllPeersAuthorizer) AuthorizePeer

func (AllowAllPeersAuthorizer) AuthorizePeer(
	ctx *context.T,
	localEndpoint, remoteEndpoint naming.Endpoint,
	remoteBlessings security.Blessings,
	remoteDischarges map[string]security.Discharge,
) ([]string, []security.RejectedBlessing, error)

func (AllowAllPeersAuthorizer) BlessingsForPeer

Jump to

Keyboard shortcuts

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