Documentation ¶
Overview ¶
Package sources contains logic for loading a bundle from a source of bundles
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBundleNotFound is returned when the specified bundle is not found ErrBundleNotFound = errors.New("bundle not found") )
Functions ¶
This section is empty.
Types ¶
type BundleSource ¶
type BundleSource interface { // GetBundle fetches a bundle from the source by namespace and name // ErrBundleNotFound is returned if the bundle cannot be found GetBundle(id mindpak.BundleID) (reader.BundleReader, error) // ListBundles lists all bundles known to this source ListBundles() ([]mindpak.BundleID, error) }
BundleSource contains methods for retrieving bundles. Implementations may load the Bundle from disk, an OCI registry, or any other place where bundles may be present. Bundles are returned as instances of the BundleReader interface.
func NewSourceFromTarGZ ¶
func NewSourceFromTarGZ(path string) (BundleSource, error)
NewSourceFromTarGZ creates a singleBundleSource from a .tar.gz file
Click to show internal directories.
Click to hide internal directories.