repo

package
v0.0.0-...-f6a9b3f Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrIndexOutOfDate occurs when trying to push a chart on a repository
	// that is being updated at the same time.
	ErrIndexOutOfDate = errors.New("index is out-of-date")

	// Debug is used to activate log output
	Debug bool
)

Functions

func Create

func Create(r *Repo) error

Create creates a new repository on GCS by uploading a blank index.yaml file. This function is idempotent.

Types

type Repo

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

Repo manages Helm repositories on Google Cloud Storage.

func Load

func Load(name string, gcs *storage.Client) (*Repo, error)

Load loads an existing repository known by Helm. Returns ErrNotFound if the repository is not found in helm repository entries.

func New

func New(path string, gcs *storage.Client) (*Repo, error)

New creates a new Repo object

func (Repo) PushChart

func (r Repo) PushChart(chartpath string, force, retry bool, public bool, publicURL string, bucketPath string, metadata map[string]string) error

PushChart adds a chart into the repository.

The index file on GCS will be updated and the file at "chartpath" will be uploaded to GCS. If the version of the chart is already indexed, it won't be uploaded unless "force" is set to true. The push will fail if the repository is updated at the same time, use "retry" to automatically reload the index of the repository.

func (Repo) RemoveChart

func (r Repo) RemoveChart(name, version string, retry bool) error

RemoveChart removes a chart from the repository If version is empty, all version will be deleted.

Jump to

Keyboard shortcuts

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