MCPcopy Index your code
hub / github.com/cloudfoundry/garden

github.com/cloudfoundry/garden @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
748 symbols 1,649 edges 50 files 51 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

garden

Go Report
Card Go
Reference

                                                 ,-.
                                                  ) \
                                              .--'   |
                                             /       /
                                             |_______|
                                            (  O   O  )
                                             {'-(_)-'}
                                           .-{   ^   }-.
                                          /   '.___.'   \
                                         /  |    o    |  \
                                         |__|    o    |__|
                                         (((\_________/)))
                                             \___|___/
                                        jgs.--' | | '--.
                                           \__._| |_.__/

A rich golang client and server for container creation and management with pluggable backends for The Open Container Initiative Spec.

[!NOTE]

This repository should be imported as code.cloudfoundry.org/garden.

Docs

Contributing

See the Contributing.md for more information on how to contribute.

Working Group Charter

This repository is maintained by App Runtime Platform under Garden Containers area.

[!IMPORTANT]

Content in this file is managed by the CI task sync-readme and is generated by CI following a convention.

Extension points exported contracts — how you extend this code

Client (Interface)
go:generate counterfeiter . Client [3 implementers]
client.go
Container (Interface)
go:generate counterfeiter . Container [2 implementers]
container.go
Connection (Interface)
go:generate counterfeiter . Connection [2 implementers]
client/connection/connection.go
Backend (Interface)
go:generate counterfeiter . Backend [1 implementers]
backend.go
Client (Interface)
(no doc) [3 implementers]
client/client.go
HandlerFunc (FuncType)
(no doc)
server/streamer/http_handling.go
Process (Interface)
go:generate counterfeiter . Process [2 implementers]
container.go
HijackStreamer (Interface)
go:generate counterfeiter . HijackStreamer [2 implementers]
client/connection/connection.go

Core symbols most depended-on inside this repo

Handle
called by 55
container.go
writeError
called by 49
server/request_handling.go
Wait
called by 32
container.go
Info
called by 29
container.go
Pause
called by 29
server/timebomb/timebomb.go
Stop
called by 26
backend.go
Close
called by 26
client/connection/process_stream.go
recordInvocation
called by 26
client/connection/connectionfakes/fake_connection.go

Shape

Method 607
Struct 71
Function 49
TypeAlias 12
Interface 7
FuncType 2

Languages

Go100%

Modules by API surface

client/connection/connectionfakes/fake_connection.go131 symbols
gardenfakes/fake_container.go115 symbols
gardenfakes/fake_backend.go65 symbols
client/connection/connection.go65 symbols
container.go52 symbols
gardenfakes/fake_client.go49 symbols
server/request_handling.go36 symbols
gardenfakes/fake_process.go25 symbols
client/container.go22 symbols
errors.go20 symbols
client.go17 symbols
server/streamer/streamer.go14 symbols

For agents

$ claude mcp add garden \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact