inproccontroller

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(path string, cc shim.Chaincode) error

Register registers system chaincode with given path. The deploy should be called to initialize

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

func (vm *InprocVM) Destroy(ctxt context.Context, ccid ccintf.CCID, force bool, noprune bool) error

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.

func (*InprocVM) Start

func (vm *InprocVM) Start(ctxt context.Context, ccid ccintf.CCID, args []string, env []string, filesToUpload map[string][]byte, builder container.BuildSpecFactory, prelaunchFunc container.PrelaunchFunc) error

Start starts a previously registered system codechain

func (*InprocVM) Stop

func (vm *InprocVM) Stop(ctxt context.Context, ccid ccintf.CCID, timeout uint, dontkill bool, dontremove bool) error

Stop stops a system codechain

type SendPanicFailure added in v1.1.0

type SendPanicFailure string

SendPanicFailure

func (SendPanicFailure) Error added in v1.1.0

func (e SendPanicFailure) Error() string

type SysCCRegisteredErr

type SysCCRegisteredErr string

SysCCRegisteredErr registered error

func (SysCCRegisteredErr) Error

func (s SysCCRegisteredErr) Error() string

Jump to

Keyboard shortcuts

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