github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/uniter/storage/context.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package storage 5 6 import ( 7 "gopkg.in/juju/names.v2" 8 9 "github.com/juju/juju/storage" 10 ) 11 12 // contextStorage is an implementation of jujuc.ContextStorageAttachment. 13 type contextStorage struct { 14 tag names.StorageTag 15 kind storage.StorageKind 16 location string 17 } 18 19 func (ctx *contextStorage) Tag() names.StorageTag { 20 return ctx.tag 21 } 22 23 func (ctx *contextStorage) Kind() storage.StorageKind { 24 return ctx.kind 25 } 26 27 func (ctx *contextStorage) Location() string { 28 return ctx.location 29 }