github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/state/images.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package state 5 6 import ( 7 "github.com/juju/juju/state/imagestorage" 8 ) 9 10 var ( 11 imageStorageNewStorage = imagestorage.NewStorage 12 ) 13 14 // ImageStorage returns a new imagestorage.Storage 15 // that stores image metadata. 16 func (st *State) ImageStorage() imagestorage.Storage { 17 return imageStorageNewStorage(st.session, st.ModelUUID()) 18 }