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

Function WithInstanceIdentityAgentName

codersdk/agentsdk/agentsdk.go:523–527  ·  view source on GitHub ↗

WithInstanceIdentityAgentName sets the agent name selector sent with the instance-identity authentication request.

(name string)

Source from the content-addressed store, hash-verified

521// WithInstanceIdentityAgentName sets the agent name selector sent with
522// the instance-identity authentication request.
523func WithInstanceIdentityAgentName(name string) InstanceIdentityOption {
524 return func(c *InstanceIdentityConfig) {
525 c.AgentName = name
526 }
527}
528
529// applyInstanceIdentityOptions applies the given options and returns
530// the resulting configuration.

Calls

no outgoing calls