policies

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 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 *Policy

	//返回的policymap用于查找
	PolicyMap map[string]policies.Policy

	//
	SubManagersMap map[string]*Manager
}

func (*Manager) GetPolicy

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

getpolicy返回manager.policy的值以及它是否为nil

func (*Manager) Manager

func (m *Manager) Manager(path []string) (policies.Manager, bool)

type Policy

type Policy struct {
	//err是由evaluate返回的错误
	Err error
}

策略是策略的模拟实现。策略接口

func (*Policy) Evaluate

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

Jump to

Keyboard shortcuts

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