Documentation ¶
Index ¶
- Constants
- type Repository
- func (r Repository) Close() error
- func (r *Repository) Dup() (cpi.Repository, error)
- func (r Repository) ExistsArtifact(name string, version string) (bool, error)
- func (r *Repository) GetContext() cpi.Context
- func (r *Repository) GetNamespaces(prefix string, closure bool) ([]string, error)
- func (r Repository) GetSpecification() cpi.RepositorySpec
- func (r *Repository) IsClosed() bool
- func (r Repository) LookupArtifact(name string, version string) (cpi.ArtifactAccess, error)
- func (r Repository) LookupNamespace(name string) (cpi.NamespaceAccess, error)
- func (r *Repository) NamespaceLister() cpi.NamespaceLister
- func (r *Repository) NumNamespaces(prefix string) (int, error)
- type RepositorySpec
Constants ¶
View Source
const ( Type = "Empty" TypeV1 = Type + runtime.VersionSeparator + "v1" )
View Source
const ATTR_REPOS = "github.com/open-component-model/ocm/pkg/contexts/oci/repositories/empty"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶ added in v0.3.0
func NewRepository(ctx cpi.Context) *Repository
func (Repository) Close ¶
func (r Repository) Close() error
func (*Repository) Dup ¶ added in v0.3.0
func (r *Repository) Dup() (cpi.Repository, error)
func (Repository) ExistsArtifact ¶
func (r Repository) ExistsArtifact(name string, version string) (bool, error)
func (*Repository) GetContext ¶ added in v0.3.0
func (r *Repository) GetContext() cpi.Context
func (*Repository) GetNamespaces ¶
func (r *Repository) GetNamespaces(prefix string, closure bool) ([]string, error)
func (Repository) GetSpecification ¶
func (r Repository) GetSpecification() cpi.RepositorySpec
func (*Repository) IsClosed ¶ added in v0.3.0
func (r *Repository) IsClosed() bool
func (Repository) LookupArtifact ¶
func (r Repository) LookupArtifact(name string, version string) (cpi.ArtifactAccess, error)
func (Repository) LookupNamespace ¶
func (r Repository) LookupNamespace(name string) (cpi.NamespaceAccess, error)
func (*Repository) NamespaceLister ¶
func (r *Repository) NamespaceLister() cpi.NamespaceLister
func (*Repository) NumNamespaces ¶
func (r *Repository) NumNamespaces(prefix string) (int, error)
type RepositorySpec ¶
type RepositorySpec struct {
runtime.ObjectVersionedType `json:",inline"`
}
RepositorySpec describes an OCI registry interface backed by an oci registry.
func NewRepositorySpec ¶
func NewRepositorySpec() *RepositorySpec
NewRepositorySpec creates a new RepositorySpec.
func (*RepositorySpec) GetType ¶
func (a *RepositorySpec) GetType() string
func (*RepositorySpec) Name ¶
func (a *RepositorySpec) Name() string
func (*RepositorySpec) Repository ¶
func (a *RepositorySpec) Repository(ctx cpi.Context, creds credentials.Credentials) (cpi.Repository, error)
func (*RepositorySpec) UniformRepositorySpec ¶
func (a *RepositorySpec) UniformRepositorySpec() *cpi.UniformRepositorySpec
Click to show internal directories.
Click to hide internal directories.