Documentation ¶
Index ¶
- Variables
- func ConditionMet(condition string, values map[string]any) bool
- func VersionsInRange(r semver.Range, c Chart) ([]string, error)
- type Chart
- func (c *Chart) ChartRef(settings *cli.EnvSettings) (*chart.Chart, error)
- func (c Chart) CountDependencies(settings *cli.EnvSettings) (int, error)
- func (c Chart) LatestVersion(settings *cli.EnvSettings) (string, error)
- func (c Chart) Locate(settings *cli.EnvSettings) (string, error)
- func (c Chart) Pull(settings *cli.EnvSettings) (string, error)
- func (c Chart) Push(settings *cli.EnvSettings, registry string, insecure bool, plainHTTP bool) (string, error)
- func (c Chart) PushAndModify(settings *cli.EnvSettings, registry string, insecure bool, plainHTTP bool, ...) (string, error)
- func (c *Chart) Read(settings *cli.EnvSettings, update bool) (string, *chart.Chart, map[string]any, error)
- func (c Chart) ResolveVersion(settings *cli.EnvSettings) (string, error)
- func (c Chart) ResolveVersions(settings *cli.EnvSettings) ([]string, error)
- func (c Chart) Values(settings *cli.EnvSettings) (map[string]any, error)
- type ChartCollection
- type ChartData
- type ChartImportOption
- type ChartOption
- type DefaultIndexFileLoader
- type FunctionLoader
- type IdentifyImportOption
- type Images
- type IndexFileLoader
- type Mirror
- type OCIRegistryClient
- func (c *OCIRegistryClient) Pull(ref string, opts ...helm_registry.PullOption) (*helm_registry.PullResult, error)
- func (c *OCIRegistryClient) Push(chart []byte, destination string, opts ...helm_registry.PushOption) (*helm_registry.PushResult, error)
- func (c *OCIRegistryClient) Tags(ref string) ([]string, error)
- type Option
- type Options
- type RegistryChartStatus
- type RegistryClient
- type RegistryImageStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var IndexFileLoaderModule = fx.Provide(FunctionLoader{LoadFunc: repo.LoadIndexFile})
View Source
var RegistryModule = fx.Provide(NewDefaultRegistryClient)
Functions ¶
func ConditionMet ¶
traverse helm chart values to determine if condition is met
func VersionsInRange ¶ added in v0.1.18
Types ¶
type Chart ¶
type Chart struct { Name string `json:"name"` Version string `json:"version"` ValuesFilePath string `json:"valuesFilePath"` Repo repo.Entry `json:"repo"` Parent *Chart Images *Images `json:"images"` PlainHTTP bool `json:"plainHTTP"` DepsCount int RegistryClient RegistryClient IndexFileLoader IndexFileLoader }
func DependencyToChart ¶ added in v0.1.21
func DependencyToChart(d *chart.Dependency, p *Chart) *Chart
func (Chart) CountDependencies ¶ added in v0.1.8
func (c Chart) CountDependencies(settings *cli.EnvSettings) (int, error)
func (Chart) LatestVersion ¶
func (c Chart) LatestVersion(settings *cli.EnvSettings) (string, error)
func (Chart) PushAndModify ¶ added in v0.1.8
func (Chart) ResolveVersion ¶
func (c Chart) ResolveVersion(settings *cli.EnvSettings) (string, error)
func (Chart) ResolveVersions ¶ added in v0.1.5
func (c Chart) ResolveVersions(settings *cli.EnvSettings) ([]string, error)
type ChartCollection ¶
type ChartCollection struct {
Charts []*Chart `json:"charts"`
}
func (ChartCollection) SetupHelm ¶
func (collection ChartCollection) SetupHelm(settings *cli.EnvSettings, setters ...Option) (*ChartCollection, error)
configures helm and pulls charts to local fs
type ChartImportOption ¶
type ChartImportOption struct { Data RegistryChartStatus All bool ModifyRegistry bool Settings *cli.EnvSettings }
type ChartOption ¶
type DefaultIndexFileLoader ¶ added in v0.2.0
type DefaultIndexFileLoader struct{}
func (*DefaultIndexFileLoader) LoadIndexFile ¶ added in v0.2.0
func (d *DefaultIndexFileLoader) LoadIndexFile(indexFilePath string) (*repo.IndexFile, error)
type FunctionLoader ¶ added in v0.2.0
func (*FunctionLoader) LoadIndexFile ¶ added in v0.2.0
func (fl *FunctionLoader) LoadIndexFile(indexFilePath string) (*repo.IndexFile, error)
type IdentifyImportOption ¶ added in v0.2.0
type IdentifyImportOption struct { Registries []*registry.Registry ChartImageValuesMap ChartData All bool ImportEnabled bool ChartsOverview *report.Table ImagesOverview *report.Table }
func (*IdentifyImportOption) Run ¶ added in v0.2.0
func (io *IdentifyImportOption) Run(_ context.Context) (RegistryChartStatus, RegistryImageStatus, error)
Converts data structure to pipeline parameters
type IndexFileLoader ¶ added in v0.2.0
type OCIRegistryClient ¶ added in v0.2.0
type OCIRegistryClient struct { PlainHTTP bool // contains filtered or unexported fields }
func NewOCIRegistryClient ¶ added in v0.2.0
func NewOCIRegistryClient(client RegistryClient, plainHTTP bool) *OCIRegistryClient
func (*OCIRegistryClient) Pull ¶ added in v0.2.0
func (c *OCIRegistryClient) Pull(ref string, opts ...helm_registry.PullOption) (*helm_registry.PullResult, error)
func (*OCIRegistryClient) Push ¶ added in v0.2.0
func (c *OCIRegistryClient) Push(chart []byte, destination string, opts ...helm_registry.PushOption) (*helm_registry.PushResult, error)
type RegistryChartStatus ¶ added in v0.2.0
type RegistryClient ¶ added in v0.2.0
type RegistryClient interface { Pull(ref string, opts ...helm_registry.PullOption) (*helm_registry.PullResult, error) Push(chart []byte, destination string, opts ...helm_registry.PushOption) (*helm_registry.PushResult, error) Tags(ref string) ([]string, error) }
Define the interface for the registry client
func NewDefaultRegistryClient ¶ added in v0.2.0
func NewDefaultRegistryClient() (RegistryClient, error)
Default registry client provider
func NewRegistryClient ¶ added in v0.2.0
func NewRegistryClient(plainHTTP, debug bool) (RegistryClient, error)
Click to show internal directories.
Click to hide internal directories.