github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/agent/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 (
     7  	"github.com/juju/juju/apiserver/common"
     8  	"github.com/juju/juju/apiserver/facade"
     9  	"github.com/juju/juju/apiserver/facades/agent/meterstatus"
    10  )
    11  
    12  var (
    13  	GetZone                = &getZone
    14  	WatchStorageAttachment = watchStorageAttachment
    15  
    16  	_ meterstatus.MeterStatus = (*UniterAPI)(nil)
    17  )
    18  
    19  type (
    20  	Backend                    backend
    21  	StorageStateInterface      storageInterface
    22  	StorageVolumeInterface     = storageVolumeInterface
    23  	StorageFilesystemInterface = storageFilesystemInterface
    24  )
    25  
    26  func NewStorageAPI(
    27  	backend backend,
    28  	storage storageAccess,
    29  	resources facade.Resources,
    30  	accessUnit common.GetAuthFunc,
    31  ) (*StorageAPI, error) {
    32  	return newStorageAPI(backend, storage, resources, accessUnit)
    33  }