-
Notifications
You must be signed in to change notification settings - Fork 929
/
actor.go
31 lines (26 loc) · 842 Bytes
/
actor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Package v7action contains the business logic for the commands/v3 package
package v7action
// SortOrder is used for sorting.
type SortOrder string
const (
Ascending SortOrder = "Ascending"
Descending SortOrder = "Descending"
)
// Warnings is a list of warnings returned back from the cloud controller
type Warnings []string
// Actor represents a V3 actor.
type Actor struct {
CloudControllerClient CloudControllerClient
Config Config
SharedActor SharedActor
UAAClient UAAClient
}
// NewActor returns a new V3 actor.
func NewActor(client CloudControllerClient, config Config, sharedActor SharedActor, uaaClient UAAClient) *Actor {
return &Actor{
CloudControllerClient: client,
Config: config,
SharedActor: sharedActor,
UAAClient: uaaClient,
}
}