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.
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
Click to show internal directories.
Click to hide internal directories.