Documentation
¶
Overview ¶
Package index is the format of a marketplace's signed index.json: every plugin, its versions, the manifest hash and the per-platform artifacts. The marketplace produces it, lockfile consumes it.
Index ¶
Constants ¶
View Source
const Schema = 1
Schema is the only index schema this package reads.
Variables ¶
View Source
var ErrNotFound = errors.New("index: plugin version not found")
ErrNotFound is returned by Find for an unknown plugin or version.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
OS string `json:"os"`
Arch string `json:"arch"`
URL string `json:"url"`
SHA256 string `json:"sha256"`
BundleURL string `json:"bundle_url"`
}
Artifact is one built binary; BundleURL is its cosign bundle.
type Index ¶
type Index struct {
Schema int `json:"schema"`
Marketplace string `json:"marketplace"`
Generated time.Time `json:"generated"`
Plugins []Plugin `json:"plugins"`
}
type Version ¶
type Version struct {
Version string `json:"version"`
ManifestURL string `json:"manifest_url"`
ManifestSHA256 string `json:"manifest_sha256"`
// ManifestBundleURL is the cosign bundle of plugin.toml.
ManifestBundleURL string `json:"manifest_bundle_url"`
Yanked bool `json:"yanked"`
Artifacts []Artifact `json:"artifacts"`
}
Click to show internal directories.
Click to hide internal directories.