repo

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ChartPackageFileExtension is the file extension used for chart packages
	ChartPackageFileExtension = "tgz"

	// ChartPackageContentType is the http content-type header for chart packages
	ChartPackageContentType = "application/x-tar"

	// ErrorInvalidChartPackage is raised when a chart package is invalid
	ErrorInvalidChartPackage = errors.New("invalid chart package")
)
View Source
var (
	// ProvenanceFileExtension is the file extension used for provenance files
	ProvenanceFileExtension = "tgz.prov"

	// ProvenanceFileContentType is the http content-type header for provenance files
	ProvenanceFileContentType = "application/pgp-signature"

	// ErrorInvalidProvenanceFile is raised when a provenance file is invalid
	ErrorInvalidProvenanceFile = errors.New("invalid provenance file")
)
View Source
var (
	// IndexFileContentType is the http content-type header for index.yaml
	IndexFileContentType = "application/x-yaml"
)

Functions

func ChartPackageFilenameFromContent

func ChartPackageFilenameFromContent(content []byte) (string, error)

ChartPackageFilenameFromContent returns a chart filename from binary content

func ChartPackageFilenameFromNameVersion

func ChartPackageFilenameFromNameVersion(name string, version string) string

ChartPackageFilenameFromNameVersion returns a chart filename from a name and version

func ChartVersionFromStorageObject

func ChartVersionFromStorageObject(object storage.Object) (*helm_repo.ChartVersion, error)

ChartVersionFromStorageObject returns a chart version from a storage object

func ProvenanceFilenameFromContent

func ProvenanceFilenameFromContent(content []byte) (string, error)

ProvenanceFilenameFromContent returns a provenance filename from binary content

func ProvenanceFilenameFromNameVersion

func ProvenanceFilenameFromNameVersion(name string, version string) string

ProvenanceFilenameFromNameVersion returns a provenance filename from a name and version

Types

type Index

type Index struct {
	*helm_repo.IndexFile
	Raw      []byte
	ChartURL string
}

Index represents the repository index (index.yaml)

func NewIndex

func NewIndex(chartURL string) *Index

NewIndex creates a new instance of Index

func (*Index) AddEntry

func (index *Index) AddEntry(chartVersion *helm_repo.ChartVersion)

AddEntry adds a chart version to index

func (*Index) HasEntry added in v0.2.5

func (index *Index) HasEntry(chartVersion *helm_repo.ChartVersion) bool

HasEntry checks if index has already an entry

func (*Index) Regenerate

func (index *Index) Regenerate() error

Regenerate sorts entries in index file and sets current time for generated key

func (*Index) RemoveEntry

func (index *Index) RemoveEntry(chartVersion *helm_repo.ChartVersion)

RemoveEntry removes a chart version from index

func (*Index) UpdateEntry

func (index *Index) UpdateEntry(chartVersion *helm_repo.ChartVersion)

UpdateEntry updates a chart version in index

Jump to

Keyboard shortcuts

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