Files: 9a07e7438dc7dd2ef37c0a2d53a29fbad20ced9a / docs / hypervisor.md
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
The Hypervisor manages the container instances by instantiating them and destorying them when possible. It also facilitates localating Containers
Parameters
dag
Graph an instance of ipfs.dagstate
object the starting state (optional, default{'/':Tree.emptyTreeState}
)
addNodeToCheck
add a potaintail node in the state graph to check for garbage collection
Parameters
id
string
getDestPort
given a port, this finds the corridsponeding endpoint port of the channel
Parameters
port
object
Returns Promise
getInstance
gets an existsing container instances
Parameters
id
string the containers ID
Returns Promise
createInstance
creates an new container instances and save it in the state
Parameters
type
string the type of container to createmessage
(optional, defaultnew Message()
)id
object (optional, default{nonce:0,parent:null}
)code
anyentryPorts
array
Returns Promise
createStateRoot
creates a state root starting from a given container and a given number of ticks
Parameters
ticks
Number the number of ticks at which to create the state root
Returns Promise
registerContainer
regirsters a container with the hypervisor
Parameters
Constructor
Class a Class for instantiating the containerargs
any any args that the contructor takestypeId
interger the container's type identification ID (optional, defaultConstructor.typeId
)
Built with git-ssb-web