NewActor returns an Actor with default settings
(config Config)
| 14 | |
| 15 | // NewActor returns an Actor with default settings |
| 16 | func 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 | } |
no test coverage detected