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

mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelmAppClient added in v0.6.24

type HelmAppClient struct {
	mock.Mock
}

HelmAppClient is an autogenerated mock type for the HelmAppClient type

func NewHelmAppClient added in v0.6.24

func NewHelmAppClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HelmAppClient

NewHelmAppClient creates a new instance of HelmAppClient. 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 (*HelmAppClient) DeleteApplication added in v0.6.24

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

func (*HelmAppClient) GetAppDetail added in v0.6.24

func (_m *HelmAppClient) GetAppDetail(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.AppDetail, error)

GetAppDetail provides a mock function with given fields: ctx, in

func (*HelmAppClient) GetAppStatus added in v0.6.24

func (_m *HelmAppClient) GetAppStatus(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.AppStatus, error)

GetAppStatus provides a mock function with given fields: ctx, in

func (*HelmAppClient) GetDeploymentDetail added in v0.6.24

GetDeploymentDetail provides a mock function with given fields: ctx, in

func (*HelmAppClient) GetDeploymentHistory added in v0.6.24

func (_m *HelmAppClient) GetDeploymentHistory(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.HelmAppDeploymentHistory, error)

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

func (*HelmAppClient) GetDesiredManifest added in v0.6.24

func (_m *HelmAppClient) GetDesiredManifest(ctx context.Context, in *gRPC.ObjectRequest) (*gRPC.DesiredManifestResponse, error)

GetDesiredManifest provides a mock function with given fields: ctx, in

func (*HelmAppClient) GetNotes added in v0.6.24

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

func (*HelmAppClient) GetValuesYaml added in v0.6.24

func (_m *HelmAppClient) GetValuesYaml(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.ReleaseInfo, error)

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

func (*HelmAppClient) Hibernate added in v0.6.24

Hibernate provides a mock function with given fields: ctx, in

func (*HelmAppClient) InstallRelease added in v0.6.24

InstallRelease provides a mock function with given fields: ctx, in

func (*HelmAppClient) InstallReleaseWithCustomChart added in v0.6.24

func (_m *HelmAppClient) InstallReleaseWithCustomChart(ctx context.Context, in *gRPC.HelmInstallCustomRequest) (*gRPC.HelmInstallCustomResponse, error)

InstallReleaseWithCustomChart provides a mock function with given fields: ctx, in

func (*HelmAppClient) IsReleaseInstalled added in v0.6.24

func (_m *HelmAppClient) IsReleaseInstalled(ctx context.Context, in *gRPC.ReleaseIdentifier) (*gRPC.BooleanResponse, error)

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

func (*HelmAppClient) ListApplication added in v0.6.24

ListApplication provides a mock function with given fields: ctx, req

func (*HelmAppClient) RollbackRelease added in v0.6.24

RollbackRelease provides a mock function with given fields: ctx, in

func (*HelmAppClient) TemplateChart added in v0.6.24

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

func (*HelmAppClient) UnHibernate added in v0.6.24

UnHibernate provides a mock function with given fields: ctx, in

func (*HelmAppClient) UpdateApplication added in v0.6.24

UpdateApplication provides a mock function with given fields: ctx, in

func (*HelmAppClient) UpdateApplicationWithChartInfo added in v0.6.24

func (_m *HelmAppClient) UpdateApplicationWithChartInfo(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.UpgradeReleaseResponse, error)

UpdateApplicationWithChartInfo provides a mock function with given fields: ctx, in

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) (*helmBean.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 *helmBean.AppIdentifier) string

EncodeAppId provides a mock function with given fields: appIdentifier

func (*HelmAppService) GetApplicationDetail

func (_m *HelmAppService) GetApplicationDetail(ctx context.Context, app *helmBean.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 *helmBean.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 *helmBean.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 *helmBean.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 *helmBean.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() *helmBean.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 bean.SourceAppType) int32

GetRevisionHistoryMaxValue provides a mock function with given fields: appType

func (*HelmAppService) GetValuesYaml

func (_m *HelmAppService) GetValuesYaml(ctx context.Context, app *helmBean.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 *helmBean.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 *helmBean.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 *helmBean.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 *helmBean.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 *bean.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 *helmBean.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