fakes

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: UPL-1.0 Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL