github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/machineactions/shim.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Copyright 2016 Cloudbase Solutions SRL
     3  // Licensed under the AGPLv3, see LICENCE file for details.
     4  
     5  package machineactions
     6  
     7  import (
     8  	"github.com/juju/juju/api/base"
     9  	"github.com/juju/juju/api/machineactions"
    10  )
    11  
    12  // NewFacade creates a Facade from a base.APICaller.
    13  // It's a sensible value for ManifoldConfig.NewFacade.
    14  func NewFacade(apiCaller base.APICaller) Facade {
    15  	return machineactions.NewClient(apiCaller)
    16  }