github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/apiserver/storage/state.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package storage
     5  
     6  import "github.com/juju/juju/state"
     7  
     8  type storageAccess interface {
     9  	StorageInstance(id string) (state.StorageInstance, error)
    10  }
    11  
    12  type stateShim struct {
    13  	state *state.State
    14  }
    15  
    16  // StorageInstance calls state to get information about storage instance
    17  func (s stateShim) StorageInstance(id string) (state.StorageInstance, error) {
    18  	return s.state.StorageInstance(id)
    19  }