MCPcopy Index your code
hub / github.com/coder/coder / WithManifestInfo

Function WithManifestInfo

agent/agentcontainers/api.go:209–216  ·  view source on GitHub ↗

WithManifestInfo sets the owner name, and workspace name for the sub-agent.

(owner, workspace, parentAgent, agentDirectory string)

Source from the content-addressed store, hash-verified

207// WithManifestInfo sets the owner name, and workspace name
208// for the sub-agent.
209func WithManifestInfo(owner, workspace, parentAgent, agentDirectory string) Option {
210 return func(api *API) {
211 api.ownerName = owner
212 api.workspaceName = workspace
213 api.parentAgent = parentAgent
214 api.agentDirectory = agentDirectory
215 }
216}
217
218// WithDevcontainers sets the known devcontainers for the API. This
219// allows the API to be aware of devcontainers defined in the workspace

Callers 4

handleManifestMethod · 0.92
TestAPIFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestAPIFunction · 0.74