package archive
import "github.com/containerd/containerd/pkg/transfer/archive"
Index ¶
- func WithAllPlatforms(s *ImageExportStream)
- func WithForceCompression(s *ImageImportStream)
- func WithSkipCompatibilityManifest(s *ImageExportStream)
- func WithSkipNonDistributableBlobs(s *ImageExportStream)
- type ExportOpt
- type ImageExportStream
- func NewImageExportStream(stream io.WriteCloser, mediaType string, opts ...ExportOpt) *ImageExportStream
- func (iis *ImageExportStream) Export(ctx context.Context, cs content.Store, imgs []images.Image) error
- func (iis *ImageExportStream) ExportStream(context.Context) (io.WriteCloser, string, error)
- func (iis *ImageExportStream) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)
- func (iis *ImageExportStream) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, any typeurl.Any) error
- type ImageImportStream
- func NewImageImportStream(stream io.Reader, mediaType string, opts ...ImportOpt) *ImageImportStream
- func (iis *ImageImportStream) Import(ctx context.Context, store content.Store) (ocispec.Descriptor, error)
- func (iis *ImageImportStream) ImportStream(context.Context) (io.Reader, string, error)
- func (iis *ImageImportStream) MarshalAny(ctx context.Context, sm streaming.StreamCreator) (typeurl.Any, error)
- func (iis *ImageImportStream) UnmarshalAny(ctx context.Context, sm streaming.StreamGetter, any typeurl.Any) error
- type ImportOpt
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 ¶
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 (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 (iis *ImageImportStream) Import(ctx context.Context, store content.Store) (ocispec.Descriptor, error)
func (*ImageImportStream) ImportStream ¶
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)
Source Files ¶
- Version
- v1.7.2
- Published
- Jun 2, 2023
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 1 second ago –
Tools for package owners.