Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartTemplateService

type ChartTemplateService struct {
	mock.Mock
}

ChartTemplateService is an autogenerated mock type for the ChartTemplateService type

func NewChartTemplateService

func NewChartTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChartTemplateService

NewChartTemplateService creates a new instance of ChartTemplateService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChartTemplateService) BuildChart

func (_m *ChartTemplateService) BuildChart(ctx context.Context, chartMetaData *chart.Metadata, referenceTemplatePath string) (string, error)

BuildChart provides a mock function with given fields: ctx, chartMetaData, referenceTemplatePath

func (*ChartTemplateService) BuildChartProxyForHelmApps

func (_m *ChartTemplateService) BuildChartProxyForHelmApps(chartCreateRequest *util.ChartCreateRequest) (*util.ChartCreateResponse, error)

BuildChartProxyForHelmApps provides a mock function with given fields: chartCreateRequest

func (*ChartTemplateService) CleanDir

func (_m *ChartTemplateService) CleanDir(dir string)

CleanDir provides a mock function with given fields: dir

func (*ChartTemplateService) CreateZipFileForChart added in v0.6.29

func (_m *ChartTemplateService) CreateZipFileForChart(_a0 *chart.Chart, outputChartPathDir string) ([]byte, error)

CreateZipFileForChart provides a mock function with given fields: _a0, outputChartPathDir

func (*ChartTemplateService) FetchValuesFromReferenceChart

func (_m *ChartTemplateService) FetchValuesFromReferenceChart(chartMetaData *chart.Metadata, refChartLocation string, templateName string, userId int32, pipelineStrategyPath string) (*util.ChartValues, error)

FetchValuesFromReferenceChart provides a mock function with given fields: chartMetaData, refChartLocation, templateName, userId, pipelineStrategyPath

func (*ChartTemplateService) GetByteArrayRefChart

func (_m *ChartTemplateService) GetByteArrayRefChart(chartMetaData *chart.Metadata, referenceTemplatePath string) ([]byte, error)

GetByteArrayRefChart provides a mock function with given fields: chartMetaData, referenceTemplatePath

func (*ChartTemplateService) GetChartVersion

func (_m *ChartTemplateService) GetChartVersion(location string) (string, error)

GetChartVersion provides a mock function with given fields: location

func (*ChartTemplateService) GetDir

func (_m *ChartTemplateService) GetDir() string

GetDir provides a mock function with given fields:

func (*ChartTemplateService) LoadChartFromDir added in v0.6.29

func (_m *ChartTemplateService) LoadChartFromDir(dir string) (*chart.Chart, error)

LoadChartFromDir provides a mock function with given fields: dir

func (*ChartTemplateService) LoadChartInBytes

func (_m *ChartTemplateService) LoadChartInBytes(ChartPath string, deleteChart bool) ([]byte, error)

LoadChartInBytes provides a mock function with given fields: ChartPath, deleteChart

func (*ChartTemplateService) PackageChart added in v0.6.29

func (_m *ChartTemplateService) PackageChart(tempReferenceTemplateDir string, chartMetaData *chart.Metadata) (*string, string, error)

PackageChart provides a mock function with given fields: tempReferenceTemplateDir, chartMetaData

Jump to

Keyboard shortcuts

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