github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+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  	SharedActor           SharedActor
    18  	CloudControllerClient CloudControllerClient
    19  	Config                Config
    20  }
    21  
    22  // NewActor returns a new V3 actor.
    23  func NewActor(sharedActor SharedActor, client CloudControllerClient, config Config) *Actor {
    24  	return &Actor{
    25  		SharedActor:           sharedActor,
    26  		CloudControllerClient: client,
    27  		Config:                config,
    28  	}
    29  }