code.cloudfoundry.org/cli@v7.1.0+incompatible/actor/v2action/actor.go (about)

     1  // Package v2action contains the business logic for the commands/v6 package
     2  // Actors in this package should only call CC v2 API endpoints
     3  package v2action
     4  
     5  // Warnings is a list of warnings returned back from the cloud controller
     6  type Warnings []string
     7  
     8  // Actor handles all business logic for Cloud Controller v2 operations.
     9  type Actor struct {
    10  	CloudControllerClient CloudControllerClient
    11  	Config                Config
    12  	UAAClient             UAAClient
    13  
    14  	domainCache map[string]Domain
    15  }
    16  
    17  // NewActor returns a new actor.
    18  func NewActor(ccClient CloudControllerClient, uaaClient UAAClient, config Config) *Actor {
    19  	return &Actor{
    20  		CloudControllerClient: ccClient,
    21  		Config:                config,
    22  		UAAClient:             uaaClient,
    23  		domainCache:           map[string]Domain{},
    24  	}
    25  }