MCPcopy
hub / github.com/amir20/dozzle / ToolHostService

Interface ToolHostService

internal/cloud/tools.go:16–20  ·  view source on GitHub ↗

ToolHostService is the subset of HostService needed by tool execution.

Source from the content-addressed store, hash-verified

14
15// ToolHostService is the subset of HostService needed by tool execution.
16type ToolHostService interface {
17 ListAllContainers(labels container.ContainerLabels) ([]container.Container, []error)
18 FindContainer(host string, id string, labels container.ContainerLabels) (*container_support.ContainerService, error)
19 Hosts() []container.Host
20}
21
22// Tool names. Declared as consts so dispatch and AvailableTools stay in sync
23// — a mismatch here would otherwise surface only as a runtime "unknown tool".

Callers 15

executeFindContainersFunction · 0.65
executeListAllContainersFunction · 0.65
matchContainerTierFunction · 0.65
runMethod · 0.65
executeInspectContainerFunction · 0.65
executeStreamLogsFunction · 0.65
executeContainerActionFunction · 0.65
executeUpdateContainerFunction · 0.65
startReaderMethod · 0.65

Implementers 6

fakeHostServiceinternal/cloud/log_streamer_test.go
MockHostServiceinternal/cloud/tools_test.go
mockHostServiceinternal/mcp/server_test.go
K8sClusterServiceinternal/support/k8s/k8s_cluster_servi
MultiHostServiceinternal/support/docker/multi_host_ser

Calls

no outgoing calls

Tested by

no test coverage detected