github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/resource/context/cmd/cmd.go (about) 1 // Copyright 2016 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package cmd 5 6 // HookContext exposes the functionality needed by the "resource-*" 7 // hook commands. 8 type HookContext interface { 9 // Download downloads the named resource and returns 10 // the path to which it was downloaded. 11 Download(name string) (filePath string, _ error) 12 }