MCPcopy
hub / github.com/cloudfoundry/cli / NewActor

Function NewActor

actor/sharedaction/actor.go:16–26  ·  view source on GitHub ↗

NewActor returns an Actor with default settings

(config Config)

Source from the content-addressed store, hash-verified

14
15// NewActor returns an Actor with default settings
16func NewActor(config Config) *Actor {
17 var authActor AuthActor = NewDefaultAuthActor(config)
18 if config.IsCFOnK8s() {
19 authActor = NewK8sAuthActor(config)
20 }
21
22 return &Actor{
23 AuthActor: authActor,
24 Config: config,
25 }
26}

Callers 15

SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
help_test.goFile · 0.70
auth_test.goFile · 0.70

Calls 3

NewK8sAuthActorFunction · 0.85
NewDefaultAuthActorFunction · 0.70
IsCFOnK8sMethod · 0.65

Tested by

no test coverage detected