newImageSource returns an ImageSource reading from an existing directory. The caller must call .Close() on the returned ImageSource.
(ref dirReference)
| 27 | // newImageSource returns an ImageSource reading from an existing directory. |
| 28 | // The caller must call .Close() on the returned ImageSource. |
| 29 | func newImageSource(ref dirReference) private.ImageSource { |
| 30 | s := &dirImageSource{ |
| 31 | PropertyMethodsInitialize: impl.PropertyMethods(impl.Properties{ |
| 32 | HasThreadSafeGetBlob: false, |
| 33 | }), |
| 34 | NoGetBlobAtInitialize: stubs.NoGetBlobAt(ref), |
| 35 | |
| 36 | ref: ref, |
| 37 | } |
| 38 | s.Compat = impl.AddCompat(s) |
| 39 | return s |
| 40 | } |
| 41 | |
| 42 | // Reference returns the reference used to set up this source, _as specified by the user_ |
| 43 | // (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image. |
no test coverage detected
searching dependent graphs…