MCPcopy Index your code
hub / github.com/coder/coder / applyInstanceIdentityOptions

Function applyInstanceIdentityOptions

codersdk/agentsdk/agentsdk.go:531–537  ·  view source on GitHub ↗

applyInstanceIdentityOptions applies the given options and returns the resulting configuration.

(opts []InstanceIdentityOption)

Source from the content-addressed store, hash-verified

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

Callers 3

WithAWSInstanceIdentityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected