artifacthub

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HelmChart represents the kind of helm chart in artifact hub
	HelmChart = iota
	// FalcoRules represents the kind of falco rules in artifact hub
	FalcoRules
	// OPAPolicies represents the kind of OPA policies in artifact hub
	OPAPolicies
	// OLMOperators represents the kind of OLM operators in artifact hub
	OLMOperators
)

Variables

View Source
var ErrHTTPNotFound = errors.New("not found")

ErrHTTPNotFound defines the return error when receiving 404 response code

Functions

This section is empty.

Types

type ChartInfo

type ChartInfo struct {
	Repository string `json:"repository"`
	Package    string `json:"package"`
	Version    string `json:"version"`
	ContentURL string `json:"url"`
}

ChartInfo ...

type ChartVersion

type ChartVersion struct {
	PackageID  string `json:"package_id"`
	Name       string `json:"name"`
	Version    string `json:"version"`
	ContentURL string `json:"content_url"`
}

ChartVersion ...

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client to interact with Artifact Hub

type Message

type Message struct {
	Message string `json:"message"`
}

Message ...

type Metadata

type Metadata struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
	Total  int `json:"total"`
}

Metadata ...

type Package

type Package struct {
	PackageID      string      `json:"package_id"`
	Name           string      `json:"name"`
	NormalizedName string      `json:"normalized_name"`
	Repository     *Repository `json:"repository"`
}

Package ...

type PackageData

type PackageData struct {
	Packages []*Package `json:"packages"`
}

PackageData ...

type PackageDetail

type PackageDetail struct {
	PackageID         string           `json:"package_id"`
	Name              string           `json:"name"`
	NormalizedName    string           `json:"normalized_name"`
	Version           string           `json:"version"`
	AppVersion        string           `json:"app_version"`
	Repository        RepositoryDetail `json:"repository"`
	AvailableVersions []*Version       `json:"available_versions,omitempty"`
}

PackageDetail ...

type PackageResponse

type PackageResponse struct {
	Data     PackageData `json:"data"`
	Metadata Metadata    `json:"metadata"`
}

PackageResponse ...

type Repository

type Repository struct {
	Kind         int    `json:"kind"`
	Name         string `json:"name"`
	RepositoryID string `json:"repository_id"`
}

Repository ...

type RepositoryDetail

type RepositoryDetail struct {
	URL               string `json:"url"`
	Kind              int    `json:"kind"`
	Name              string `json:"name"`
	RepositoryID      string `json:"repository_id"`
	VerifiedPublisher bool   `json:"verified_publisher"`
	Official          bool   `json:"official"`
	Private           bool   `json:"private"`
}

RepositoryDetail ...

type Version

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

Version ...

Jump to

Keyboard shortcuts

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