MCPcopy
hub / github.com/docker/docker-agent / namedToolSet

Struct namedToolSet

pkg/tools/named.go:47–51  ·  view source on GitHub ↗

namedToolSet decorates a ToolSet with a stable Name(). Every other capability is delegated to the inner toolset via the embedded ToolSet interface; As[T] reaches the inner type through Unwrap so e.g. Statable, Restartable and Kinder remain visible through the wrapper.

Source from the content-addressed store, hash-verified

45// interface; As[T] reaches the inner type through Unwrap so e.g.
46// Statable, Restartable and Kinder remain visible through the wrapper.
47type namedToolSet struct {
48 ToolSet
49
50 name string
51}
52
53// Compile-time guarantee that namedToolSet exposes Named and Unwrapper.
54var (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected