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

Function newSession

pkg/remote/pull.go:160–168  ·  view source on GitHub ↗
(o crane.Options)

Source from the content-addressed store, hash-verified

158}
159
160func newSession(o crane.Options) (*session, error) {
161 s := &session{opts: o}
162 puller, err := remote.NewPuller(s.remoteOptions(authn.Anonymous)...)
163 if err != nil {
164 return nil, err
165 }
166 s.puller = puller
167 return s, nil
168}
169
170// digest resolves the remote digest, matching crane.Digest behavior. When a
171// platform is set, it resolves indexes to the platform-specific image digest;

Callers 4

PullFunction · 0.85
newTestSessionFunction · 0.85

Calls 1

remoteOptionsMethod · 0.95

Tested by 3

newTestSessionFunction · 0.68