v.io: v.io/x/ref/runtime/internal/flow/flowtest Index | Files

package flowtest

import "v.io/x/ref/runtime/internal/flow/flowtest"

Index

Package Files

flowtest.go

func NewPeerAuthorizer Uses

func NewPeerAuthorizer(names []string) flow.PeerAuthorizer

func Pipe Uses

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.

type AllowAllPeersAuthorizer Uses

type AllowAllPeersAuthorizer struct{}

func (AllowAllPeersAuthorizer) AuthorizePeer Uses

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 Uses

func (AllowAllPeersAuthorizer) BlessingsForPeer(ctx *context.T, _ []string) (security.Blessings, map[string]security.Discharge, error)

Package flowtest imports 8 packages (graph). Updated 2020-10-13. Refresh now. Tools for package owners.