Documentation ¶
Index ¶
- Variables
- func AdjustSize(d *artdesc.Descriptor, size int64) error
- func NewArtifact(container ArtifactSetContainerImpl, defs ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- func NewArtifactForBlob(container ArtifactSetContainerImpl, blob accessio.BlobAccess) (cpi.ArtifactAccess, error)
- func NewArtifactSetContainer(c ArtifactSetContainerInt) (ArtifactSetContainer, ArtifactSetContainerImpl)
- type ArtifactImpl
- func (a *ArtifactImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (cpi.BlobAccess, error)
- func (a *ArtifactImpl) AddBlob(access cpi.BlobAccess) error
- func (a *ArtifactImpl) AddLayer(blob cpi.BlobAccess, d *cpi.Descriptor) (int, error)
- func (a *ArtifactImpl) Artifact() *artdesc.Artifact
- func (a ArtifactImpl) Blob() (accessio.BlobAccess, error)
- func (a *ArtifactImpl) Close() error
- func (a ArtifactImpl) Digest() digest.Digest
- func (a *ArtifactImpl) GetArtifact(digest digest.Digest) (cpi.ArtifactAccess, error)
- func (a *ArtifactImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (a *ArtifactImpl) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
- func (a *ArtifactImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (a *ArtifactImpl) GetDescriptor() *artdesc.Artifact
- func (a *ArtifactImpl) Index() (*artdesc.Index, error)
- func (a *ArtifactImpl) IndexAccess() internal.IndexAccess
- func (a ArtifactImpl) IsClosed() bool
- func (a ArtifactImpl) IsIndex() bool
- func (a ArtifactImpl) IsManifest() bool
- func (a ArtifactImpl) IsReadOnly() bool
- func (a *ArtifactImpl) Manifest() (*artdesc.Manifest, error)
- func (a *ArtifactImpl) ManifestAccess() internal.ManifestAccess
- func (a *ArtifactImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- type ArtifactSetAccess
- func (a *ArtifactSetAccess) AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error)
- func (a *ArtifactSetAccess) AddBlob(blob cpi.BlobAccess) error
- func (a *ArtifactSetAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (a *ArtifactSetAccess) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
- func (a *ArtifactSetAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (a *ArtifactSetAccess) IsClosed() bool
- func (a *ArtifactSetAccess) IsReadOnly() bool
- type ArtifactSetContainer
- type ArtifactSetContainerImpl
- type ArtifactSetContainerInt
- type IndexImpl
- func (a *IndexImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (access accessio.BlobAccess, err error)
- func (i *IndexImpl) AddBlob(blob internal.BlobAccess) error
- func (i *IndexImpl) Artifact() *artdesc.Artifact
- func (a *IndexImpl) Blob() (accessio.BlobAccess, error)
- func (a *IndexImpl) Digest() digest.Digest
- func (i *IndexImpl) GetArtifact(digest digest.Digest) (internal.ArtifactAccess, error)
- func (i *IndexImpl) GetBlob(digest digest.Digest) (internal.BlobAccess, error)
- func (i *IndexImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (i *IndexImpl) GetDescriptor() *artdesc.Index
- func (i *IndexImpl) Index() (*artdesc.Index, error)
- func (a *IndexImpl) IsClosed() bool
- func (a *IndexImpl) IsIndex() bool
- func (a *IndexImpl) IsManifest() bool
- func (a *IndexImpl) IsReadOnly() bool
- func (i *IndexImpl) Manifest() (*artdesc.Manifest, error)
- func (a *IndexImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- type ManifestImpl
- func (m *ManifestImpl) AddBlob(access cpi.BlobAccess) error
- func (m *ManifestImpl) AddLayer(blob cpi.BlobAccess, d *artdesc.Descriptor) (int, error)
- func (m *ManifestImpl) Artifact() *artdesc.Artifact
- func (a ManifestImpl) Blob() (accessio.BlobAccess, error)
- func (a ManifestImpl) Digest() digest.Digest
- func (m *ManifestImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (m *ManifestImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (m *ManifestImpl) GetConfigBlob() (cpi.BlobAccess, error)
- func (m *ManifestImpl) GetDescriptor() *artdesc.Manifest
- func (m *ManifestImpl) Index() (*artdesc.Index, error)
- func (a ManifestImpl) IsClosed() bool
- func (a ManifestImpl) IsIndex() bool
- func (a ManifestImpl) IsManifest() bool
- func (a ManifestImpl) IsReadOnly() bool
- func (m *ManifestImpl) Manifest() (*artdesc.Manifest, error)
- func (m *ManifestImpl) SetConfigBlob(blob cpi.BlobAccess, d *artdesc.Descriptor) error
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)
func NewArtifactSetContainer ¶
func NewArtifactSetContainer(c ArtifactSetContainerInt) (ArtifactSetContainer, ArtifactSetContainerImpl)
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) 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) IndexAccess ¶
func (a *ArtifactImpl) IndexAccess() internal.IndexAccess
func (ArtifactImpl) IsManifest ¶
func (a ArtifactImpl) IsManifest() bool
func (ArtifactImpl) IsReadOnly ¶
func (a ArtifactImpl) IsReadOnly() bool
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 (*IndexImpl) Blob ¶
func (a *IndexImpl) Blob() (accessio.BlobAccess, error)
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 (*IndexImpl) IsManifest ¶
func (a *IndexImpl) IsManifest() bool
func (*IndexImpl) IsReadOnly ¶
func (a *IndexImpl) IsReadOnly() bool
func (*IndexImpl) NewArtifact ¶
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) 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) IsManifest ¶
func (a ManifestImpl) IsManifest() bool
func (ManifestImpl) IsReadOnly ¶
func (a ManifestImpl) IsReadOnly() bool
func (*ManifestImpl) SetConfigBlob ¶
func (m *ManifestImpl) SetConfigBlob(blob cpi.BlobAccess, d *artdesc.Descriptor) error
Click to show internal directories.
Click to hide internal directories.