Documentation
¶
Index ¶
- Variables
- func AdjustSize(d *artdesc.Descriptor, size int64) error
- func NewArtifact(container NamespaceAccessImpl, defs ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- func NewArtifactForBlob(container NamespaceAccessImpl, blob accessio.BlobAccess, closer ...io.Closer) (cpi.ArtifactAccess, error)
- func NewNamespaceAccess(namespace string, c NamespaceContainer, repo cpi.RepositoryViewManager, ...) (cpi.NamespaceAccess, error)
- type ArtifactAccessImpl
- func (a *ArtifactAccessImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (cpi.BlobAccess, error)
- func (a *ArtifactAccessImpl) AddBlob(access cpi.BlobAccess) error
- func (a *ArtifactAccessImpl) AddLayer(blob cpi.BlobAccess, d *cpi.Descriptor) (int, error)
- func (a *ArtifactAccessImpl) Artifact() *artdesc.Artifact
- func (a *ArtifactAccessImpl) Blob() (accessio.BlobAccess, error)
- func (a *ArtifactAccessImpl) Digest() digest.Digest
- func (a *ArtifactAccessImpl) GetArtifact(digest digest.Digest) (cpi.ArtifactAccess, error)
- func (a *ArtifactAccessImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (a *ArtifactAccessImpl) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
- func (a *ArtifactAccessImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (a *ArtifactAccessImpl) GetDescriptor() *artdesc.Artifact
- func (a *ArtifactAccessImpl) Index() (*artdesc.Index, error)
- func (a *ArtifactAccessImpl) IndexAccess(v cpi.ArtifactAccess) internal.IndexAccess
- func (a *ArtifactAccessImpl) IsIndex() bool
- func (a *ArtifactAccessImpl) IsManifest() bool
- func (a *ArtifactAccessImpl) IsReadOnly() bool
- func (a *ArtifactAccessImpl) Manifest() (*artdesc.Manifest, error)
- func (a *ArtifactAccessImpl) ManifestAccess(v cpi.ArtifactAccess) internal.ManifestAccess
- func (a *ArtifactAccessImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- type ArtifactSetBlobAccess
- func (a *ArtifactSetBlobAccess) AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error)
- func (a *ArtifactSetBlobAccess) AddBlob(blob cpi.BlobAccess) error
- func (a *ArtifactSetBlobAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (a *ArtifactSetBlobAccess) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
- func (a *ArtifactSetBlobAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (a *ArtifactSetBlobAccess) IsReadOnly() bool
- type BlobProvider
- type IndexAccess
- func (a *IndexAccess) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (access accessio.BlobAccess, err error)
- func (i *IndexAccess) AddBlob(blob internal.BlobAccess) error
- func (i *IndexAccess) Artifact() *artdesc.Artifact
- func (a *IndexAccess) Blob() (accessio.BlobAccess, error)
- func (a *IndexAccess) Digest() digest.Digest
- func (i *IndexAccess) GetArtifact(digest digest.Digest) (internal.ArtifactAccess, error)
- func (i *IndexAccess) GetBlob(digest digest.Digest) (internal.BlobAccess, error)
- func (i *IndexAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (i *IndexAccess) GetDescriptor() *artdesc.Index
- func (i *IndexAccess) Index() (*artdesc.Index, error)
- func (a *IndexAccess) IsIndex() bool
- func (a *IndexAccess) IsManifest() bool
- func (a *IndexAccess) IsReadOnly() bool
- func (i *IndexAccess) Manifest() (*artdesc.Manifest, error)
- func (i *IndexAccess) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
- type ManifestAccess
- func (m *ManifestAccess) AddBlob(access cpi.BlobAccess) error
- func (m *ManifestAccess) AddLayer(blob cpi.BlobAccess, d *artdesc.Descriptor) (int, error)
- func (m *ManifestAccess) Artifact() *artdesc.Artifact
- func (a *ManifestAccess) Blob() (accessio.BlobAccess, error)
- func (a *ManifestAccess) Digest() digest.Digest
- func (m *ManifestAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
- func (m *ManifestAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
- func (m *ManifestAccess) GetConfigBlob() (cpi.BlobAccess, error)
- func (m *ManifestAccess) GetDescriptor() *artdesc.Manifest
- func (m *ManifestAccess) Index() (*artdesc.Index, error)
- func (a *ManifestAccess) IsIndex() bool
- func (a *ManifestAccess) IsManifest() bool
- func (a *ManifestAccess) IsReadOnly() bool
- func (m *ManifestAccess) Manifest() (*artdesc.Manifest, error)
- func (m *ManifestAccess) SetConfigBlob(blob cpi.BlobAccess, d *artdesc.Descriptor) error
- type NamespaceAccessImpl
- type NamespaceContainer
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 NamespaceAccessImpl, defs ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
func NewArtifactForBlob ¶
func NewArtifactForBlob(container NamespaceAccessImpl, blob accessio.BlobAccess, closer ...io.Closer) (cpi.ArtifactAccess, error)
func NewNamespaceAccess ¶
func NewNamespaceAccess(namespace string, c NamespaceContainer, repo cpi.RepositoryViewManager, kind ...string) (cpi.NamespaceAccess, error)
Types ¶
type ArtifactAccessImpl ¶
type ArtifactAccessImpl struct { cpi.ArtifactAccessImplBase // contains filtered or unexported fields }
func (*ArtifactAccessImpl) AddArtifact ¶
func (a *ArtifactAccessImpl) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (cpi.BlobAccess, error)
func (*ArtifactAccessImpl) AddBlob ¶
func (a *ArtifactAccessImpl) AddBlob(access cpi.BlobAccess) error
func (*ArtifactAccessImpl) AddLayer ¶
func (a *ArtifactAccessImpl) AddLayer(blob cpi.BlobAccess, d *cpi.Descriptor) (int, error)
func (*ArtifactAccessImpl) Artifact ¶
func (a *ArtifactAccessImpl) Artifact() *artdesc.Artifact
func (*ArtifactAccessImpl) Blob ¶
func (a *ArtifactAccessImpl) Blob() (accessio.BlobAccess, error)
func (*ArtifactAccessImpl) GetArtifact ¶
func (a *ArtifactAccessImpl) GetArtifact(digest digest.Digest) (cpi.ArtifactAccess, error)
func (*ArtifactAccessImpl) GetBlob ¶
func (a *ArtifactAccessImpl) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
func (*ArtifactAccessImpl) GetBlobData ¶
func (a *ArtifactAccessImpl) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
func (*ArtifactAccessImpl) GetBlobDescriptor ¶
func (a *ArtifactAccessImpl) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
func (*ArtifactAccessImpl) GetDescriptor ¶
func (a *ArtifactAccessImpl) GetDescriptor() *artdesc.Artifact
func (*ArtifactAccessImpl) IndexAccess ¶
func (a *ArtifactAccessImpl) IndexAccess(v cpi.ArtifactAccess) internal.IndexAccess
func (*ArtifactAccessImpl) IsManifest ¶
func (a *ArtifactAccessImpl) IsManifest() bool
func (*ArtifactAccessImpl) IsReadOnly ¶
func (a *ArtifactAccessImpl) IsReadOnly() bool
func (*ArtifactAccessImpl) Manifest ¶
func (a *ArtifactAccessImpl) Manifest() (*artdesc.Manifest, error)
func (*ArtifactAccessImpl) ManifestAccess ¶
func (a *ArtifactAccessImpl) ManifestAccess(v cpi.ArtifactAccess) internal.ManifestAccess
func (*ArtifactAccessImpl) NewArtifact ¶
func (a *ArtifactAccessImpl) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
type ArtifactSetBlobAccess ¶
type ArtifactSetBlobAccess struct {
// contains filtered or unexported fields
}
func NewArtifactSetBlobAccess ¶
func NewArtifactSetBlobAccess(container NamespaceAccessImpl) *ArtifactSetBlobAccess
func (*ArtifactSetBlobAccess) AddArtifact ¶
func (a *ArtifactSetBlobAccess) AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error)
func (*ArtifactSetBlobAccess) AddBlob ¶
func (a *ArtifactSetBlobAccess) AddBlob(blob cpi.BlobAccess) error
func (*ArtifactSetBlobAccess) GetBlob ¶
func (a *ArtifactSetBlobAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
func (*ArtifactSetBlobAccess) GetBlobData ¶
func (a *ArtifactSetBlobAccess) GetBlobData(digest digest.Digest) (int64, cpi.DataAccess, error)
func (*ArtifactSetBlobAccess) GetBlobDescriptor ¶
func (a *ArtifactSetBlobAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
func (*ArtifactSetBlobAccess) IsReadOnly ¶
func (a *ArtifactSetBlobAccess) IsReadOnly() bool
type BlobProvider ¶
type BlobProvider interface { accessio.Allocatable cpi.BlobSource cpi.BlobSink }
BlobProvider manages the technical access to blobs.
type IndexAccess ¶
type IndexAccess struct {
// contains filtered or unexported fields
}
func NewIndexForArtifact ¶
func NewIndexForArtifact(master cpi.ArtifactAccess, a *ArtifactAccessImpl) *IndexAccess
func (*IndexAccess) AddArtifact ¶
func (a *IndexAccess) AddArtifact(art cpi.Artifact, platform *artdesc.Platform) (access accessio.BlobAccess, err error)
func (*IndexAccess) AddBlob ¶
func (i *IndexAccess) AddBlob(blob internal.BlobAccess) error
func (*IndexAccess) Artifact ¶
func (i *IndexAccess) Artifact() *artdesc.Artifact
func (*IndexAccess) Blob ¶
func (a *IndexAccess) Blob() (accessio.BlobAccess, error)
func (*IndexAccess) GetArtifact ¶
func (i *IndexAccess) GetArtifact(digest digest.Digest) (internal.ArtifactAccess, error)
func (*IndexAccess) GetBlob ¶
func (i *IndexAccess) GetBlob(digest digest.Digest) (internal.BlobAccess, error)
func (*IndexAccess) GetBlobDescriptor ¶
func (i *IndexAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
func (*IndexAccess) GetDescriptor ¶
func (i *IndexAccess) GetDescriptor() *artdesc.Index
func (*IndexAccess) IsManifest ¶
func (a *IndexAccess) IsManifest() bool
func (*IndexAccess) IsReadOnly ¶
func (a *IndexAccess) IsReadOnly() bool
func (*IndexAccess) NewArtifact ¶
func (i *IndexAccess) NewArtifact(art ...*artdesc.Artifact) (cpi.ArtifactAccess, error)
type ManifestAccess ¶
type ManifestAccess struct {
// contains filtered or unexported fields
}
func NewManifestForArtifact ¶
func NewManifestForArtifact(master cpi.ArtifactAccess, a *ArtifactAccessImpl) *ManifestAccess
func (*ManifestAccess) AddBlob ¶
func (m *ManifestAccess) AddBlob(access cpi.BlobAccess) error
func (*ManifestAccess) AddLayer ¶
func (m *ManifestAccess) AddLayer(blob cpi.BlobAccess, d *artdesc.Descriptor) (int, error)
func (*ManifestAccess) Artifact ¶
func (m *ManifestAccess) Artifact() *artdesc.Artifact
func (*ManifestAccess) Blob ¶
func (a *ManifestAccess) Blob() (accessio.BlobAccess, error)
func (*ManifestAccess) GetBlob ¶
func (m *ManifestAccess) GetBlob(digest digest.Digest) (cpi.BlobAccess, error)
func (*ManifestAccess) GetBlobDescriptor ¶
func (m *ManifestAccess) GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor
func (*ManifestAccess) GetConfigBlob ¶
func (m *ManifestAccess) GetConfigBlob() (cpi.BlobAccess, error)
func (*ManifestAccess) GetDescriptor ¶
func (m *ManifestAccess) GetDescriptor() *artdesc.Manifest
func (*ManifestAccess) IsManifest ¶
func (a *ManifestAccess) IsManifest() bool
func (*ManifestAccess) IsReadOnly ¶
func (a *ManifestAccess) IsReadOnly() bool
func (*ManifestAccess) SetConfigBlob ¶
func (m *ManifestAccess) SetConfigBlob(blob cpi.BlobAccess, d *artdesc.Descriptor) error
type NamespaceAccessImpl ¶
type NamespaceAccessImpl interface { cpi.NamespaceAccessImpl // GetBlobDescriptor(digest digest.Digest) *cpi.Descriptor IsReadOnly() bool WithContainer(container NamespaceContainer) NamespaceAccessImpl }
func NewNamespaceAccessImpl ¶
func NewNamespaceAccessImpl(namespace string, c NamespaceContainer, repo cpi.RepositoryViewManager) (NamespaceAccessImpl, error)
type NamespaceContainer ¶
type NamespaceContainer interface { SetImplementation(impl NamespaceAccessImpl) IsReadOnly() bool cpi.BlobSource cpi.BlobSink Close() error GetArtifact(i NamespaceAccessImpl, vers string) (cpi.ArtifactAccess, error) NewArtifact(i NamespaceAccessImpl, arts ...*artdesc.Artifact) (cpi.ArtifactAccess, error) AddArtifact(artifact cpi.Artifact, tags ...string) (access accessio.BlobAccess, err error) AddTags(digest digest.Digest, tags ...string) error ListTags() ([]string, error) HasArtifact(vers string) (bool, error) }
NamespaceContainer is the interface used by subsequent access objects to access the base implementation.
func GetArtifactSetContainer ¶
func GetArtifactSetContainer(i cpi.NamespaceAccessImpl) (NamespaceContainer, error)
Click to show internal directories.
Click to hide internal directories.