github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/pkg/state/state.go (about)

     1  package state
     2  
     3  import (
     4  	"github.com/solo-io/unik/pkg/types"
     5  )
     6  
     7  type State interface {
     8  	GetImages() map[string]*types.Image
     9  	GetInstances() map[string]*types.Instance
    10  	GetVolumes() map[string]*types.Volume
    11  	ModifyImages(modify func(images map[string]*types.Image) error) error
    12  	ModifyInstances(modify func(instances map[string]*types.Instance) error) error
    13  	ModifyVolumes(modify func(volumes map[string]*types.Volume) error) error
    14  	RemoveImage(image *types.Image) error
    15  	RemoveInstance(instance *types.Instance) error
    16  	RemoveVolume(volume *types.Volume) error
    17  }