vm

package
v0.0.0-...-bda353b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VmTypeDockerGO = "DOCKERGO"
	VmTypeGo       = "GO"
)

Variables

View Source
var RunTimeTypeToVmType = map[common.RuntimeType]string{
	common.RuntimeType_DOCKER_GO: "DOCKERGO",
	common.RuntimeType_GO:        "GO",
}
View Source
var VmTypeToRunTimeType = map[string]common.RuntimeType{
	"DOCKERGO": common.RuntimeType_DOCKER_GO,
	"GO":       common.RuntimeType_GO,
}

Functions

func RegisterVmProvider

func RegisterVmProvider(t string, f Provider)

Types

type Provider

type Provider func(chainId string, config map[string]interface{}) (protocol.VmInstancesManager, error)

func GetVmProvider

func GetVmProvider(t string) Provider

Jump to

Keyboard shortcuts

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