package
1.20.0
Repository: https://github.com/artifacthub/hub.git
Documentation: pkg.go.dev

# Functions

BuildKey returns a key that identifies a concrete package version.
GetPackageMetadata reads, parses and validates the package metadata file provided.
NewManager creates a new Manager instance.
New creates a new ViewsTracker instance.
NormalizeChange normalizes some values of the change provided when needed.
ParseKey parses a key identifying a package version and returns its name and version.
PreparePackageFromMetadata prepares a Package struct that will be used to proceed with a package registration from the PackageMetadata provided by the publisher.
ValidateAnnotations checks if the provided annotations are valid.
ValidateChange validates if the provided change is valid.
ValidateContainersImages checks if the provided containers images are valid.
ValidatePackageMetadata validates if the package metadata provided is valid.
WithFlushFrequency allows configuring the views tracker flush frequency.

# Variables

ErrInvalidMetadata indicates that the metadata provided is not valid.

# Structs

Manager provides an API to manage packages.
ManagerMock is a mock implementation of the PackageManager interface.
ViewsTracker aggregates packages views that are periodically flushed to the database.
ViewsTrackerMock is a mock implementation of the ViewsTracker interface.