Documentation ¶
Index ¶
- func Register(path string, cc shim.Chaincode) error
- type InprocVM
- func (vm *InprocVM) Deploy(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, ...) error
- func (vm *InprocVM) Destroy(ctxt context.Context, ccid ccintf.CCID, force bool, noprune bool) error
- func (vm *InprocVM) GetVMName(ccid ccintf.CCID, format func(string) (string, error)) (string, error)
- func (vm *InprocVM) Start(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, ...) error
- func (vm *InprocVM) Stop(ctxt context.Context, ccid ccintf.CCID, timeout uint, dontkill bool, ...) error
- type SysCCRegisteredErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InprocVM ¶
type InprocVM struct {
// contains filtered or unexported fields
}
InprocVM is a vm. It is identified by a executable name
func (*InprocVM) Deploy ¶
func (vm *InprocVM) Deploy(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, reader io.Reader) error
Deploy verifies chaincode is registered and creates an instance for it. Currently only one instance can be created
func (*InprocVM) Destroy ¶
Destroy destroys an image
func (*InprocVM) GetVMName ¶
func (vm *InprocVM) GetVMName(ccid ccintf.CCID, format func(string) (string, error)) (string, error)
GetVMName ignores the peer and network name as it just needs to be unique in process. It accepts a format function parameter to allow different formatting based on the desired use of the name.
type SysCCRegisteredErr ¶
type SysCCRegisteredErr string
SysCCRegisteredErr registered error
func (SysCCRegisteredErr) Error ¶
func (s SysCCRegisteredErr) Error() string
Click to show internal directories.
Click to hide internal directories.