mirror

package
v0.0.64 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartDefinition

type ChartDefinition struct {
	Name    string // Name of the chart in form "<repo>/<name>", eg. "bitnami/mongodb"
	Version string // Version of the chart, eg. "1.2.3"
	// contains filtered or unexported fields
}

Struct used for deserializing chart definitions in mirror configuration

func (ChartDefinition) ChartName

func (c ChartDefinition) ChartName() string

Name of the chart. Eg. "agora"

func (ChartDefinition) RepoName

func (c ChartDefinition) RepoName() string

Name of the repo. Eg. "terra-helm"

type Mirror

type Mirror interface {
	// ImportToMirror uploads configured charts to the GCS repository.
	// If a given chart version already exists in the repo, it won't be imported.
	// It returns a slice of ChartDefinitions representing the charts that were imported, if any.
	ImportToMirror() (imported []ChartDefinition, err error)
}

Mirror contains logic for mirror-hosting third-party Helm charts in a GCS Helm repository. Given a config file with a list of charts in public repositories, it will download the charts locally and upload them to a GCS bucket repository.

func NewMirror

func NewMirror(publisher publish.Publisher, shellRunner shell.Runner, configFile string) (Mirror, error)

type RepositoryDefinition

type RepositoryDefinition struct {
	Name string // Repository name, eg. "bitnami"
	Url  string // Repository url, eg. "https://charts.bitnami.com/bitnami"
}

Struct used for deserializing repo definitions in mirror configuration

Jump to

Keyboard shortcuts

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