artifacthub

package
v0.0.0-...-64f3b2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_URL      = "https://artifacthub.io/api/v1"
	BASE_URL_HTML = "https://artifacthub.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableVersion

type AvailableVersion struct {
	Version string `json:"version"`
}

type ContainerImage

type ContainerImage struct {
	Image string `json:"image"`
}

type HelmChart

type HelmChart struct {
	Name                  string                 `json:"name"`
	Version               string                 `json:"version"`
	AppVersion            string                 `json:"app_version"`
	SecurityReportSummary *SecurityReportSummary `json:"security_report_summary,omitempty"`
	Repository            Repository             `json:"repository"`
	HtmlUrl               string
	AvailableVersions     []AvailableVersion `json:"available_versions"`
	ContainerImages       []ContainerImage   `json:"containers_images"`
}

func GetHelmChart

func GetHelmChart(repo, chart, version string) (HelmChart, error)

func GetHelmChartFromUrl

func GetHelmChartFromUrl(url string) (HelmChart, error)

func GetLatestHelmChart

func GetLatestHelmChart(repo, chart string) (HelmChart, error)

func SearchHelmCharts

func SearchHelmCharts(query string) ([]HelmChart, error)

type Repository

type Repository struct {
	Url              string `json:"url"`
	Name             string `json:"name"`
	OrganizationName string `json:"organization_name"`
}

type SearchResult

type SearchResult struct {
	Packages []HelmChart `json:"packages"`
}

type SecurityReportSummary

type SecurityReportSummary struct {
	Unknown  int `json:"unknown"`
	Low      int `json:"low"`
	Medium   int `json:"medium"`
	High     int `json:"high"`
	Critical int `json:"critical"`
}

Jump to

Keyboard shortcuts

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