inproccontroller

package
v1.2.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ContainerType = "SYSTEM"

ContainerType is the string which the inproc container type is registered with the container.VMController

Variables

This section is empty.

Functions

This section is empty.

Types

type InprocVM

type InprocVM struct {
	// contains filtered or unexported fields
}

InprocVM is a vm. It is identified by a executable name

func NewInprocVM added in v1.3.0

func NewInprocVM(r *Registry) *InprocVM

NewInprocVM creates a new InprocVM

func (*InprocVM) GetVMName

func (vm *InprocVM) GetVMName(ccid ccintf.CCID) string

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.Builder) 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 Registry added in v1.3.0

type Registry struct {
	// contains filtered or unexported fields
}

Registry stores registered system chaincodes. It implements container.VMProvider and scc.Registrar

func NewRegistry added in v1.3.0

func NewRegistry() *Registry

NewRegistry creates an initialized registry, ready to register system chaincodes.

func (*Registry) NewVM added in v1.3.0

func (r *Registry) NewVM() container.VM

NewVM creates an inproc VM instance

func (*Registry) Register added in v1.3.0

func (r *Registry) Register(ccid *ccintf.CCID, cc shim.Chaincode) error

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

type SendPanicFailure added in v1.1.1

type SendPanicFailure string

SendPanicFailure

func (SendPanicFailure) Error added in v1.1.1

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