mocks

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockStub

func NewMockStub(channelID string) *mockstub.MockStub

NewMockStub creates a mock configuration snap stub

func SaveConfig

func SaveConfig(stub *mockstub.MockStub, mspID, peerID, appName, ver string, configData []byte) error

SaveConfig saves the config data to the configuration snap using the given stub and caches the data in the configuration service

func SaveConfigFromFile

func SaveConfigFromFile(stub *mockstub.MockStub, mspID, peerID, appName, ver, configFile string) error

SaveConfigFromFile reads the config data from the given file and saves it to the configuration snap using the given stub and caches the data in the configuration service

Types

This section is empty.

Jump to

Keyboard shortcuts

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