MCPcopy Index your code
hub / github.com/docker/docker-agent / Set

Method Set

pkg/runtime/agent_router.go:48–50  ·  view source on GitHub ↗

Set replaces the current agent name without validating that it exists in the team. Used from agent_delegation.go where the validation has already been performed against the team's transfer/handoff lists.

(name string)

Source from the content-addressed store, hash-verified

46// in the team. Used from agent_delegation.go where the validation has
47// already been performed against the team's transfer/handoff lists.
48func (r *agentRouter) Set(name string) {
49 r.current.Store(&name)
50}
51
52// SetValidated checks that name exists in the team, then sets it as the
53// current agent. Returns the team's lookup error unchanged so callers

Calls 1

StoreMethod · 0.45