github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/cmd/juju/service/export_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package service 5 6 // NewSetCommand returns a SetCommand with the api provided as specified. 7 func NewSetCommand(api SetServiceAPI) *SetCommand { 8 return &SetCommand{ 9 api: api, 10 } 11 } 12 13 // NewUnsetCommand returns an UnsetCommand with the api provided as specified. 14 func NewUnsetCommand(api UnsetServiceAPI) *UnsetCommand { 15 return &UnsetCommand{ 16 api: api, 17 } 18 } 19 20 // NewGetCommand returns a GetCommand with the api provided as specified. 21 func NewGetCommand(api GetServiceAPI) *GetCommand { 22 return &GetCommand{ 23 api: api, 24 } 25 } 26 27 // NewAddUnitCommand returns an AddUnitCommand with the api provided as specified. 28 func NewAddUnitCommand(api ServiceAddUnitAPI) *AddUnitCommand { 29 return &AddUnitCommand{ 30 api: api, 31 } 32 }