package
0.0.0-20210916100932-d192fcfaa9da
Repository: https://github.com/liubaninc/m0.git
Documentation: pkg.go.dev
# Functions
FromPbLimits converts []*pb.ResourceLimit to Limits.
NewVMManager new an instance of VMManager.
No description provided by the author
FromPbLimits converts Limits to []*pb.ResourceLimit.
# Constants
StatusError is used when contract fails.
StatusErrorThreshold is the status dividing line for the normal operation of the contract.
StatusOK is used when contract successfully ends.
# Variables
ErrVMNotExist is returned when found vm not exist.
MaxLimits describes the maximum limit of resources.
# Structs
ContextConfig define the config of context.
Limits describes the usage or limit of resources.
Response is the result of the contract run.
VMManager define VMManager type.
# Interfaces
Context define context interface.
VirtualMachine define virtual machine interface.