resourcesconfig

package
v1.1.0-preview Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PeerPoliciesGroupKey = "PeerPolicies"
	APIsGroupKey         = "APIs"
)
View Source
const RootGroupKey = "Resources"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

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

func New

func New(envConfig *cb.Envelope, mspManager msp.MSPManager, channelPolicyManager policies.Manager) (*Bundle, error)

New creates a new resources config bundle TODO, change interface to take config and not an envelope TODO, add an atomic BundleSource

func (*Bundle) APIPolicyMapper

func (b *Bundle) APIPolicyMapper() PolicyMapper

func (*Bundle) ConfigtxManager

func (b *Bundle) ConfigtxManager() configtxapi.Manager

func (*Bundle) PolicyManager

func (b *Bundle) PolicyManager() policies.Manager

func (*Bundle) RootGroupKey

func (b *Bundle) RootGroupKey() string

type PolicyMapper

type PolicyMapper interface {
	// PolicyRefForAPI takes the name of an API, and returns the policy name
	// or the empty string if the API is not found
	PolicyRefForAPI(apiName string) string
}

PolicyMapper is an interface for

Jump to

Keyboard shortcuts

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