Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheOption ¶
type CacheOption func(*cacheOptions)
func WithCacheOpts ¶
func WithCacheOpts(cacheOpts ...cache.Option) CacheOption
func WithFilter ¶
func WithFilter(filter func(int64) bool) CacheOption
func WithReader ¶
func WithReader(sr *io.SectionReader) CacheOption
type VerifiableReader ¶
type VerifiableReader struct {
// contains filtered or unexported fields
}
VerifiableReader produces a Reader with a given verifier.
func NewReader ¶
func NewReader(r metadata.Reader, cache cache.BlobCache, layerSha digest.Digest) (*VerifiableReader, error)
NewReader creates a Reader based on the given stargz blob and cache implementation. It returns VerifiableReader so the caller must provide a metadata.ChunkVerifier to use for verifying file or chunk contained in this stargz blob.
func (*VerifiableReader) Cache ¶ added in v0.9.0
func (vr *VerifiableReader) Cache(opts ...CacheOption) (err error)
func (*VerifiableReader) Close ¶ added in v0.6.0
func (vr *VerifiableReader) Close() error
func (*VerifiableReader) Metadata ¶ added in v0.10.0
func (vr *VerifiableReader) Metadata() metadata.Reader
func (*VerifiableReader) SkipVerify ¶ added in v0.3.0
func (vr *VerifiableReader) SkipVerify() Reader
Click to show internal directories.
Click to hide internal directories.