hypervisor

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hypervisor

type Hypervisor interface {
	Init(ctx context.Context, config []byte) error
	Shutdown(ctx context.Context) error

	Create(ctx context.Context, name string) (VirtualMachine, error)
	Delete(ctx context.Context, id string) error
	List(ctx context.Context) ([]VirtualMachine, error)
}

type VirtualMachine

type VirtualMachine interface {
	GetId() string
	GetName() string
	GetAddr() string
}

type VirtualMachineInfo

type VirtualMachineInfo struct {
	Id   string
	Name string
	Addr string
}

func (VirtualMachineInfo) GetAddr

func (vmi VirtualMachineInfo) GetAddr() string

func (VirtualMachineInfo) GetId

func (vmi VirtualMachineInfo) GetId() string

func (VirtualMachineInfo) GetName

func (vmi VirtualMachineInfo) GetName() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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