statebased

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RoleTypeMember = RoleType("MEMBER")

	RoleTypePeer = RoleType("PEER")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyEndorsementPolicy

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

	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