github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/actor/v7action/actor.go (about)

     1  // Package v7action contains the business logic for the commands/v7 package
     2  package v7action
     3  
     4  import (
     5  	"code.cloudfoundry.org/clock"
     6  )
     7  
     8  // SortOrder is used for sorting.
     9  type SortOrder string
    10  
    11  const (
    12  	Ascending  SortOrder = "Ascending"
    13  	Descending SortOrder = "Descending"
    14  )
    15  
    16  // Warnings is a list of warnings returned back from the cloud controller
    17  type Warnings []string
    18  
    19  // Actor represents a V7 actor.
    20  type Actor struct {
    21  	CloudControllerClient CloudControllerClient
    22  	Config                Config
    23  	SharedActor           SharedActor
    24  	UAAClient             UAAClient
    25  	RoutingClient         RoutingClient
    26  	Clock                 clock.Clock
    27  }
    28  
    29  // NewActor returns a new V7 actor.
    30  func NewActor(
    31  	client CloudControllerClient,
    32  	config Config,
    33  	sharedActor SharedActor,
    34  	uaaClient UAAClient,
    35  	routingClient RoutingClient,
    36  	clk clock.Clock,
    37  ) *Actor {
    38  	return &Actor{
    39  		CloudControllerClient: client,
    40  		Config:                config,
    41  		SharedActor:           sharedActor,
    42  		UAAClient:             uaaClient,
    43  		RoutingClient:         routingClient,
    44  		Clock:                 clk,
    45  	}
    46  }