# Functions
GetBranch returns the branch configured in the repository or the default one if none was provided.
NewErrorsCollector creates a new ErrorsCollector instance.
NewManager creates a new Manager instance.
SchemeIsHTTP is a helper that checks if the scheme of the url provided is http or https.
SchemeIsOCI is a helper that checks if the scheme of the url provided is oci.
WithHelmIndexLoader allows providing a specific HelmIndexLoader implementation for a Manager instance.
WithOCIPuller allows providing a specific OCIPuller implementation for a Manager instance.
WithOCITagsGetter allows providing a specific OCITagsGetter implementation for a Manager instance.
# Constants
DefaultBranch represents the branch used by default when cloning a repository if no branch has been configured on it.
MetadataLayerMediaType represents the media type used for the layer that contains the repository metadata in an OCI image.
Scanner represents an errors collector for a scanner instance.
Tracker represents an errors collector for a tracker instance.
# Variables
ErrInvalidMetadata indicates that the repository metadata is not valid.
ErrMetadataNotFound indicates that the repository metadata was not found.
ErrSchemeNotSupported error indicates that the scheme used in the repository url is not supported.
GitRepoURLRE is a regexp used to validate and parse an http based git repository URL.
# Structs
Cloner is a hub.RepositoryCloner implementation.
ClonerMock is a mock implementation of the RepositoryCloner interface.
ErrorsCollector is in charge of collecting errors that happen while repositories are being processed.
ErrorsCollectorMock is mock ErrorsCollector implementation.
HelmIndexLoader provides a mechanism to load a Helm repository index file, verifying it is valid.
HelmIndexLoaderMock is a mock implementation of the HelmIndexLoader interface.
Manager provides an API to manage repositories.
ManagerMock is a mock implementation of the RepositoryManager interface.
OLMOCIExporter provides a mechanism to export the packages available in an OLM repository stored in an OCI registry.
OLMOCIExporterMock is a mock implementation of the OLMOCIExporter interface.
# Type aliases
ErrorsCollectorKind represents the kind of a given errors collector.