add

package
v3.0.0-...-c77a060 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = make([]cli.Command, 0)

Commands is a slice which is populated during init() with all the available top-level commands

Functions

This section is empty.

Types

type CreatedVirtualMachine

type CreatedVirtualMachine struct {
	Spec           brain.VirtualMachineSpec `json:"spec"`
	VirtualMachine brain.VirtualMachine     `json:"virtual_machine"`
}

CreatedVirtualMachine is a struct containing the vm object returned by the VM after creation, and the spec that went into creating it. TODO(telyn): move this type into lib/brain?

func (CreatedVirtualMachine) DefaultFields

func (cvm CreatedVirtualMachine) DefaultFields(f output.Format) string

DefaultFields returns the list of default fields to feed to github.com/BytemarkHosting/row.From for this type.

func (CreatedVirtualMachine) PrettyPrint

func (cvm CreatedVirtualMachine) PrettyPrint(wr io.Writer, detail prettyprint.DetailLevel) (err error)

PrettyPrint outputs this created virtual machine in a vaguely nice format to the given writer. detail is ignored.

Jump to

Keyboard shortcuts

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