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

Function WithParentID

pkg/session/session.go:871–875  ·  view source on GitHub ↗

WithParentID marks this session as a sub-session of the given parent. Sub-sessions are not persisted as standalone entries in the session store.

(parentID string)

Source from the content-addressed store, hash-verified

869// WithParentID marks this session as a sub-session of the given parent.
870// Sub-sessions are not persisted as standalone entries in the session store.
871func WithParentID(parentID string) Opt {
872 return func(s *Session) {
873 s.ParentID = parentID
874 }
875}
876
877// WithID sets the session ID. If not set, a UUID will be generated.
878func WithID(id string) Opt {

Callers 1

newSubSessionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected