mocks

package
v0.6.23-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmAppService

type HelmAppService struct {
	mock.Mock
}

HelmAppService is an autogenerated mock type for the HelmAppService type

func NewHelmAppService

func NewHelmAppService(t interface {
	mock.TestingT
	Cleanup(func())
}) *HelmAppService

NewHelmAppService creates a new instance of HelmAppService. 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 (*HelmAppService) DecodeAppId

func (_m *HelmAppService) DecodeAppId(appId string) (*client.AppIdentifier, error)

DecodeAppId provides a mock function with given fields: appId

func (*HelmAppService) DeleteApplication

DeleteApplication provides a mock function with given fields: ctx, app

func (*HelmAppService) EncodeAppId

func (_m *HelmAppService) EncodeAppId(appIdentifier *client.AppIdentifier) string

EncodeAppId provides a mock function with given fields: appIdentifier

func (*HelmAppService) GetApplicationDetail

func (_m *HelmAppService) GetApplicationDetail(ctx context.Context, app *client.AppIdentifier) (*client.AppDetail, error)

GetApplicationDetail provides a mock function with given fields: ctx, app

func (*HelmAppService) GetApplicationDetailWithFilter

func (_m *HelmAppService) GetApplicationDetailWithFilter(ctx context.Context, app *client.AppIdentifier, resourceTreeFilter *client.ResourceTreeFilter) (*client.AppDetail, error)

GetApplicationDetailWithFilter provides a mock function with given fields: ctx, app, resourceTreeFilter

func (*HelmAppService) GetApplicationStatus

func (_m *HelmAppService) GetApplicationStatus(ctx context.Context, app *client.AppIdentifier) (string, error)

GetApplicationStatus provides a mock function with given fields: ctx, app

func (*HelmAppService) GetClusterConf

func (_m *HelmAppService) GetClusterConf(clusterId int) (*client.ClusterConfig, error)

GetClusterConf provides a mock function with given fields: clusterId

func (*HelmAppService) GetDeploymentDetail

func (_m *HelmAppService) GetDeploymentDetail(ctx context.Context, app *client.AppIdentifier, version int32) (*openapi.HelmAppDeploymentManifestDetail, error)

GetDeploymentDetail provides a mock function with given fields: ctx, app, version

func (*HelmAppService) GetDeploymentHistory

func (_m *HelmAppService) GetDeploymentHistory(ctx context.Context, app *client.AppIdentifier) (*client.HelmAppDeploymentHistory, error)

GetDeploymentHistory provides a mock function with given fields: ctx, app

func (*HelmAppService) GetDesiredManifest

GetDesiredManifest provides a mock function with given fields: ctx, app, resource

func (*HelmAppService) GetDevtronHelmAppIdentifier

func (_m *HelmAppService) GetDevtronHelmAppIdentifier() *client.AppIdentifier

GetDevtronHelmAppIdentifier provides a mock function with given fields:

func (*HelmAppService) GetNotes

func (_m *HelmAppService) GetNotes(ctx context.Context, request *client.InstallReleaseRequest) (string, error)

GetNotes provides a mock function with given fields: ctx, request

func (*HelmAppService) GetRevisionHistoryMaxValue

func (_m *HelmAppService) GetRevisionHistoryMaxValue(appType client.SourceAppType) int32

GetRevisionHistoryMaxValue provides a mock function with given fields: appType

func (*HelmAppService) GetValuesYaml

func (_m *HelmAppService) GetValuesYaml(ctx context.Context, app *client.AppIdentifier) (*client.ReleaseInfo, error)

GetValuesYaml provides a mock function with given fields: ctx, app

func (*HelmAppService) HibernateApplication

func (_m *HelmAppService) HibernateApplication(ctx context.Context, app *client.AppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error)

HibernateApplication provides a mock function with given fields: ctx, app, hibernateRequest

func (*HelmAppService) InstallRelease

func (_m *HelmAppService) InstallRelease(ctx context.Context, clusterId int, installReleaseRequest *client.InstallReleaseRequest) (*client.InstallReleaseResponse, error)

InstallRelease provides a mock function with given fields: ctx, clusterId, installReleaseRequest

func (*HelmAppService) IsReleaseInstalled

func (_m *HelmAppService) IsReleaseInstalled(ctx context.Context, app *client.AppIdentifier) (bool, error)

IsReleaseInstalled provides a mock function with given fields: ctx, app

func (*HelmAppService) ListHelmApplications

func (_m *HelmAppService) ListHelmApplications(ctx context.Context, clusterIds []int, w http.ResponseWriter, token string, helmAuth func(string, string) bool)

ListHelmApplications provides a mock function with given fields: ctx, clusterIds, w, token, helmAuth

func (*HelmAppService) RollbackRelease

func (_m *HelmAppService) RollbackRelease(ctx context.Context, app *client.AppIdentifier, version int32) (bool, error)

RollbackRelease provides a mock function with given fields: ctx, app, version

func (*HelmAppService) TemplateChart

TemplateChart provides a mock function with given fields: ctx, templateChartRequest

func (*HelmAppService) UnHibernateApplication

func (_m *HelmAppService) UnHibernateApplication(ctx context.Context, app *client.AppIdentifier, hibernateRequest *openapi.HibernateRequest) ([]*openapi.HibernateStatus, error)

UnHibernateApplication provides a mock function with given fields: ctx, app, hibernateRequest

func (*HelmAppService) UpdateApplication

UpdateApplication provides a mock function with given fields: ctx, app, request

func (*HelmAppService) UpdateApplicationWithChartInfo

func (_m *HelmAppService) UpdateApplicationWithChartInfo(ctx context.Context, clusterId int, request *client.UpdateApplicationWithChartInfoRequestDto) (*openapi.UpdateReleaseResponse, error)

UpdateApplicationWithChartInfo provides a mock function with given fields: ctx, clusterId, request

func (*HelmAppService) UpdateApplicationWithChartInfoWithExtraValues

func (_m *HelmAppService) UpdateApplicationWithChartInfoWithExtraValues(ctx context.Context, appIdentifier *client.AppIdentifier, chartRepository *client.ChartRepository, extraValues map[string]interface{}, extraValuesYamlUrl string, useLatestChartVersion bool) (*openapi.UpdateReleaseResponse, error)

UpdateApplicationWithChartInfoWithExtraValues provides a mock function with given fields: ctx, appIdentifier, chartRepository, extraValues, extraValuesYamlUrl, useLatestChartVersion

func (*HelmAppService) ValidateOCIRegistry

func (_m *HelmAppService) ValidateOCIRegistry(ctx context.Context, OCIRegistryRequest *client.RegistryCredential) bool

ValidateOCIRegistry provides a mock function with given fields: ctx, OCIRegistryRequest

Jump to

Keyboard shortcuts

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