helpers

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertImagesExist

func AssertImagesExist(imageNames ...string)

func CheckConfigContainsExpectedConfig

func CheckConfigContainsExpectedConfig(expectedConfig discovery.ConfigResult, actualConfig discovery.ConfigResult) bool

func CheckEndorsementContainsExpectedEndorsement

func CheckEndorsementContainsExpectedEndorsement(expectedEndorsement EndorsementDescriptor, actualEndorsement EndorsementDescriptor) bool

func CheckPeersContainsExpectedPeers

func CheckPeersContainsExpectedPeers(expectedPeers []DiscoveredPeer, actualPeers []DiscoveredPeer) bool

func Contains

func Contains(list []string, value string) bool

func CopyFile

func CopyFile(src, dest string)

func Execute

func Execute(r ifrit.Runner) (err error)

func StartSession

func StartSession(cmd *exec.Cmd, name, ansiColorCode string) (*gexec.Session, error)

func UniqueName

func UniqueName() string

Types

type DiscoveredPeer

type DiscoveredPeer struct {
	MSPID        string
	LedgerHeight uint64
	Endpoint     string
	Identity     string
	Chaincodes   []string
}

type EndorsementDescriptor

type EndorsementDescriptor struct {
	Chaincode         string
	EndorsersByGroups map[string][]DiscoveredPeer
	Layouts           []*discovery.Layout
}

Jump to

Keyboard shortcuts

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