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

Function WithPermissions

pkg/session/session.go:854–858  ·  view source on GitHub ↗
(perms *PermissionsConfig)

Source from the content-addressed store, hash-verified

852}
853
854func WithPermissions(perms *PermissionsConfig) Opt {
855 return func(s *Session) {
856 s.Permissions = perms
857 }
858}
859
860// WithAgentName pins this session to a specific agent. When set, RunStream
861// resolves the agent from the session rather than the shared runtime state,

Calls

no outgoing calls