archive

package
v1.7.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithForceCompression

func WithForceCompression(s *ImageImportStream)

Types

type ImageExportStream

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

func NewImageExportStream

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

NewImageExportStream returns a image importer via tar stream TODO: Add export options

func (*ImageExportStream) ExportStream

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

func (*ImageExportStream) MarshalAny

func (iis *ImageExportStream) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)

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 (iis *ImageImportStream) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)

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