ignite

package
v0.0.0-...-df593d5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendName = "ignite"
)

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion()

func Create

func Create(name string, spec *config.Machine, pubKeyPath string) (id string, err error)

Create creates an Ignite VM using "ignite run", it doesn't return a container ID

func IsCreated

func IsCreated(name string) bool

IsCreated checks if the VM with the given name is created

func IsStarted

func IsStarted(name string) bool

IsStarted checks if the VM with the given name is running

func Remove

func Remove(name string) error

Remove removes an Ignite VM

func Start

func Start(name string) error

Start starts an Ignite VM

func Stop

func Stop(name string) error

Stop stops an Ignite VM

Types

type Metadata

type Metadata struct {
	Name    string
	UID     string
	Created string
}

type Network

type Network struct {
	Ports []Port
}

type Port

type Port struct {
	HostPort uint16
	VMPort   uint16
	Protocol string
}

type Spec

type Spec struct {
	Network  Network
	Cpus     uint
	Memory   string
	DiskSize string
}

type Status

type Status struct {
	Running     bool
	StartTime   string
	IpAddresses []string
}

type VM

type VM struct {
	Metadata Metadata
	Spec     Spec
	Status   Status
}

func PopulateMachineDetails

func PopulateMachineDetails(name string) (*VM, error)

PopulateMachineDetails returns the details of the VM identified by the given name

Jump to

Keyboard shortcuts

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