state

package
v0.0.0-...-727be20 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicStateFromFile

func BasicStateFromFile(saveFile string) (*basicState, error)

func NewBasicState

func NewBasicState(saveFile string) *basicState

Types

type State

type State interface {
	GetImages() map[string]*types.Image
	GetInstances() map[string]*types.Instance
	GetVolumes() map[string]*types.Volume
	ModifyImages(modify func(images map[string]*types.Image) error) error
	ModifyInstances(modify func(instances map[string]*types.Instance) error) error
	ModifyVolumes(modify func(volumes map[string]*types.Volume) error) error
	RemoveImage(image *types.Image) error
	RemoveInstance(instance *types.Instance) error
	RemoveVolume(volume *types.Volume) error
}

Jump to

Keyboard shortcuts

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