github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/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 "github.com/juju/juju/worker/uniter/runner/jujuc"
     7  
     8  type restrictedContext struct {
     9  	*jujuc.RestrictedContext
    10  }
    11  
    12  // UnitName completes the hooks.Context implementation, which the
    13  // RestrictedContext leaves out.
    14  func (*restrictedContext) UnitName() string { return "restricted" }
    15  
    16  var _ jujuc.Context = (*restrictedContext)(nil)