support

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoIndex = errors.New("manifest does not support access to subsequent artifacts")

Functions

func AdjustSize

func AdjustSize(d *artdesc.Descriptor, size int64) error

func NewArtifact

func NewArtifact(container ArtifactSetContainerImpl, defs ...*artdesc.Artifact) (cpi.ArtifactAccess, error)

func NewArtifactForBlob

func NewArtifactForBlob(container ArtifactSetContainerImpl, blob accessio.BlobAccess) (cpi.ArtifactAccess, error)

Types

type ArtifactImpl

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

func (*ArtifactImpl) AddArtifact

func (a *ArtifactImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (cpi.BlobAccess, error)

func (*ArtifactImpl) AddBlob

func (a *ArtifactImpl) AddBlob(access cpi.BlobAccess) error

func (*ArtifactImpl) AddLayer

func (a *ArtifactImpl) AddLayer(blob cpi.BlobAccess, d *cpi.Descriptor) (int, error)

func (*ArtifactImpl) Artifact

func (a *ArtifactImpl) Artifact() *artdesc.Artifact

func (ArtifactImpl) Blob

func (a ArtifactImpl) Blob() (accessio.BlobAccess, error)

func (*ArtifactImpl) Close

func (a *ArtifactImpl) Close() error

func (ArtifactImpl) Digest

func (a ArtifactImpl) Digest() digest.Digest

func (*ArtifactImpl) GetArtifact

func (a *ArtifactImpl) GetArtifact(digest digest.Digest) (cpi.ArtifactAccess, error)

func (*ArtifactImpl) GetBlob

func (a *ArtifactImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)

func (*ArtifactImpl) GetBlobData

func (a *ArtifactImpl) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)

func (*ArtifactImpl) GetBlobDescriptor

func (a *ArtifactImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor

func (*ArtifactImpl) GetDescriptor

func (a *ArtifactImpl) GetDescriptor() *artdesc.Artifact

func (*ArtifactImpl) Index

func (a *ArtifactImpl) Index() (*artdesc.Index, error)

func (*ArtifactImpl) IndexAccess

func (a *ArtifactImpl) IndexAccess() internal.IndexAccess

func (ArtifactImpl) IsClosed

func (a ArtifactImpl) IsClosed() bool

func (ArtifactImpl) IsIndex

func (a ArtifactImpl) IsIndex() bool

func (ArtifactImpl) IsManifest

func (a ArtifactImpl) IsManifest() bool

func (ArtifactImpl) IsReadOnly

func (a ArtifactImpl) IsReadOnly() bool

func (*ArtifactImpl) Manifest

func (a *ArtifactImpl) Manifest() (*artdesc.Manifest, error)

func (*ArtifactImpl) ManifestAccess

func (a *ArtifactImpl) ManifestAccess() internal.ManifestAccess

func (*ArtifactImpl) NewArtifact

func (a *ArtifactImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)

type ArtifactSetAccess

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

func NewArtifactSetAccess

func NewArtifactSetAccess(container ArtifactSetContainer) *ArtifactSetAccess

func (*ArtifactSetAccess) AddArtifact

func (a *ArtifactSetAccess) AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error)

func (*ArtifactSetAccess) AddBlob

func (a *ArtifactSetAccess) AddBlob(blob cpi.BlobAccess) error

func (*ArtifactSetAccess) GetBlob

func (a *ArtifactSetAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)

func (*ArtifactSetAccess) GetBlobData

func (a *ArtifactSetAccess) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)

func (*ArtifactSetAccess) GetBlobDescriptor

func (a *ArtifactSetAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor

func (*ArtifactSetAccess) IsClosed

func (a *ArtifactSetAccess) IsClosed() bool

func (*ArtifactSetAccess) IsReadOnly

func (a *ArtifactSetAccess) IsReadOnly() bool

type ArtifactSetContainer

type ArtifactSetContainer interface {
	IsReadOnly() bool
	IsClosed() bool

	Close() error

	GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
	GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
	AddBlob(blob cpi.BlobAccess) error

	GetArtifact(vers string) (cpi.ArtifactAccess, error)
	AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error)
}

ArtifactSetContainer is the interface used by subsequent access objects to access the base implementation.

