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

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package common_test
     5  
     6  import (
     7  	"github.com/juju/juju/state"
     8  	"github.com/juju/names"
     9  )
    10  
    11  type fakeStorageInstance struct {
    12  	state.StorageInstance
    13  	tag   names.StorageTag
    14  	owner names.Tag
    15  }
    16  
    17  func (i *fakeStorageInstance) Tag() names.Tag {
    18  	return i.tag
    19  }
    20  
    21  func (i *fakeStorageInstance) Owner() names.Tag {
    22  	return i.owner
    23  }