github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/actor/v2action/actor.go (about) 1 // Package v2action contains the business logic for the commands/v2 package 2 package v2action 3 4 // Warnings is a list of warnings returned back from the cloud controller 5 type Warnings []string 6 7 // Actor handles all business logic for Cloud Controller v2 operations. 8 type Actor struct { 9 CloudControllerClient CloudControllerClient 10 Config Config 11 UAAClient UAAClient 12 13 domainCache map[string]Domain 14 } 15 16 // NewActor returns a new actor. 17 func NewActor(ccClient CloudControllerClient, uaaClient UAAClient, config Config) *Actor { 18 return &Actor{ 19 CloudControllerClient: ccClient, 20 Config: config, 21 UAAClient: uaaClient, 22 domainCache: map[string]Domain{}, 23 } 24 }