Documentation ¶
Index ¶
- Constants
- func EnrichPackageFromAnnotations(p *hub.Package, annotations map[string]string) error
- func EnrichPackageFromChart(p *hub.Package, chrt *chart.Chart)
- func LoadChartArchive(ctx context.Context, u *url.URL, o *LoadChartArchiveOptions) (*chart.Chart, error)
- type LoadChartArchiveOptions
- type TrackerSource
Constants ¶
View Source
const ( ChartContentLayerMediaType = "application/vnd.cncf.helm.chart.content.v1.tar+gzip" ChartProvenanceLayerMediaType = "application/vnd.cncf.helm.chart.provenance.v1.prov" )
Variables ¶
This section is empty.
Functions ¶
func EnrichPackageFromAnnotations ¶
EnrichPackageFromAnnotations adds some extra information to the package from the provided annotations.
func EnrichPackageFromChart ¶
EnrichPackageFromChart adds some extra information to the package from the chart archive.
func LoadChartArchive ¶
func LoadChartArchive(ctx context.Context, u *url.URL, o *LoadChartArchiveOptions) (*chart.Chart, error)
LoadChartArchive loads a chart from a remote archive located at the url provided.
Types ¶
type LoadChartArchiveOptions ¶
type LoadChartArchiveOptions struct { Hc hub.HTTPClient Op hub.OCIPuller Username string Password string }
LoadChartArchiveOptions represents some options that can be provided to load a chart archive from its remote location.
type TrackerSource ¶
type TrackerSource struct {
// contains filtered or unexported fields
}
TrackerSource is a hub.TrackerSource implementation for Helm repositories.
func NewTrackerSource ¶
func NewTrackerSource(i *hub.TrackerSourceInput, opts ...func(s *TrackerSource)) *TrackerSource
NewTrackerSource creates a new TrackerSource instance.
func (*TrackerSource) GetPackagesAvailable ¶
func (s *TrackerSource) GetPackagesAvailable() (map[string]*hub.Package, error)
GetPackagesAvailable implements the TrackerSource interface.
Click to show internal directories.
Click to hide internal directories.