github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/uniter/runner/jujuc/restricted_test.go (about) 1 // Copyright 2012-2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package jujuc_test 5 6 import ( 7 "github.com/juju/juju/worker/uniter/runner/jujuc" 8 ) 9 10 type restrictedContext struct { 11 *jujuc.RestrictedContext 12 } 13 14 // UnitName completes the jujuc.Context implementation, which the 15 // RestrictedContext leaves out. 16 func (*restrictedContext) UnitName() string { return "restricted" } 17 18 var _ jujuc.Context = (*restrictedContext)(nil)