composition

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 NewAccess

func NewAccess(name string) *Access

func (*Access) AddBlob

func (a *Access) AddBlob(blob blobaccess.BlobAccess) (string, error)

func (*Access) Close

func (a *Access) Close() error

func (*Access) ComponentLister

func (a *Access) ComponentLister() cpi.ComponentLister

func (*Access) ExistsComponentVersion

func (a *Access) ExistsComponentVersion(name string, version string) (bool, error)

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 (a *Access) IsReadOnly() bool

func (*Access) ListVersions

func (a *Access) ListVersions(comp string) ([]string, error)

func (*Access) SetReadOnly added in v0.9.0

func (a *Access) SetReadOnly()

type Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL