index

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	*repo.IndexFile
}

Index of a helm chart repository.

func New

func New() *Index

New returns a new index.

func (*Index) AddOrReplace added in v0.6.0

func (idx *Index) AddOrReplace(md *chart.Metadata, filename, baseURL, digest string) error

AddOrReplace is the same as Add but replaces the version if it exists instead of adding it to the list of versions.

func (*Index) Delete

func (idx *Index) Delete(name, version string) (*repo.ChartVersion, error)

Delete removes chart version from index and returns deleted item.

func (*Index) MarshalBinary

func (idx *Index) MarshalBinary() (data []byte, err error)

MarshalBinary encodes index to a binary form.

func (*Index) Reader

func (idx *Index) Reader() (io.Reader, error)

Reader returns io.Reader for index.

func (*Index) UnmarshalBinary

func (idx *Index) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes index from a binary form.

Jump to

Keyboard shortcuts

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