Documentation ¶
Index ¶
- Constants
- Variables
- func AdjustSize(d *artdesc.Descriptor, size int64) error
- func ErrBlobNotFound(digest digest.Digest) error
- func ErrUnknownArtefact(name, version string) error
- func FilterByNamespacePrefix(prefix string, list []string) []string
- func FilterChildren(closure bool, list []string) []string
- func IsErrBlobNotFound(err error) bool
- func NewArtefactStateHandler() accessobj.StateHandler
- func NewIndex(access ArtefactSetContainer, defs ...*artdesc.Index) (internal.IndexAccess, error)
- func NewIndexStateHandler() accessobj.StateHandler
- func NewManifestStateHandler() accessobj.StateHandler
- func RegisterRepositorySpecHandler(handler RepositorySpecHandler, types ...string)
- func RegisterRepositoryType(name string, atype RepositoryType)
- type Artefact
- type ArtefactAccess
- type ArtefactImpl
- func (a *ArtefactImpl) AddArtefact(art Artefact, platform *artdesc.Platform) (accessio.BlobAccess, error)
- func (a *ArtefactImpl) AddBlob(access BlobAccess) error
- func (a *ArtefactImpl) AddLayer(blob BlobAccess, d *Descriptor) (int, error)
- func (a *ArtefactImpl) Artefact() *artdesc.Artefact
- func (a *ArtefactImpl) Blob() (accessio.BlobAccess, error)
- func (a *ArtefactImpl) Close() error
- func (a *ArtefactImpl) Digest() digest.Digest
- func (a *ArtefactImpl) GetArtefact(digest digest.Digest) (ArtefactAccess, error)
- func (a *ArtefactImpl) GetBlob(digest digest.Digest) (BlobAccess, error)
- func (a *ArtefactImpl) GetBlobData(digest digest.Digest) (int64, DataAccess, error)
- func (a *ArtefactImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
- func (a *ArtefactImpl) GetDescriptor() *artdesc.Artefact
- func (a *ArtefactImpl) Index() (*artdesc.Index, error)
- func (a *ArtefactImpl) IndexAccess() internal.IndexAccess
- func (a *ArtefactImpl) IsClosed() bool
- func (a *ArtefactImpl) IsIndex() bool
- func (a *ArtefactImpl) IsManifest() bool
- func (a *ArtefactImpl) IsReadOnly() bool
- func (a *ArtefactImpl) Manifest() (*artdesc.Manifest, error)
- func (a *ArtefactImpl) ManifestAccess() internal.ManifestAccess
- func (a *ArtefactImpl) NewArtefact(art ...*artdesc.Artefact) (ArtefactAccess, error)
- type ArtefactProvider
- type ArtefactSetAccess
- func (a *ArtefactSetAccess) AddArtefact(artefact Artefact, tags ...string) (access accessio.BlobAccess, err error)
- func (a *ArtefactSetAccess) AddBlob(blob BlobAccess) error
- func (a *ArtefactSetAccess) GetBlob(digest digest.Digest) (BlobAccess, error)
- func (a *ArtefactSetAccess) GetBlobData(digest digest.Digest) (int64, DataAccess, error)
- func (a *ArtefactSetAccess) GetBlobDescriptor(digest digest.Digest) *Descriptor
- func (a *ArtefactSetAccess) IsClosed() bool
- func (a *ArtefactSetAccess) IsReadOnly() bool
- type ArtefactSetContainer
- type ArtefactSink
- type ArtefactSource
- type ArtefactStateHandler
- type BlobAccess
- type BlobSink
- type BlobSource
- type Context
- type ContextProvider
- type DataAccess
- type DefaultRepositoryType
- type Descriptor
- type GenericRepositorySpec
- type IndexAccess
- type IndexImpl
- func (a *IndexImpl) AddArtefact(art Artefact, platform *artdesc.Platform) (access accessio.BlobAccess, err error)
- func (i *IndexImpl) AddBlob(blob internal.BlobAccess) error
- func (i *IndexImpl) Artefact() *artdesc.Artefact
- func (a *IndexImpl) Blob() (accessio.BlobAccess, error)
- func (a *IndexImpl) Close() error
- func (a *IndexImpl) Digest() digest.Digest
- func (i *IndexImpl) GetArtefact(digest digest.Digest) (internal.ArtefactAccess, error)
- func (i *IndexImpl) GetBlob(digest digest.Digest) (internal.BlobAccess, error)
- func (i *IndexImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
- func (i *IndexImpl) GetDescriptor() *artdesc.Index
- func (i *IndexImpl) GetIndex(digest digest.Digest) (internal.IndexAccess, error)
- func (i *IndexImpl) GetManifest(digest digest.Digest) (internal.ManifestAccess, error)
- 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) NewArtefact(art ...*artdesc.Artefact) (ArtefactAccess, error)
- type IndexStateHandler
- type IntermediateRepositorySpecAspect
- type ManifestAccess
- type ManifestImpl
- func (m *ManifestImpl) AddBlob(access BlobAccess) error
- func (m *ManifestImpl) AddLayer(blob BlobAccess, d *artdesc.Descriptor) (int, error)
- func (m *ManifestImpl) Artefact() *artdesc.Artefact
- func (a *ManifestImpl) Blob() (accessio.BlobAccess, error)
- func (a *ManifestImpl) Close() error
- func (a *ManifestImpl) Digest() digest.Digest
- func (m *ManifestImpl) GetBlob(digest digest.Digest) (BlobAccess, error)
- func (m *ManifestImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
- func (m *ManifestImpl) GetConfigBlob() (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 BlobAccess, d *artdesc.Descriptor) error
- type ManifestStateHandler
- type NamespaceAccess
- type NamespaceLister
- type NopCloserArtefactProvider
- type Repository
- type RepositorySource
- type RepositorySpec
- type RepositorySpecHandler
- type RepositorySpecHandlers
- type RepositoryType
- type StringList
- type UniformRepositorySpec
Constants ¶
View Source
const ( KIND_OCIARTEFACT = internal.KIND_OCIARTEFACT KIND_MEDIATYPE = accessio.KIND_MEDIATYPE KIND_BLOB = accessio.KIND_BLOB )
View Source
const CONTEXT_TYPE = internal.CONTEXT_TYPE
View Source
const CommonTransportFormat = internal.CommonTransportFormat
Variables ¶
View Source
var DefaultContext = internal.DefaultContext
View Source
var ErrNoIndex = errors.New("manifest does not support access to subsequent artefacts")
Functions ¶
func AdjustSize ¶
func AdjustSize(d *artdesc.Descriptor, size int64) error
func ErrBlobNotFound ¶
func ErrBlobNotFound(digest digest.Digest) error
func ErrUnknownArtefact ¶
func FilterByNamespacePrefix ¶
func FilterChildren ¶
func IsErrBlobNotFound ¶
func NewArtefactStateHandler ¶
func NewArtefactStateHandler() accessobj.StateHandler
func NewIndex ¶
func NewIndex(access ArtefactSetContainer, defs ...*artdesc.Index) (internal.IndexAccess, error)
func NewIndexStateHandler ¶
func NewIndexStateHandler() accessobj.StateHandler
func NewManifestStateHandler ¶
func NewManifestStateHandler() accessobj.StateHandler
func RegisterRepositorySpecHandler ¶
func RegisterRepositorySpecHandler(handler RepositorySpecHandler, types ...string)
func RegisterRepositoryType ¶
func RegisterRepositoryType(name string, atype RepositoryType)
Types ¶
type ArtefactAccess ¶
type ArtefactAccess = internal.ArtefactAccess
func NewArtefact ¶
func NewArtefact(access ArtefactSetContainer, defs ...*artdesc.Artefact) (ArtefactAccess, error)
type ArtefactImpl ¶
type ArtefactImpl struct {
// contains filtered or unexported fields
}
func NewArtefactForBlob ¶
func NewArtefactForBlob(access ArtefactSetContainer, blob accessio.BlobAccess) (*ArtefactImpl, error)
func NewArtefactForProviderBlob ¶
func NewArtefactForProviderBlob(access ArtefactSetContainer, p ArtefactProvider, blob accessio.BlobAccess) (*ArtefactImpl, error)
func (*ArtefactImpl) AddArtefact ¶
func (a *ArtefactImpl) AddArtefact(art Artefact, platform *artdesc.Platform) (accessio.BlobAccess, error)
func (*ArtefactImpl) AddBlob ¶
func (a *ArtefactImpl) AddBlob(access BlobAccess) error
func (*ArtefactImpl) AddLayer ¶
func (a *ArtefactImpl) AddLayer(blob BlobAccess, d *Descriptor) (int, error)
func (*ArtefactImpl) Artefact ¶
func (a *ArtefactImpl) Artefact() *artdesc.Artefact
func (*ArtefactImpl) Blob ¶
func (a *ArtefactImpl) Blob() (accessio.BlobAccess, error)
func (*ArtefactImpl) GetArtefact ¶
func (a *ArtefactImpl) GetArtefact(digest digest.Digest) (ArtefactAccess, error)
func (*ArtefactImpl) GetBlob ¶
func (a *ArtefactImpl) GetBlob(digest digest.Digest) (BlobAccess, error)
func (*ArtefactImpl) GetBlobData ¶
func (a *ArtefactImpl) GetBlobData(digest digest.Digest) (int64, DataAccess, error)
func (*ArtefactImpl) GetBlobDescriptor ¶
func (a *ArtefactImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
func (*ArtefactImpl) GetDescriptor ¶
func (a *ArtefactImpl) GetDescriptor() *artdesc.Artefact
func (*ArtefactImpl) IndexAccess ¶
func (a *ArtefactImpl) IndexAccess() internal.IndexAccess
func (*ArtefactImpl) IsManifest ¶
func (a *ArtefactImpl) IsManifest() bool
func (*ArtefactImpl) IsReadOnly ¶
func (a *ArtefactImpl) IsReadOnly() bool
func (*ArtefactImpl) ManifestAccess ¶
func (a *ArtefactImpl) ManifestAccess() internal.ManifestAccess
func (*ArtefactImpl) NewArtefact ¶
func (a *ArtefactImpl) NewArtefact(art ...*artdesc.Artefact) (ArtefactAccess, error)
type ArtefactProvider ¶
type ArtefactProvider interface { IsClosed() bool IsReadOnly() bool GetBlobDescriptor(digest digest.Digest) *Descriptor Close() error BlobSource BlobSink // GetArtefact is used to access nested artefacts (only) GetArtefact(digest digest.Digest) (ArtefactAccess, error) // AddArtefact is used to add nested artefacts (only) AddArtefact(art Artefact) (access accessio.BlobAccess, err error) }
ArtefactProvider manages the technical access to a dedicated artefact.
func NewNopCloserArtefactProvider ¶
func NewNopCloserArtefactProvider(p ArtefactSetContainer) ArtefactProvider
type ArtefactSetAccess ¶
type ArtefactSetAccess struct {
// contains filtered or unexported fields
}
func NewArtefactSetAccess ¶
func NewArtefactSetAccess(container ArtefactSetContainer) *ArtefactSetAccess
func (*ArtefactSetAccess) AddArtefact ¶
func (a *ArtefactSetAccess) AddArtefact(artefact Artefact, tags ...string) (access accessio.BlobAccess, err error)
func (*ArtefactSetAccess) AddBlob ¶
func (a *ArtefactSetAccess) AddBlob(blob BlobAccess) error
func (*ArtefactSetAccess) GetBlob ¶
func (a *ArtefactSetAccess) GetBlob(digest digest.Digest) (BlobAccess, error)
func (*ArtefactSetAccess) GetBlobData ¶
func (a *ArtefactSetAccess) GetBlobData(digest digest.Digest) (int64, DataAccess, error)
func (*ArtefactSetAccess) GetBlobDescriptor ¶
func (a *ArtefactSetAccess) GetBlobDescriptor(digest digest.Digest) *Descriptor
func (*ArtefactSetAccess) IsClosed ¶
func (a *ArtefactSetAccess) IsClosed() bool
func (*ArtefactSetAccess) IsReadOnly ¶
func (a *ArtefactSetAccess) IsReadOnly() bool
type ArtefactSetContainer ¶
type ArtefactSetContainer interface { IsReadOnly() bool IsClosed() bool Close() error GetBlobDescriptor(digest digest.Digest) *Descriptor GetBlobData(digest digest.Digest) (int64, DataAccess, error) AddBlob(blob BlobAccess) error GetArtefact(vers string) (ArtefactAccess, error) AddArtefact(artefact Artefact, tags ...string) (access accessio.BlobAccess, err error) NewArtefactProvider(state accessobj.State) (ArtefactProvider, error) }
ArtefactSetContainer is the interface used by subsequent access objects to access the base implementation.
func NewArtefactSetContainer ¶
func NewArtefactSetContainer(c ArtefactSetContainer) ArtefactSetContainer
type ArtefactSink ¶
type ArtefactSink = internal.ArtefactSink
type ArtefactSource ¶
type ArtefactSource = internal.ArtefactSource
type ArtefactStateHandler ¶
type ArtefactStateHandler struct{}
func (ArtefactStateHandler) Decode ¶
func (i ArtefactStateHandler) Decode(data []byte) (interface{}, error)
func (ArtefactStateHandler) Encode ¶
func (i ArtefactStateHandler) Encode(d interface{}) ([]byte, error)
func (ArtefactStateHandler) Equivalent ¶
func (i ArtefactStateHandler) Equivalent(a, b interface{}) bool
func (ArtefactStateHandler) Initial ¶
func (i ArtefactStateHandler) Initial() interface{}
type BlobAccess ¶
type BlobAccess = internal.BlobAccess
type BlobSource ¶
type BlobSource = internal.BlobSource
type Context ¶
func New ¶
func New(m ...datacontext.BuilderMode) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type DataAccess ¶
type DataAccess = internal.DataAccess
type DefaultRepositoryType ¶
type DefaultRepositoryType struct { runtime.ObjectVersionedType runtime.TypedObjectDecoder }
type Descriptor ¶
type Descriptor = ociv1.Descriptor
type GenericRepositorySpec ¶
type GenericRepositorySpec = internal.GenericRepositorySpec
func ToGenericRepositorySpec ¶
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error)
type IndexAccess ¶
type IndexAccess = internal.IndexAccess
type IndexImpl ¶
type IndexImpl struct {
// contains filtered or unexported fields
}
func NewIndexForArtefact ¶
func NewIndexForArtefact(a *ArtefactImpl) *IndexImpl
func (*IndexImpl) AddArtefact ¶
func (*IndexImpl) Blob ¶
func (a *IndexImpl) Blob() (accessio.BlobAccess, error)
func (*IndexImpl) GetArtefact ¶
func (i *IndexImpl) GetArtefact(digest digest.Digest) (internal.ArtefactAccess, error)
func (*IndexImpl) GetBlob ¶
func (i *IndexImpl) GetBlob(digest digest.Digest) (internal.BlobAccess, error)
func (*IndexImpl) GetBlobDescriptor ¶
func (i *IndexImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
func (*IndexImpl) GetDescriptor ¶
func (*IndexImpl) GetIndex ¶
func (i *IndexImpl) GetIndex(digest digest.Digest) (internal.IndexAccess, error)
func (*IndexImpl) GetManifest ¶
func (i *IndexImpl) GetManifest(digest digest.Digest) (internal.ManifestAccess, error)
func (*IndexImpl) IsManifest ¶
func (a *IndexImpl) IsManifest() bool
func (*IndexImpl) IsReadOnly ¶
func (a *IndexImpl) IsReadOnly() bool
func (*IndexImpl) NewArtefact ¶
func (a *IndexImpl) NewArtefact(art ...*artdesc.Artefact) (ArtefactAccess, error)
type IndexStateHandler ¶
type IndexStateHandler struct{}
func (IndexStateHandler) Decode ¶
func (i IndexStateHandler) Decode(data []byte) (interface{}, error)
func (IndexStateHandler) Encode ¶
func (i IndexStateHandler) Encode(d interface{}) ([]byte, error)
func (IndexStateHandler) Equivalent ¶
func (i IndexStateHandler) Equivalent(a, b interface{}) bool
func (IndexStateHandler) Initial ¶
func (i IndexStateHandler) Initial() interface{}
type IntermediateRepositorySpecAspect ¶
type IntermediateRepositorySpecAspect = internal.IntermediateRepositorySpecAspect
type ManifestAccess ¶
type ManifestAccess = internal.ManifestAccess
type ManifestImpl ¶
type ManifestImpl struct {
// contains filtered or unexported fields
}
func NewManifest ¶
func NewManifest(access ArtefactSetContainer, defs ...*artdesc.Manifest) (*ManifestImpl, error)
func NewManifestForArtefact ¶
func NewManifestForArtefact(a *ArtefactImpl) *ManifestImpl
func (*ManifestImpl) AddBlob ¶
func (m *ManifestImpl) AddBlob(access BlobAccess) error
func (*ManifestImpl) AddLayer ¶
func (m *ManifestImpl) AddLayer(blob BlobAccess, d *artdesc.Descriptor) (int, error)
func (*ManifestImpl) Artefact ¶
func (m *ManifestImpl) Artefact() *artdesc.Artefact
func (*ManifestImpl) Blob ¶
func (a *ManifestImpl) Blob() (accessio.BlobAccess, error)
func (*ManifestImpl) GetBlob ¶
func (m *ManifestImpl) GetBlob(digest digest.Digest) (BlobAccess, error)
func (*ManifestImpl) GetBlobDescriptor ¶
func (m *ManifestImpl) GetBlobDescriptor(digest digest.Digest) *Descriptor
func (*ManifestImpl) GetConfigBlob ¶
func (m *ManifestImpl) GetConfigBlob() (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 BlobAccess, d *artdesc.Descriptor) error
type ManifestStateHandler ¶
type ManifestStateHandler struct{}
func (ManifestStateHandler) Decode ¶
func (i ManifestStateHandler) Decode(data []byte) (interface{}, error)
func (ManifestStateHandler) Encode ¶
func (i ManifestStateHandler) Encode(d interface{}) ([]byte, error)
func (ManifestStateHandler) Equivalent ¶
func (i ManifestStateHandler) Equivalent(a, b interface{}) bool
func (ManifestStateHandler) Initial ¶
func (i ManifestStateHandler) Initial() interface{}
type NamespaceAccess ¶
type NamespaceAccess = internal.NamespaceAccess
type NamespaceLister ¶
type NamespaceLister = internal.NamespaceLister
type NopCloserArtefactProvider ¶
type NopCloserArtefactProvider struct {
ArtefactSetContainer
}
func (*NopCloserArtefactProvider) AddArtefact ¶
func (p *NopCloserArtefactProvider) AddArtefact(art Artefact) (access accessio.BlobAccess, err error)
func (*NopCloserArtefactProvider) Close ¶
func (p *NopCloserArtefactProvider) Close() error
func (*NopCloserArtefactProvider) GetArtefact ¶
func (p *NopCloserArtefactProvider) GetArtefact(digest digest.Digest) (ArtefactAccess, error)
type Repository ¶
type Repository = internal.Repository
type RepositorySource ¶
type RepositorySource = internal.RepositorySource
type RepositorySpec ¶
type RepositorySpec = internal.RepositorySpec
type RepositorySpecHandler ¶
type RepositorySpecHandler = internal.RepositorySpecHandler
type RepositorySpecHandlers ¶
type RepositorySpecHandlers = internal.RepositorySpecHandlers
type RepositoryType ¶
type RepositoryType = internal.RepositoryType
func NewRepositoryType ¶
func NewRepositoryType(name string, proto RepositorySpec) RepositoryType
type StringList ¶
type StringList []string
func (*StringList) Add ¶
func (s *StringList) Add(n string)
type UniformRepositorySpec ¶
type UniformRepositorySpec = internal.UniformRepositorySpec
func UniformRepositorySpecForHostURL ¶
func UniformRepositorySpecForHostURL(typ string, host string) *UniformRepositorySpec
Source Files ¶
Click to show internal directories.
Click to hide internal directories.