Documentation
¶
Index ¶
- Variables
- func ConvertToHelmMirrors(configs []MirrorConfigSection) []helm.Mirror
- func LoadViperConfiguration(rc helm.RegistryClient) (*viper.Viper, error)
- func ProvideHelmSettings() *cli.EnvSettings
- func ProvideLogger() *slog.Logger
- func SetupHelm(settings *cli.EnvSettings, charts ChartSetupper, setters ...helm.Option) (*helm.ChartCollection, error)
- type ChartSetupper
- type EnvironmentSetter
- type ImportConfigSection
- type MirrorConfigSection
- type ParserConfigSection
Constants ¶
This section is empty.
Variables ¶
View Source
var HelmSettingsModule = fx.Provide(ProvideHelmSettings)
View Source
var LoggerModule = fx.Provide(ProvideLogger)
View Source
var ViperModule = fx.Provide( LoadViperConfiguration, )
Viper module for Fx
Functions ¶
func ConvertToHelmMirrors ¶ added in v0.2.0
func ConvertToHelmMirrors(configs []MirrorConfigSection) []helm.Mirror
func LoadViperConfiguration ¶
func LoadViperConfiguration(rc helm.RegistryClient) (*viper.Viper, error)
Reads flags from user and sets state accordingly
func ProvideHelmSettings ¶ added in v0.2.0
func ProvideHelmSettings() *cli.EnvSettings
func ProvideLogger ¶ added in v0.2.0
ProvideLogger sets up the slog configuration
func SetupHelm ¶
func SetupHelm(settings *cli.EnvSettings, charts ChartSetupper, setters ...helm.Option) (*helm.ChartCollection, error)
Add Helm repos to user's local helm configuration file, Optionupdate all existing repos and pulls charts
Types ¶
type ChartSetupper ¶ added in v0.2.0
type ChartSetupper interface {
SetupHelm(settings *cli.EnvSettings, setters ...helm.Option) (*helm.ChartCollection, error)
}
type EnvironmentSetter ¶ added in v0.2.0
EnvironmentSetter is a function type for setting environment variables
type ImportConfigSection ¶
type ImportConfigSection struct { Import struct { Enabled bool `yaml:"enabled"` Architecture *string `yaml:"architecture"` ReplaceRegistryReferences bool `yaml:"replaceRegistryReferences"` Copacetic struct { Enabled bool `yaml:"enabled"` IgnoreErrors bool `yaml:"ignoreErrors"` Buildkitd struct { Addr string `yaml:"addr"` CACertPath string `yaml:"CACertPath"` CertPath string `yaml:"certPath"` KeyPath string `yaml:"keyPath"` } `yaml:"buildkitd"` Trivy struct { Addr string `yaml:"addr"` Insecure bool `yaml:"insecure"` IgnoreUnfixed bool `yaml:"ignoreUnfixed"` } `yaml:"trivy"` Output struct { Tars struct { Clean bool `yaml:"clean"` Folder string `yaml:"folder"` } `yaml:"tars"` Reports struct { Clean bool `yaml:"clean"` Folder string `yaml:"folder"` } `yaml:"reports"` } `yaml:"output"` } `yaml:"copacetic"` Cosign struct { Enabled bool `yaml:"enabled"` VerifyExisting bool `yaml:"verifyExisting"` KeyRef string `yaml:"keyRef"` KeyRefPass *string `yaml:"keyRefPass"` PubKeyRef *string `yaml:"pubKeyRef"` AllowHTTPRegistry bool `yaml:"allowHTTPRegistry"` AllowInsecure bool `yaml:"allowInsecure"` } `yaml:"cosign"` } `yaml:"import"` }
type MirrorConfigSection ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.