github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/apiserver/uniter/export_test.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package uniter
     5  
     6  import "github.com/juju/juju/apiserver/common"
     7  
     8  var (
     9  	GetZone = &getZone
    10  )
    11  
    12  type StorageStateInterface storageStateInterface
    13  
    14  func NewStorageAPI(
    15  	st StorageStateInterface,
    16  	resources *common.Resources,
    17  	accessUnit common.GetAuthFunc,
    18  ) (*StorageAPI, error) {
    19  	return newStorageAPI(storageStateInterface(st), resources, accessUnit)
    20  }