local

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo allows to operate a chart repository.

func New

func New(dir string) (*Repo, error)

New creates a Repo object from an api.Repo object.

func (*Repo) Fetch

func (r *Repo) Fetch(name string, version string) (string, error)

Fetch fetches a chart

func (*Repo) GetChartDetails

func (r *Repo) GetChartDetails(name string, version string) (*types.ChartDetails, error)

GetChartDetails returns the details of a chart

func (*Repo) Has

func (r *Repo) Has(name string, version string) (bool, error)

Has checks if a repo has a specific chart

func (*Repo) List

func (r *Repo) List() ([]string, error)

List lists all chart names in a repo

func (*Repo) ListChartVersions

func (r *Repo) ListChartVersions(name string) ([]string, error)

ListChartVersions lists all versions of a chart

func (*Repo) Reload

func (r *Repo) Reload() error

Reload reloads the index

func (*Repo) Upload

func (r *Repo) Upload(filepath string, metadata *chart.Metadata) error

Upload uploads a chart to the repo

Jump to

Keyboard shortcuts

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