Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteSanitizedHelmChartsConfig ¶ added in v1.0.0
func WriteSanitizedHelmChartsConfig(cfg HelmChartsConfig, fileName string) error
func WriteSanitizedImagesConfig ¶ added in v0.7.0
func WriteSanitizedImagesConfig(cfg ImagesConfig, fileName string) error
Types ¶
type HelmChartsConfig ¶ added in v0.7.0
type HelmChartsConfig struct { Repositories map[string]HelmRepositorySyncConfig `yaml:"repositories,omitempty"` ChartURLs []string `yaml:"chartURLs,omitempty"` }
HelmChartsConfig contains all helm charts information read from the source YAML file.
func ParseHelmChartsConfigFile ¶ added in v0.7.0
func ParseHelmChartsConfigFile(configFile string) (HelmChartsConfig, error)
func (*HelmChartsConfig) Merge ¶ added in v1.0.0
func (c *HelmChartsConfig) Merge(cfg HelmChartsConfig) *HelmChartsConfig
func (HelmChartsConfig) SortedRepositoryNames ¶ added in v1.0.0
func (c HelmChartsConfig) SortedRepositoryNames() []string
type HelmRepositorySyncConfig ¶ added in v0.7.0
type HelmRepositorySyncConfig struct { // RepoURL is the URL for the repository. RepoURL string `yaml:"repoURL,omitempty"` // Username holds the username for the repository. Username string `yaml:"username,omitempty"` // Password holds the password for the repository. Password string `yaml:"password,omitempty"` // TLS verification mode (enabled by default) TLSVerify *bool `yaml:"tlsVerify,omitempty"` // Charts map charts name to slices with the chart versions. Charts map[string][]string `yaml:"charts,omitempty"` }
HelmRepositorySyncConfig contains information about a single repository, read from the source YAML file.
func (HelmRepositorySyncConfig) Clone ¶ added in v1.0.0
func (c HelmRepositorySyncConfig) Clone() HelmRepositorySyncConfig
func (HelmRepositorySyncConfig) SortedChartNames ¶ added in v1.0.0
func (c HelmRepositorySyncConfig) SortedChartNames() []string
type ImagesConfig ¶ added in v0.6.3
type ImagesConfig map[string]RegistrySyncConfig
ImagesConfig contains all registries information read from the source YAML file.
func ParseImagesConfigFile ¶ added in v0.6.3
func ParseImagesConfigFile(configFile string) (ImagesConfig, error)
func (*ImagesConfig) Merge ¶ added in v0.19.0
func (ic *ImagesConfig) Merge(cfg ImagesConfig) *ImagesConfig
func (ImagesConfig) SortedRegistryNames ¶ added in v0.6.3
func (ic ImagesConfig) SortedRegistryNames() []string
func (ImagesConfig) TotalImages ¶ added in v1.10.0
func (ic ImagesConfig) TotalImages() int
type RegistrySyncConfig ¶
type RegistrySyncConfig struct { // Images map images name to slices with the images' references (tags, digests) Images map[string][]string // TLS verification mode (enabled by default) TLSVerify *bool `yaml:"tlsVerify,omitempty"` // Username and password used to authenticate with the registry Credentials *types.DockerAuthConfig `yaml:"credentials,omitempty"` }
RegistrySyncConfig contains information about a single registry, read from the source YAML file.
func (RegistrySyncConfig) Clone ¶ added in v0.19.0
func (rsc RegistrySyncConfig) Clone() RegistrySyncConfig
func (RegistrySyncConfig) SortedImageNames ¶ added in v0.6.3
func (rsc RegistrySyncConfig) SortedImageNames() []string
func (RegistrySyncConfig) TotalImages ¶ added in v1.10.0
func (rsc RegistrySyncConfig) TotalImages() int
Click to show internal directories.
Click to hide internal directories.