Documentation ¶
Index ¶
- type FakeHelmChartFileSystem
- func (hfs FakeHelmChartFileSystem) ApplyPatchFile(chartsDir string, vzHelper helpers.VZHelper, chart string, version string, ...) (bool, error)
- func (hfs FakeHelmChartFileSystem) FindChartVersionToPatch(chartsDir string, chart string, version string) (string, error)
- func (hfs FakeHelmChartFileSystem) GeneratePatchFile(chartsDir string, chart string, version string) (string, error)
- func (hfs FakeHelmChartFileSystem) GeneratePatchWithSourceDir(chartsDir string, chart string, version string, sourceDir string) (string, error)
- func (hfs FakeHelmChartFileSystem) RearrangeChartDirectory(chartsDir string, chart string, targetVersion string) error
- func (hfs FakeHelmChartFileSystem) SaveChartProvenance(chartsDir string, chartProvenance *helm.ChartProvenance, chart string, ...) error
- func (hfs FakeHelmChartFileSystem) SaveUpstreamChart(chartsDir string, chart string, version string, targetVersion string) error
- type FakeHelmConfig
- func (h FakeHelmConfig) AddAndUpdateChartRepo(chart string, repoURL string) (string, error)
- func (h FakeHelmConfig) DownloadChart(chart string, repo string, version string, targetVersion string, ...) error
- func (h FakeHelmConfig) GetChartProvenance(chart string, repo string, version string) (*helm.ChartProvenance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeHelmChartFileSystem ¶
type FakeHelmChartFileSystem struct { FakeRearrangeChartDirectory func(string, string, string) error FakeSaveUpstreamChart func(string, string, string, string) error FakeSaveChartProvenance func(string, *helm.ChartProvenance, string, string) error FakeGeneratePatchFile func(string, string, string) (string, error) FakeGeneratePatchWithSourceDir func(string, string, string, string) (string, error) FakeFindChartVersionToPatch func(string, string, string) (string, error) FakeApplyPatchFile func(string, helpers.VZHelper, string, string, string) (bool, error) }
FakeHelmChartFileSystem is a fake implemntation of fs.ChartFileSystem.
func (FakeHelmChartFileSystem) ApplyPatchFile ¶
func (hfs FakeHelmChartFileSystem) ApplyPatchFile(chartsDir string, vzHelper helpers.VZHelper, chart string, version string, patchFile string) (bool, error)
ApplyPatchFile is a fake implementation of fs.ChartFileSystem.ApplyPatchFile.
func (FakeHelmChartFileSystem) FindChartVersionToPatch ¶
func (hfs FakeHelmChartFileSystem) FindChartVersionToPatch(chartsDir string, chart string, version string) (string, error)
FindChartVersionToPatch is a fake implementation of fs.ChartFileSystem.FindChartVersionToPatch.
func (FakeHelmChartFileSystem) GeneratePatchFile ¶
func (hfs FakeHelmChartFileSystem) GeneratePatchFile(chartsDir string, chart string, version string) (string, error)
GeneratePatchFile is a fake implementation of fs.ChartFileSystem.GeneratePatchFile.
func (FakeHelmChartFileSystem) GeneratePatchWithSourceDir ¶
func (hfs FakeHelmChartFileSystem) GeneratePatchWithSourceDir(chartsDir string, chart string, version string, sourceDir string) (string, error)
GeneratePatchWithSourceDir is a fake implementation of fs.ChartFileSystem.GeneratePatchWithSourceDir.
func (FakeHelmChartFileSystem) RearrangeChartDirectory ¶
func (hfs FakeHelmChartFileSystem) RearrangeChartDirectory(chartsDir string, chart string, targetVersion string) error
RearrangeChartDirectory is a fake implementation of fs.ChartFileSystem.RearrangeChartDirectory.
func (FakeHelmChartFileSystem) SaveChartProvenance ¶
func (hfs FakeHelmChartFileSystem) SaveChartProvenance(chartsDir string, chartProvenance *helm.ChartProvenance, chart string, targetVersion string) error
SaveChartProvenance is a fake implementation of fs.ChartFileSystem.SaveChartProvenance.
func (FakeHelmChartFileSystem) SaveUpstreamChart ¶
func (hfs FakeHelmChartFileSystem) SaveUpstreamChart(chartsDir string, chart string, version string, targetVersion string) error
SaveUpstreamChart is a fake implementation of fs.ChartFileSystem.SaveUpstreamChart.
type FakeHelmConfig ¶
type FakeHelmConfig struct { FakeAddAndUpdateChartRepo func(string, string) (string, error) FakeDownloadChart func(string, string, string, string, string) error FakeGetChartProvenance func(string, string, string) (*helm.ChartProvenance, error) }
FakeHelmConfig is a fake implementation of helm.HelmConfig.
func (FakeHelmConfig) AddAndUpdateChartRepo ¶
func (h FakeHelmConfig) AddAndUpdateChartRepo(chart string, repoURL string) (string, error)
AddAndUpdateChartRepo is a fake implementation of helm.HelmConfig.AddAndUpdateChartRepo.
func (FakeHelmConfig) DownloadChart ¶
func (h FakeHelmConfig) DownloadChart(chart string, repo string, version string, targetVersion string, chartDir string) error
DownloadChart is a fake implementation of helm.HelmConfig.DownloadChart.
func (FakeHelmConfig) GetChartProvenance ¶
func (h FakeHelmConfig) GetChartProvenance(chart string, repo string, version string) (*helm.ChartProvenance, error)
GetChartProvenance is a fake implementation of helm.HelmConfig.GetChartProvenance.