github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/actor/v3action/actor.go (about) 1 // Package v3action contains the business logic for the commands/v3 package 2 package v3action 3 4 // This is used for sorting. 5 type SortOrder string 6 7 const ( 8 Ascending SortOrder = "Ascending" 9 Descending SortOrder = "Descending" 10 ) 11 12 // Warnings is a list of warnings returned back from the cloud controller 13 type Warnings []string 14 15 // Actor represents a V3 actor. 16 type Actor struct { 17 CloudControllerClient CloudControllerClient 18 } 19 20 // NewActor returns a new V3 actor. 21 func NewActor(client CloudControllerClient) Actor { 22 return Actor{ 23 CloudControllerClient: client, 24 } 25 }