reader

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStartupHotPath

func IsStartupHotPath(name string) bool

func MaterializedFileKey

func MaterializedFileKey(name string) (string, bool)

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 LocalFileReaderAt

type LocalFileReaderAt interface {
	io.ReaderAt
	LocalPath() string
}

type MaterializedFileSet

type MaterializedFileSet struct {
	Root  string
	Files map[string]string
}

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, enableStartupReadahead ...bool) (Reader, error)

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

func NewReaderWithMaterializedFiles

func NewReaderWithMaterializedFiles(r metadata.Reader, layerSha digest.Digest, spanManager *spanmanager.SpanManager, disableVerification bool, materialized *MaterializedFileSet, enableStartupReadahead bool) (Reader, error)

Jump to

Keyboard shortcuts

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