github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/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, mmApi MachineManagerAPI) *AddCommand { 14 return &AddCommand{ 15 api: api, 16 machineManagerAPI: mmApi, 17 } 18 } 19 20 // NewRemoveCommand returns an RemoveCommand with the api provided as specified. 21 func NewRemoveCommand(api RemoveMachineAPI) *RemoveCommand { 22 return &RemoveCommand{ 23 api: api, 24 } 25 } 26 27 func NewDisksFlag(disks *[]storage.Constraints) *disksFlag { 28 return &disksFlag{disks} 29 }