archive

package
v1.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAllPlatforms

func WithAllPlatforms(s *ImageExportStream)

func WithForceCompression

func WithForceCompression(s *ImageImportStream)

func WithSkipCompatibilityManifest

func WithSkipCompatibilityManifest(s *ImageExportStream)

func WithSkipNonDistributableBlobs

func WithSkipNonDistributableBlobs(s *ImageExportStream)

Types

type ExportOpt

type ExportOpt func(*ImageExportStream)

func WithPlatform

func WithPlatform(p v1.Platform) ExportOpt

type ImageExportStream

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

func NewImageExportStream

func NewImageExportStream(stream io.WriteCloser, mediaType string, opts ...ExportOpt) *ImageExportStream

NewImageExportStream returns an image exporter via tar stream

func (*ImageExportStream) Export

func (iis *ImageExportStream) Export(ctx context.Context, cs content.Store, imgs []images.Image) error

func (*ImageExportStream) ExportStream

func (iis *ImageExportStream) ExportStream(context.Context) (io.WriteCloser, string, error)

func (*ImageExportStream) MarshalAny

func (*ImageExportStream) UnmarshalAny

func (iis *ImageExportStream) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, any typeurl.Any) error

type ImageImportStream

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

func NewImageImportStream

func NewImageImportStream(stream io.Reader, mediaType string, opts ...ImportOpt) *ImageImportStream

NewImageImportStream returns a image importer via tar stream

func (*ImageImportStream) Import

func (*ImageImportStream) ImportStream

func (iis *ImageImportStream) ImportStream(context.Context) (io.Reader, string, error)

func (*ImageImportStream) MarshalAny

func (*ImageImportStream) UnmarshalAny

func (iis *ImageImportStream) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, any typeurl.Any) error

type ImportOpt

type ImportOpt func(*ImageImportStream)

Jump to

Keyboard shortcuts

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