github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+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  	Config                Config
    19  }
    20  
    21  // NewActor returns a new V3 actor.
    22  func NewActor(client CloudControllerClient, config Config) *Actor {
    23  	return &Actor{
    24  		CloudControllerClient: client,
    25  		Config:                config,
    26  	}
    27  }