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) GetSpecification() cpi.RepositorySpec
- 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) 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 = "github.com/open-component-model/ocm/pkg/contexts/ocm/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) GetSpecification ¶ added in v0.13.0
func (a *Access) GetSpecification() cpi.RepositorySpec
func (*Access) IsReadOnly ¶
func (*Access) SetReadOnly ¶ added in v0.9.0
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) IsReadOnly ¶
func (v *VersionAccess) IsReadOnly() bool
func (*VersionAccess) SetReadOnly ¶ added in v0.9.0
func (v *VersionAccess) SetReadOnly()
func (*VersionAccess) Update ¶
func (v *VersionAccess) Update() error
Click to show internal directories.
Click to hide internal directories.