github.com/cloudfoundry/cli@v7.1.0+incompatible/actor/v3action/actor.go (about)

     1  // Package v3action contains the business logic for the commands/v3 package
     2  package v3action
     3  
     4  // SortOrder 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  	Config                Config
    19  	SharedActor           SharedActor
    20  	UAAClient             UAAClient
    21  }
    22  
    23  // NewActor returns a new V3 actor.
    24  func NewActor(client CloudControllerClient, config Config, sharedActor SharedActor, uaaClient UAAClient) *Actor {
    25  	return &Actor{
    26  		CloudControllerClient: client,
    27  		Config:                config,
    28  		SharedActor:           sharedActor,
    29  		UAAClient:             uaaClient,
    30  	}
    31  }