github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/imagemanager/state.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package imagemanager
     5  
     6  import (
     7  	names "gopkg.in/juju/names.v2"
     8  
     9  	"github.com/juju/juju/state"
    10  	"github.com/juju/juju/state/imagestorage"
    11  )
    12  
    13  type stateInterface interface {
    14  	ImageStorage() imagestorage.Storage
    15  	ControllerTag() names.ControllerTag
    16  }
    17  
    18  type stateShim struct {
    19  	*state.State
    20  }
    21  
    22  func (s stateShim) ImageStorage() imagestorage.Storage {
    23  	return s.State.ImageStorage()
    24  }