applyInstanceIdentityOptions applies the given options and returns the resulting configuration.
(opts []InstanceIdentityOption)
| 529 | // applyInstanceIdentityOptions applies the given options and returns |
| 530 | // the resulting configuration. |
| 531 | func applyInstanceIdentityOptions(opts []InstanceIdentityOption) InstanceIdentityConfig { |
| 532 | var cfg InstanceIdentityConfig |
| 533 | for _, o := range opts { |
| 534 | o(&cfg) |
| 535 | } |
| 536 | return cfg |
| 537 | } |
| 538 | |
| 539 | func WithFixedToken(token string) SessionTokenSetup { |
| 540 | return func(_ *codersdk.Client) RefreshableSessionTokenProvider { |
no outgoing calls
no test coverage detected