Documentation ¶
Index ¶
- Constants
- func Cleanup(ctx cpi.ContextProvider) error
- func NewComponentVersion(ctx cpi.ContextProvider, name, vers string) cpi.ComponentVersionAccess
- func NewRepository(ctxp cpi.ContextProvider, names ...string) cpi.Repository
- type Access
- func (a *Access) AddBlob(blob blobaccess.BlobAccess) (string, error)
- func (a *Access) Close() error
- func (a *Access) ComponentLister() cpi.ComponentLister
- func (a *Access) ExistsComponentVersion(name string, version string) (bool, error)
- func (a *Access) GetBlob(name string) (blobaccess.BlobAccess, error)
- func (a *Access) GetComponentVersion(comp, version string) (virtual.VersionAccess, error)
- func (a *Access) IsReadOnly() bool
- func (a *Access) ListVersions(comp string) ([]string, error)
- func (a *Access) SetReadOnly()
- type Index
- type Repositories
- type RepositorySpec
- type VersionAccess
- func (v *VersionAccess) AddBlob(blob cpi.BlobAccess) (string, error)
- func (v *VersionAccess) Close() error
- func (v *VersionAccess) GetBlob(name string) (cpi.DataAccess, error)
- func (v *VersionAccess) GetDescriptor() *compdesc.ComponentDescriptor
- func (v *VersionAccess) GetInexpensiveContentVersionIdentity(a cpi.AccessSpec) string
- func (v *VersionAccess) IsReadOnly() bool
- func (v *VersionAccess) SetReadOnly()
- func (v *VersionAccess) Update() error
Constants ¶
View Source
const ( Type = "Composition" TypeV1 = Type + runtime.VersionSeparator + "v1" )
View Source
const ATTR_REPOS = "ocm.software/ocm-core/api/ocm/extensions/repositories/composition"
Variables ¶
This section is empty.
Functions ¶
func Cleanup ¶
func Cleanup(ctx cpi.ContextProvider) error
func NewComponentVersion ¶
func NewComponentVersion(ctx cpi.ContextProvider, name, vers string) cpi.ComponentVersionAccess
func NewRepository ¶
func NewRepository(ctxp cpi.ContextProvider, names ...string) cpi.Repository
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
func (*Access) AddBlob ¶
func (a *Access) AddBlob(blob blobaccess.BlobAccess) (string, error)
func (*Access) ComponentLister ¶
func (a *Access) ComponentLister() cpi.ComponentLister
func (*Access) ExistsComponentVersion ¶
func (*Access) GetBlob ¶
func (a *Access) GetBlob(name string) (blobaccess.BlobAccess, error)
func (*Access) GetComponentVersion ¶
func (a *Access) GetComponentVersion(comp, version string) (virtual.VersionAccess, error)
func (*Access) IsReadOnly ¶
func (*Access) SetReadOnly ¶
func (a *Access) SetReadOnly()
type Repositories ¶
type Repositories struct {
// contains filtered or unexported fields
}
func (*Repositories) Finalize ¶
func (r *Repositories) Finalize() error
func (*Repositories) GetRepository ¶
func (r *Repositories) GetRepository(name string) cpi.Repository
func (*Repositories) SetRepository ¶
func (r *Repositories) SetRepository(name string, repo cpi.Repository)
type RepositorySpec ¶
type RepositorySpec struct { runtime.ObjectVersionedTypedObject Name string `json:"name"` }
func NewRepositorySpec ¶
func NewRepositorySpec(name string) *RepositorySpec
func (RepositorySpec) AsUniformSpec ¶
func (r RepositorySpec) AsUniformSpec(context internal.Context) *cpi.UniformRepositorySpec
func (*RepositorySpec) Repository ¶
func (r *RepositorySpec) Repository(ctx cpi.Context, credentials credentials.Credentials) (internal.Repository, error)
type VersionAccess ¶
type VersionAccess struct {
// contains filtered or unexported fields
}
func (*VersionAccess) AddBlob ¶
func (v *VersionAccess) AddBlob(blob cpi.BlobAccess) (string, error)
func (*VersionAccess) Close ¶
func (v *VersionAccess) Close() error
func (*VersionAccess) GetBlob ¶
func (v *VersionAccess) GetBlob(name string) (cpi.DataAccess, error)
func (*VersionAccess) GetDescriptor ¶
func (v *VersionAccess) GetDescriptor() *compdesc.ComponentDescriptor
func (*VersionAccess) GetInexpensiveContentVersionIdentity ¶
func (v *VersionAccess) GetInexpensiveContentVersionIdentity(a cpi.AccessSpec) string
func (*VersionAccess) IsReadOnly ¶
func (v *VersionAccess) IsReadOnly() bool
func (*VersionAccess) SetReadOnly ¶
func (v *VersionAccess) SetReadOnly()
func (*VersionAccess) Update ¶
func (v *VersionAccess) Update() error
Click to show internal directories.
Click to hide internal directories.