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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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