(o crane.Options)
| 158 | } |
| 159 | |
| 160 | func 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; |