intermediate

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIntermediateClient

func NewIntermediateClient(intermediateBundlesPath string) (client.ChartsReaderWriter, error)

NewIntermediateClient returns a ChartsReaderWriter object

Types

type BundlesDir

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

BundlesDir allows to operate a chart bundles directory It should implement pkg/client ChartsReaderWriter interface

func New

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

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

func (*BundlesDir) Fetch

func (bd *BundlesDir) Fetch(name string, version string) (string, error)

Fetch fetches a chart

func (*BundlesDir) GetChartDetails

func (bd *BundlesDir) GetChartDetails(name string, version string) (*types.ChartDetails, error)

GetChartDetails returns the details of a chart

func (*BundlesDir) Has

func (bd *BundlesDir) Has(name string, version string) (bool, error)

Has checks if a repo has a specific chart

func (*BundlesDir) List

func (bd *BundlesDir) List() ([]string, error)

List lists all chart names in a repo

func (*BundlesDir) ListChartVersions

func (bd *BundlesDir) ListChartVersions(name string) ([]string, error)

ListChartVersions lists all versions of a chart

func (*BundlesDir) Reload

func (bd *BundlesDir) Reload() error

Reload reloads the index

func (*BundlesDir) Upload

func (bd *BundlesDir) 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