github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/cmd/juju/environment/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package environment 5 6 // NewGetCommand returns a GetCommand with the api provided as specified. 7 func NewGetCommand(api GetEnvironmentAPI) *GetCommand { 8 return &GetCommand{ 9 api: api, 10 } 11 } 12 13 // NewSetCommand returns a SetCommand with the api provided as specified. 14 func NewSetCommand(api SetEnvironmentAPI) *SetCommand { 15 return &SetCommand{ 16 api: api, 17 } 18 } 19 20 // NewUnsetCommand returns an UnsetCommand with the api provided as specified. 21 func NewUnsetCommand(api UnsetEnvironmentAPI) *UnsetCommand { 22 return &UnsetCommand{ 23 api: api, 24 } 25 } 26 27 // NewRetryProvisioningCommand returns a RetryProvisioningCommand with the api provided as specified. 28 func NewRetryProvisioningCommand(api RetryProvisioningAPI) *RetryProvisioningCommand { 29 return &RetryProvisioningCommand{ 30 api: api, 31 } 32 } 33 34 // NewShareCommand returns a ShareCommand with the api provided as specified. 35 func NewShareCommand(api ShareEnvironmentAPI) *ShareCommand { 36 return &ShareCommand{ 37 api: api, 38 } 39 } 40 41 // NewUnshareCommand returns an unshareCommand with the api provided as specified. 42 func NewUnshareCommand(api UnshareEnvironmentAPI) *UnshareCommand { 43 return &UnshareCommand{ 44 api: api, 45 } 46 } 47 48 // NewUsersCommand returns a UsersCommand with the api provided as specified. 49 func NewUsersCommand(api UsersAPI) *UsersCommand { 50 return &UsersCommand{ 51 api: api, 52 } 53 } 54 55 // NewDestroyCommand returns a DestroyCommand with the api provided as specified. 56 func NewDestroyCommand(api DestroyEnvironmentAPI) *DestroyCommand { 57 return &DestroyCommand{ 58 api: api, 59 } 60 }