empty

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: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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