stargz

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FooterSize  = 47
	TocFileName = "stargz.index.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	// contains filtered or unexported fields
}

func (*Blob) GetDigest added in v0.8.0

func (bb *Blob) GetDigest() string

func (*Blob) GetImageReference added in v0.8.0

func (bb *Blob) GetImageReference() string

func (*Blob) GetTocOffset

func (bb *Blob) GetTocOffset() (int64, error)

getTocOffset get toc offset from stargz footer

func (*Blob) ReadToc

func (bb *Blob) ReadToc() (io.Reader, error)

ReadToc read stargz toc content from blob

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver() *Resolver

func (*Resolver) GetBlob

func (r *Resolver) GetBlob(ref, digest string, keychain authn.Keychain) (*Blob, error)

Jump to

Keyboard shortcuts

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