index

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFile

func LoadFromFile(filePath string) (*index, error)

LoadFromFile parses an index from a file

Types

type Entry

type Entry struct {
	Version string `yaml:"version"`
}

Entry is for deserializing chart entries in a Helm repo index.yaml

type Index

type Index interface {
	// Versions returns a list of all published versions of the chart
	Versions(chartName string) []string
	// HasVersion returns true if the index contains the given version for the given chart
	HasVersion(chartName string, version string) bool
	// MostRecentVersion returns the most recent / highest semantic version of the chart in the index
	// returns "" if no version of the chart has been published yet
	MostRecentVersion(chartName string) string
}

Index represents a Helm repo's index.yaml

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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