github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/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 // NewEnsureAvailabilityCommand returns an EnsureAvailabilityCommand with the 28 // haClient provided as specified. 29 func NewEnsureAvailabilityCommand(haClient EnsureAvailabilityClient) *EnsureAvailabilityCommand { 30 return &EnsureAvailabilityCommand{ 31 haClient: haClient, 32 } 33 } 34 35 // NewRetryProvisioningCommand returns a RetryProvisioningCommand with the api provided as specified. 36 func NewRetryProvisioningCommand(api RetryProvisioningAPI) *RetryProvisioningCommand { 37 return &RetryProvisioningCommand{ 38 api: api, 39 } 40 }