mocks

package
v0.6.25 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 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 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 *client.AppDetailRequest) (*client.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 *client.AppDetailRequest) (*client.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

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

func (*HelmAppClient) GetDesiredManifest added in v0.6.24

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 *client.AppDetailRequest) (*client.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 *client.HelmInstallCustomRequest) (*client.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 *client.ReleaseIdentifier) (*client.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 *client.InstallReleaseRequest) (*client.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) (*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