tarball

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

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

func (Blob) DiffID

func (b Blob) DiffID() (v1.Hash, error)

func (Blob) Uncompressed

func (b Blob) Uncompressed() (io.ReadCloser, error)

type FileTarget

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

FileTarget writes an artifact tarball to a local file.

func NewFileTarget

func NewFileTarget(path string) *FileTarget

NewFileTarget returns a *FileTarget for the given path.

func (*FileTarget) Write

func (t *FileTarget) Write(ctx context.Context, mdl types.ModelArtifact, pw io.Writer) error

Write writes the given artifact to the target.

type Reader

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

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Manifest

func (r *Reader) Manifest() ([]byte, v1.Hash, error)

func (*Reader) Next

func (r *Reader) Next() (v1.Hash, error)

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

type Target

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

Target stores an artifact as a TAR archive

func NewTarget

func NewTarget(w io.Writer) (*Target, error)

NewTarget returns a *Target for the given writer

func (*Target) Write

func (t *Target) Write(ctx context.Context, mdl types.ModelArtifact, progressWriter io.Writer) error

Write writes the artifact in archive format to the configured io.Writer

Jump to

Keyboard shortcuts

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