service

package
v0.0.0-...-e913552 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeService

type NodeService struct {
	Machines map[string]*firecracker.Machine
	// contains filtered or unexported fields
}

func NewNodeService

func NewNodeService(log *logrus.Logger, machines map[string]*firecracker.Machine) *NodeService

func (*NodeService) ConnectVolume

func (ns *NodeService) ConnectVolume(ctx context.Context, vol *node.Volume) (*node.ConnectResponse, error)

func (*NodeService) CreateDrive

func (ns *NodeService) CreateDrive(ctx context.Context, img *node.ImageName) (*node.DriveResponse, error)

func (*NodeService) ListVMs

func (ns *NodeService) ListVMs(context.Context, *empty.Empty) (*node.VmList, error)

func (*NodeService) StartVM

func (ns *NodeService) StartVM(ctx context.Context, cfg *node.VmConfig) (*node.VmResponse, error)

StartVM starts a firecracker VM with the provided configuration

func (*NodeService) StopVM

func (ns *NodeService) StopVM(ctx context.Context, uuid *node.UUID) (*node.Response, error)

Jump to

Keyboard shortcuts

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