policies

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// Policy is returned as the output to GetPolicy
	Policy *Policy
}

Manager is a mock implementation of the policies.Manager interface

func (*Manager) GetPolicy

func (m *Manager) GetPolicy(id string) (policies.Policy, bool)

GetPolicy returns the value of Manager.Policy and whether it was nil or not

type Policy

type Policy struct {
	Err error
}

Policy is a mock implementation of the policies.Policy interface

func (*Policy) Evaluate

func (p *Policy) Evaluate(signatureSet []*cb.SignedData) error

Evaluate returns the Err set in Policy

Jump to

Keyboard shortcuts

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