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

Method setCurrentAgent

pkg/runtime/runtime.go:715–717  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

713}
714
715func (r *LocalRuntime) setCurrentAgent(name string) {
716 r.agents.Set(name)
717}
718
719func (r *LocalRuntime) CurrentAgentInfo(context.Context) CurrentAgentInfo {
720 currentAgent := r.CurrentAgent()

Callers 3

swapCurrentAgentMethod · 0.95
handleHandoffMethod · 0.95
applyForceHandoffMethod · 0.95

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected