tarball

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTarDescriptor

type ConfigTarDescriptor struct {
	Digest string
	Raw    string
}

type ImageIndexTarDescriptor

type ImageIndexTarDescriptor struct {
	Refs    []string
	Images  []ImageTarDescriptor
	Indexes []ImageIndexTarDescriptor

	MediaType string
	Digest    string
	Raw       string
}

type ImageIndexWithRef

type ImageIndexWithRef interface {
	regv1.ImageIndex
	Ref() string
}

type ImageLayerTarDescriptor

type ImageLayerTarDescriptor struct {
	MediaType string
	Digest    string
	DiffID    string
	Size      int64
}

type ImageOrImageIndexTarDescriptor

type ImageOrImageIndexTarDescriptor struct {
	ImageIndex *ImageIndexTarDescriptor
	Image      *ImageTarDescriptor
}

type ImageTarDescriptor

type ImageTarDescriptor struct {
	Refs   []string
	Layers []ImageLayerTarDescriptor

	Config   ConfigTarDescriptor
	Manifest ManifestTarDescriptor
}

type ImageWithRef

type ImageWithRef interface {
	regv1.Image
	Ref() string
}

type ManifestTarDescriptor

type ManifestTarDescriptor struct {
	MediaType string
	Digest    string
	Raw       string
}

type TarDescriptors

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

func NewTarDescriptors

func NewTarDescriptors(refs []regname.Reference, metadata TarDescriptorsMetadata) (*TarDescriptors, error)

func (*TarDescriptors) ImageLayerStream

func (tds *TarDescriptors) ImageLayerStream(td ImageLayerTarDescriptor) (io.Reader, error)

type TarDescriptorsMetadata

type TarDescriptorsMetadata interface {
	Generic(regname.Reference) (regv1.Descriptor, error)
	Index(regname.Reference) (regv1.ImageIndex, error)
	Image(regname.Reference) (regv1.Image, error)
}

type TarImageOrIndex

type TarImageOrIndex struct {
	Image *ImageWithRef
	Index *ImageIndexWithRef
}

func MultiRefReadFromFile

func MultiRefReadFromFile(path string) ([]TarImageOrIndex, error)

func (TarImageOrIndex) Digest

func (t TarImageOrIndex) Digest() (regv1.Hash, error)

func (TarImageOrIndex) Ref

func (t TarImageOrIndex) Ref() string

type TarWriter

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

func NewTarWriter

func NewTarWriter(tds *TarDescriptors, dst io.Writer) *TarWriter

func (*TarWriter) Write

func (w *TarWriter) Write() error

Jump to

Keyboard shortcuts

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