statebased

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//roletypember标识组织的成员标识
	RoleTypeMember = RoleType("MEMBER")
	//roletypeer标识组织的对等身份
	RoleTypePeer = RoleType("PEER")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyEndorsementPolicy

type KeyEndorsementPolicy interface {
	//
	Policy() ([]byte, error)

	//
	//
	//在第一个参数中指定。在其他方面,期望的角色
	//取决于通道的配置:如果它支持节点OU,则为
	//
	//如果不是的话。
	AddOrgs(roleType RoleType, organizations ...string) error

	//
	//
	DelOrgs(organizations ...string)

	//
	ListOrgs() []string
}

func NewStateEP

func NewStateEP(policy []byte) (KeyEndorsementPolicy, error)

type RoleType

type RoleType string

背书政策标识的角色类型

type RoleTypeDoesNotExistError

type RoleTypeDoesNotExistError struct {
	RoleType RoleType
}

func (*RoleTypeDoesNotExistError) Error

func (r *RoleTypeDoesNotExistError) Error() string

Jump to

Keyboard shortcuts

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