type ArtifactSetContainerImpl

type ArtifactSetContainerImpl interface {
	ArtifactSetContainer
	View(main ...bool) (ArtifactSetContainer, error)
}

type ArtifactSetContainerInt

type ArtifactSetContainerInt ArtifactSetContainer

ArtifactSetContainerInt is the implementation interface for a provider.

type IndexImpl

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

func NewIndexForArtifact

func NewIndexForArtifact(a *ArtifactImpl) *IndexImpl

func (*IndexImpl) AddArtifact

func (a *IndexImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (access accessio.BlobAccess, err error)

func (*IndexImpl) AddBlob

func (i *IndexImpl) AddBlob(blob internal.BlobAccess) error

func (*IndexImpl) Artifact

func (i *IndexImpl) Artifact() *artdesc.Artifact

func (*IndexImpl) Blob

func (a *IndexImpl) Blob() (accessio.BlobAccess, error)

func (*IndexImpl) Digest

func (a *IndexImpl) Digest() digest.Digest

func (*IndexImpl) GetArtifact

func (i *IndexImpl) GetArtifact(digest digest.Digest) (internal.ArtifactAccess, error)

func (*IndexImpl) GetBlob

func (i *IndexImpl) GetBlob(digest digest.Digest) (internal.BlobAccess, error)

func (*IndexImpl) GetBlobDescriptor

func (i *IndexImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor

func (*IndexImpl) GetDescriptor

func (i *IndexImpl) GetDescriptor() *artdesc.Index

func (*IndexImpl) Index

func (i *IndexImpl) Index() (*artdesc.Index, error)

func (*IndexImpl) IsClosed

func (a *IndexImpl) IsClosed() bool

func (*IndexImpl) IsIndex

func (a *IndexImpl) IsIndex() bool

func (*IndexImpl) IsManifest

func (a *IndexImpl) IsManifest() bool

func (*IndexImpl) IsReadOnly

func (a *IndexImpl) IsReadOnly() bool

func (*IndexImpl) Manifest

func (i *IndexImpl) Manifest() (*artdesc.Manifest, error)

func (*IndexImpl) NewArtifact

func (a *IndexImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)

type ManifestImpl

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

func NewManifestForArtifact

func NewManifestForArtifact(a *ArtifactImpl) *ManifestImpl

func (*ManifestImpl) AddBlob

func (m *ManifestImpl) AddBlob(access cpi.BlobAccess) error

func (*ManifestImpl) AddLayer

func (m *ManifestImpl) AddLayer(blob cpi.BlobAccess, d *artdesc.Descriptor) (int, error)

func (*ManifestImpl) Artifact

func (m *ManifestImpl) Artifact() *artdesc.Artifact

func (ManifestImpl) Blob

func (a ManifestImpl) Blob() (accessio.BlobAccess, error)

func (ManifestImpl) Digest

func (a ManifestImpl) Digest() digest.Digest

func (*ManifestImpl) GetBlob

func (m *ManifestImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)

func (*ManifestImpl) GetBlobDescriptor

func (m *ManifestImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor

func (*ManifestImpl) GetConfigBlob

func (m *ManifestImpl) GetConfigBlob() (cpi.BlobAccess, error)

func (*ManifestImpl) GetDescriptor

func (m *ManifestImpl) GetDescriptor() *artdesc.Manifest

func (*ManifestImpl) Index

func (m *ManifestImpl) Index() (*artdesc.Index, error)

func (ManifestImpl) IsClosed

func (a ManifestImpl) IsClosed() bool

func (ManifestImpl) IsIndex

func (a ManifestImpl) IsIndex() bool

func (ManifestImpl) IsManifest

func (a ManifestImpl) IsManifest() bool

func (ManifestImpl) IsReadOnly

func (a ManifestImpl) IsReadOnly() bool

func (*ManifestImpl) Manifest

func (m *ManifestImpl) Manifest() (*artdesc.Manifest, error)

func (*ManifestImpl) SetConfigBlob

func (m *ManifestImpl) SetConfigBlob(blob cpi.BlobAccess, d *artdesc.Descriptor) error

Jump to

Keyboard shortcuts

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