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

Method createSessionRequest

cmd/root/payload.go:20–31  ·  view source on GitHub ↗

createSessionRequest builds a runtime.CreateSessionRequest from the current flags and the supplied working directory.

(workingDir string)

Source from the content-addressed store, hash-verified

18// createSessionRequest builds a runtime.CreateSessionRequest from the
19// current flags and the supplied working directory.
20func (f *runExecFlags) createSessionRequest(workingDir string) runtime.CreateSessionRequest {
21 return runtime.CreateSessionRequest{
22 AgentName: f.agentName,
23 ToolsApproved: f.autoApprove,
24 HideToolResults: f.hideToolResults,
25 SessionDB: f.sessionDB,
26 ResumeSessionID: f.sessionID,
27 SnapshotsEnabled: f.snapshotsEnabled,
28 GlobalPermissions: f.globalPermissions,
29 WorkingDir: workingDir,
30 }
31}

Callers 4

createSessionSpawnerMethod · 0.95
CreateSessionRequestMethod · 0.80
ResumeWorkingDirMethod · 0.80
CreateSessionRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected