tarball

package
v1.1.37 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, oci.Hash, error)

func (*Reader) Next

func (r *Reader) Next() (oci.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