Documentation
¶
Index ¶
- type HelmAppClient
- func (_m *HelmAppClient) DeleteApplication(ctx context.Context, in *gRPC.ReleaseIdentifier) (*gRPC.UninstallReleaseResponse, error)
- func (_m *HelmAppClient) GetAppDetail(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.AppDetail, error)
- func (_m *HelmAppClient) GetAppStatus(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.AppStatus, error)
- func (_m *HelmAppClient) GetDeploymentDetail(ctx context.Context, in *gRPC.DeploymentDetailRequest) (*gRPC.DeploymentDetailResponse, error)
- func (_m *HelmAppClient) GetDeploymentHistory(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.HelmAppDeploymentHistory, error)
- func (_m *HelmAppClient) GetDesiredManifest(ctx context.Context, in *gRPC.ObjectRequest) (*gRPC.DesiredManifestResponse, error)
- func (_m *HelmAppClient) GetNotes(ctx context.Context, request *gRPC.InstallReleaseRequest) (*gRPC.ChartNotesResponse, error)
- func (_m *HelmAppClient) GetValuesYaml(ctx context.Context, in *gRPC.AppDetailRequest) (*gRPC.ReleaseInfo, error)
- func (_m *HelmAppClient) Hibernate(ctx context.Context, in *gRPC.HibernateRequest) (*gRPC.HibernateResponse, error)
- func (_m *HelmAppClient) InstallRelease(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.InstallReleaseResponse, error)
- func (_m *HelmAppClient) InstallReleaseWithCustomChart(ctx context.Context, in *gRPC.HelmInstallCustomRequest) (*gRPC.HelmInstallCustomResponse, error)
- func (_m *HelmAppClient) IsReleaseInstalled(ctx context.Context, in *gRPC.ReleaseIdentifier) (*gRPC.BooleanResponse, error)
- func (_m *HelmAppClient) ListApplication(ctx context.Context, req *gRPC.AppListRequest) (gRPC.ApplicationService_ListApplicationsClient, error)
- func (_m *HelmAppClient) RollbackRelease(ctx context.Context, in *gRPC.RollbackReleaseRequest) (*gRPC.BooleanResponse, error)
- func (_m *HelmAppClient) TemplateChart(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.TemplateChartResponse, error)
- func (_m *HelmAppClient) UnHibernate(ctx context.Context, in *gRPC.HibernateRequest) (*gRPC.HibernateResponse, error)
- func (_m *HelmAppClient) UpdateApplication(ctx context.Context, in *gRPC.UpgradeReleaseRequest) (*gRPC.UpgradeReleaseResponse, error)
- func (_m *HelmAppClient) UpdateApplicationWithChartInfo(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.UpgradeReleaseResponse, error)
- type HelmAppService
- func (_m *HelmAppService) DecodeAppId(appId string) (*client.AppIdentifier, error)
- func (_m *HelmAppService) DeleteApplication(ctx context.Context, app *client.AppIdentifier) (*openapi.UninstallReleaseResponse, error)
- func (_m *HelmAppService) EncodeAppId(appIdentifier *client.AppIdentifier) string
- func (_m *HelmAppService) GetApplicationDetail(ctx context.Context, app *client.AppIdentifier) (*bean2.AppDetail, error)
- func (_m *HelmAppService) GetApplicationDetailWithFilter(ctx context.Context, app *client.AppIdentifier, ...) (*bean2.AppDetail, error)
- func (_m *HelmAppService) GetApplicationStatus(ctx context.Context, app *client.AppIdentifier) (string, error)
- func (_m *HelmAppService) GetClusterConf(clusterId int) (*bean2.ClusterConfig, error)
- func (_m *HelmAppService) GetDeploymentDetail(ctx context.Context, app *client.AppIdentifier, version int32) (*openapi.HelmAppDeploymentManifestDetail, error)
- func (_m *HelmAppService) GetDeploymentHistory(ctx context.Context, app *client.AppIdentifier) (*bean2.HelmAppDeploymentHistory, error)
- func (_m *HelmAppService) GetDesiredManifest(ctx context.Context, app *client.AppIdentifier, ...) (*openapi.DesiredManifestResponse, error)
- func (_m *HelmAppService) GetDevtronHelmAppIdentifier() *client.AppIdentifier
- func (_m *HelmAppService) GetNotes(ctx context.Context, request *bean2.InstallReleaseRequest) (string, error)
- func (_m *HelmAppService) GetRevisionHistoryMaxValue(appType bean.SourceAppType) int32
- func (_m *HelmAppService) GetValuesYaml(ctx context.Context, app *client.AppIdentifier) (*bean2.ReleaseInfo, error)
- func (_m *HelmAppService) HibernateApplication(ctx context.Context, app *client.AppIdentifier, ...) ([]*openapi.HibernateStatus, error)
- func (_m *HelmAppService) InstallRelease(ctx context.Context, clusterId int, ...) (*bean2.InstallReleaseResponse, error)
- func (_m *HelmAppService) IsReleaseInstalled(ctx context.Context, app *client.AppIdentifier) (bool, error)
- func (_m *HelmAppService) ListHelmApplications(ctx context.Context, clusterIds []int, w http.ResponseWriter, token string, ...)
- func (_m *HelmAppService) RollbackRelease(ctx context.Context, app *client.AppIdentifier, version int32) (bool, error)
- func (_m *HelmAppService) TemplateChart(ctx context.Context, templateChartRequest *openapiClient.TemplateChartRequest) (*openapiClient.TemplateChartResponse, error)
- func (_m *HelmAppService) UnHibernateApplication(ctx context.Context, app *client.AppIdentifier, ...) ([]*openapi.HibernateStatus, error)
- func (_m *HelmAppService) UpdateApplication(ctx context.Context, app *client.AppIdentifier, ...) (*openapi.UpdateReleaseResponse, error)
- func (_m *HelmAppService) UpdateApplicationWithChartInfo(ctx context.Context, clusterId int, ...) (*openapi.UpdateReleaseResponse, error)
- func (_m *HelmAppService) UpdateApplicationWithChartInfoWithExtraValues(ctx context.Context, appIdentifier *client.AppIdentifier, ...) (*openapi.UpdateReleaseResponse, error)
- func (_m *HelmAppService) ValidateOCIRegistry(ctx context.Context, OCIRegistryRequest *bean2.RegistryCredential) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelmAppClient ¶ added in v0.6.24
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
func (_m *HelmAppClient) DeleteApplication(ctx context.Context, in *gRPC.ReleaseIdentifier) (*gRPC.UninstallReleaseResponse, error)
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
func (_m *HelmAppClient) GetDeploymentDetail(ctx context.Context, in *gRPC.DeploymentDetailRequest) (*gRPC.DeploymentDetailResponse, error)
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
func (_m *HelmAppClient) GetNotes(ctx context.Context, request *gRPC.InstallReleaseRequest) (*gRPC.ChartNotesResponse, error)
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
func (_m *HelmAppClient) Hibernate(ctx context.Context, in *gRPC.HibernateRequest) (*gRPC.HibernateResponse, error)
Hibernate provides a mock function with given fields: ctx, in
func (*HelmAppClient) InstallRelease ¶ added in v0.6.24
func (_m *HelmAppClient) InstallRelease(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.InstallReleaseResponse, error)
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
func (_m *HelmAppClient) ListApplication(ctx context.Context, req *gRPC.AppListRequest) (gRPC.ApplicationService_ListApplicationsClient, error)
ListApplication provides a mock function with given fields: ctx, req
func (*HelmAppClient) RollbackRelease ¶ added in v0.6.24
func (_m *HelmAppClient) RollbackRelease(ctx context.Context, in *gRPC.RollbackReleaseRequest) (*gRPC.BooleanResponse, error)
RollbackRelease provides a mock function with given fields: ctx, in
func (*HelmAppClient) TemplateChart ¶ added in v0.6.24
func (_m *HelmAppClient) TemplateChart(ctx context.Context, in *gRPC.InstallReleaseRequest) (*gRPC.TemplateChartResponse, error)
TemplateChart provides a mock function with given fields: ctx, in
func (*HelmAppClient) UnHibernate ¶ added in v0.6.24
func (_m *HelmAppClient) UnHibernate(ctx context.Context, in *gRPC.HibernateRequest) (*gRPC.HibernateResponse, error)
UnHibernate provides a mock function with given fields: ctx, in
func (*HelmAppClient) UpdateApplication ¶ added in v0.6.24
func (_m *HelmAppClient) UpdateApplication(ctx context.Context, in *gRPC.UpgradeReleaseRequest) (*gRPC.UpgradeReleaseResponse, error)
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 ¶
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 ¶
func (_m *HelmAppService) DeleteApplication(ctx context.Context, app *client.AppIdentifier) (*openapi.UninstallReleaseResponse, error)
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) (*bean2.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 *bean2.ResourceTreeFilter) (*bean2.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) (*bean2.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) (*bean2.HelmAppDeploymentHistory, error)
GetDeploymentHistory provides a mock function with given fields: ctx, app
func (*HelmAppService) GetDesiredManifest ¶
func (_m *HelmAppService) GetDesiredManifest(ctx context.Context, app *client.AppIdentifier, resource *openapi.ResourceIdentifier) (*openapi.DesiredManifestResponse, error)
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 *bean2.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 *client.AppIdentifier) (*bean2.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 *bean2.InstallReleaseRequest) (*bean2.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 ¶
func (_m *HelmAppService) TemplateChart(ctx context.Context, templateChartRequest *openapiClient.TemplateChartRequest) (*openapiClient.TemplateChartResponse, error)
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 ¶
func (_m *HelmAppService) UpdateApplication(ctx context.Context, app *client.AppIdentifier, request *bean.UpdateApplicationRequestDto) (*openapi.UpdateReleaseResponse, error)
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 *client.AppIdentifier, chartRepository *bean2.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 *bean2.RegistryCredential) bool
ValidateOCIRegistry provides a mock function with given fields: ctx, OCIRegistryRequest