github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/cmd/juju/machine/export_test.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package machine
     5  
     6  import "github.com/juju/juju/storage"
     7  
     8  var (
     9  	ManualProvisioner = &manualProvisioner
    10  )
    11  
    12  // NewAddCommand returns an AddCommand with the api provided as specified.
    13  func NewAddCommand(api AddMachineAPI) *AddCommand {
    14  	return &AddCommand{
    15  		api: api,
    16  	}
    17  }
    18  
    19  // NewRemoveCommand returns an RemoveCommand with the api provided as specified.
    20  func NewRemoveCommand(api RemoveMachineAPI) *RemoveCommand {
    21  	return &RemoveCommand{
    22  		api: api,
    23  	}
    24  }
    25  
    26  func NewDisksFlag(disks *[]storage.Constraints) *disksFlag {
    27  	return &disksFlag{disks}
    28  }