reader

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 Reader

type Reader interface {
	OpenFile(id uint32) (io.ReaderAt, error)
	Metadata() metadata.Reader
	Close() error
	LastOnDemandReadTime() time.Time
}

func NewReader

func NewReader(r metadata.Reader, layerSha digest.Digest, spanManager *spanmanager.SpanManager, disableVerification bool) (Reader, error)

NewReader creates a Reader based on the given soci blob and Span Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL