fake

package
v0.0.0-...-dd062b7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Bandwidth int64 // returned on BandwidthAccounting

	CountCreate int
	CountDelete int
	CountInfo   int
	CountStart  int
	CountStop   int
	CountReboot int
	CountVnc    int
}

func (*Fake) BandwidthAccounting

func (this *Fake) BandwidthAccounting(vm *lobster.VirtualMachine) int64

func (*Fake) CanVnc

func (this *Fake) CanVnc() bool

func (*Fake) ImageDelete

func (this *Fake) ImageDelete(imageIdentification string) error

func (*Fake) ImageFetch

func (this *Fake) ImageFetch(url string, format string) (string, error)

func (*Fake) ImageInfo

func (this *Fake) ImageInfo(imageIdentification string) (*lobster.ImageInfo, error)

func (*Fake) ImageList

func (this *Fake) ImageList() ([]*lobster.Image, error)

func (*Fake) VmAction

func (this *Fake) VmAction(vm *lobster.VirtualMachine, action string, value string) error

func (*Fake) VmAddAddress

func (this *Fake) VmAddAddress(vm *lobster.VirtualMachine) error

func (*Fake) VmAddresses

func (this *Fake) VmAddresses(vm *lobster.VirtualMachine) ([]*lobster.IpAddress, error)

func (*Fake) VmCreate

func (this *Fake) VmCreate(vm *lobster.VirtualMachine, options *lobster.VMIVmCreateOptions) (string, error)

func (*Fake) VmDelete

func (this *Fake) VmDelete(vm *lobster.VirtualMachine) error

func (*Fake) VmInfo

func (this *Fake) VmInfo(vm *lobster.VirtualMachine) (*lobster.VmInfo, error)

func (*Fake) VmReboot

func (this *Fake) VmReboot(vm *lobster.VirtualMachine) error

func (*Fake) VmReimage

func (this *Fake) VmReimage(vm *lobster.VirtualMachine, imageIdentification string) error

func (*Fake) VmRemoveAddress

func (this *Fake) VmRemoveAddress(vm *lobster.VirtualMachine, ip string, privateip string) error

func (*Fake) VmRename

func (this *Fake) VmRename(vm *lobster.VirtualMachine, name string) error

func (*Fake) VmResize

func (this *Fake) VmResize(vm *lobster.VirtualMachine, plan *lobster.Plan) error

func (*Fake) VmSetRdns

func (this *Fake) VmSetRdns(vm *lobster.VirtualMachine, ip string, hostname string) error

func (*Fake) VmSnapshot

func (this *Fake) VmSnapshot(vm *lobster.VirtualMachine) (string, error)

func (*Fake) VmStart

func (this *Fake) VmStart(vm *lobster.VirtualMachine) error

func (*Fake) VmStop

func (this *Fake) VmStop(vm *lobster.VirtualMachine) error

func (*Fake) VmVnc

func (this *Fake) VmVnc(vm *lobster.VirtualMachine) (string, error)

Jump to

Keyboard shortcuts

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