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 = "ocm.software/ocm-core/api/oci/extensions/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 ¶
func NewRepository(ctx cpi.Context) *Repository
func (Repository) Close ¶
func (r Repository) Close() error
func (*Repository) Dup ¶
func (r *Repository) Dup() (cpi.Repository, error)
func (Repository) ExistsArtifact ¶
func (r Repository) ExistsArtifact(name string, version string) (bool, error)
func (*Repository) GetContext ¶
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 ¶
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.