restHandler

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: Apache-2.0 Imports: 75 Imported by: 6

Documentation

Index

Constants

View Source
const POLICY_UPDATE_TOPIC = "Policy.Update"

Variables

This section is empty.

Functions

This section is empty.

Types

type AppListingRestHandler

type AppListingRestHandler interface {
	FetchAppsByEnvironment(w http.ResponseWriter, r *http.Request)
	FetchAppDetails(w http.ResponseWriter, r *http.Request)

	FetchAppTriggerView(w http.ResponseWriter, r *http.Request)
	FetchAppStageStatus(w http.ResponseWriter, r *http.Request)

	FetchOtherEnvironment(w http.ResponseWriter, r *http.Request)
	RedirectToLinkouts(w http.ResponseWriter, r *http.Request)
}

type AppListingRestHandlerImpl

type AppListingRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewAppListingRestHandlerImpl

func NewAppListingRestHandlerImpl(application application.ServiceClient,
	appListingService app.AppListingService,
	teamService team.TeamService,
	enforcer rbac.Enforcer,
	pipeline pipeline.PipelineBuilder,
	logger *zap.SugaredLogger, enforcerUtil rbac.EnforcerUtil,
	deploymentGroupService deploymentGroup.DeploymentGroupService, userService user.UserService) *AppListingRestHandlerImpl

func (AppListingRestHandlerImpl) FetchAppDetails

func (handler AppListingRestHandlerImpl) FetchAppDetails(w http.ResponseWriter, r *http.Request)

func (AppListingRestHandlerImpl) FetchAppStageStatus

func (handler AppListingRestHandlerImpl) FetchAppStageStatus(w http.ResponseWriter, r *http.Request)

func (AppListingRestHandlerImpl) FetchAppTriggerView

func (handler AppListingRestHandlerImpl) FetchAppTriggerView(w http.ResponseWriter, r *http.Request)

func (AppListingRestHandlerImpl) FetchAppsByEnvironment

func (handler AppListingRestHandlerImpl) FetchAppsByEnvironment(w http.ResponseWriter, r *http.Request)

func (AppListingRestHandlerImpl) FetchOtherEnvironment

func (handler AppListingRestHandlerImpl) FetchOtherEnvironment(w http.ResponseWriter, r *http.Request)

func (AppListingRestHandlerImpl) RedirectToLinkouts

func (handler AppListingRestHandlerImpl) RedirectToLinkouts(w http.ResponseWriter, r *http.Request)

type AppStatus

type AppStatus struct {
	// contains filtered or unexported fields
}

type AppStoreRestHandler

type AppStoreRestHandler interface {
	FindAllApps(w http.ResponseWriter, r *http.Request)
	GetChartDetailsForVersion(w http.ResponseWriter, r *http.Request)
	GetChartVersions(w http.ResponseWriter, r *http.Request)
	FetchAppDetailsForInstalledApp(w http.ResponseWriter, r *http.Request)
	GetReadme(w http.ResponseWriter, r *http.Request)
	SearchAppStoreChartByName(w http.ResponseWriter, r *http.Request)
	GetChartRepoById(w http.ResponseWriter, r *http.Request)
	GetChartRepoList(w http.ResponseWriter, r *http.Request)
	CreateChartRepo(w http.ResponseWriter, r *http.Request)
	UpdateChartRepo(w http.ResponseWriter, r *http.Request)
}

type AppStoreRestHandlerImpl

type AppStoreRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppStoreRestHandlerImpl

func NewAppStoreRestHandlerImpl(Logger *zap.SugaredLogger, userAuthService user.UserService, appStoreService appstore.AppStoreService,
	acdServiceClient application.ServiceClient, teamService team.TeamService,
	enforcer rbac.Enforcer, enforcerUtil rbac.EnforcerUtil,
	validator *validator.Validate, client *http.Client) *AppStoreRestHandlerImpl

func (*AppStoreRestHandlerImpl) CreateChartRepo

func (handler *AppStoreRestHandlerImpl) CreateChartRepo(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) FetchAppDetailsForInstalledApp

func (handler *AppStoreRestHandlerImpl) FetchAppDetailsForInstalledApp(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) FindAllApps

func (handler *AppStoreRestHandlerImpl) FindAllApps(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) GetChartDetailsForVersion

func (handler *AppStoreRestHandlerImpl) GetChartDetailsForVersion(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) GetChartRepoById

func (handler *AppStoreRestHandlerImpl) GetChartRepoById(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) GetChartRepoList

func (handler *AppStoreRestHandlerImpl) GetChartRepoList(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) GetChartVersions

func (handler *AppStoreRestHandlerImpl) GetChartVersions(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) GetReadme

func (handler *AppStoreRestHandlerImpl) GetReadme(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) SearchAppStoreChartByName

func (handler *AppStoreRestHandlerImpl) SearchAppStoreChartByName(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) UpdateChartRepo

func (handler *AppStoreRestHandlerImpl) UpdateChartRepo(w http.ResponseWriter, r *http.Request)

func (*AppStoreRestHandlerImpl) ValidateRepo

func (handler *AppStoreRestHandlerImpl) ValidateRepo(request *appstore.ChartRepoDto) bool

type AppStoreValuesRestHandler

type AppStoreValuesRestHandler interface {
	CreateAppStoreVersionValues(w http.ResponseWriter, r *http.Request)
	UpdateAppStoreVersionValues(w http.ResponseWriter, r *http.Request)
	FindValuesById(w http.ResponseWriter, r *http.Request)
	DeleteAppStoreVersionValues(w http.ResponseWriter, r *http.Request)

	FindValuesByAppStoreIdAndReferenceType(w http.ResponseWriter, r *http.Request)
	FetchTemplateValuesByAppStoreId(w http.ResponseWriter, r *http.Request)
	GetSelectedChartMetadata(w http.ResponseWriter, r *http.Request)
}

type AppStoreValuesRestHandlerImpl

type AppStoreValuesRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppStoreValuesRestHandlerImpl

func NewAppStoreValuesRestHandlerImpl(pipelineBuilder pipeline.PipelineBuilder, Logger *zap.SugaredLogger,
	chartService pipeline.ChartService, userAuthService user.UserService, teamService team.TeamService,
	enforcer rbac.Enforcer, pipelineRepository pipelineConfig.PipelineRepository,
	enforcerUtil rbac.EnforcerUtil, configMapService pipeline.ConfigMapService,
	installedAppService appstore.InstalledAppService, appStoreValuesService appstore.AppStoreValuesService) *AppStoreValuesRestHandlerImpl

func (AppStoreValuesRestHandlerImpl) CreateAppStoreVersionValues

func (handler AppStoreValuesRestHandlerImpl) CreateAppStoreVersionValues(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) DeleteAppStoreVersionValues

func (handler AppStoreValuesRestHandlerImpl) DeleteAppStoreVersionValues(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) FetchTemplateValuesByAppStoreId

func (handler AppStoreValuesRestHandlerImpl) FetchTemplateValuesByAppStoreId(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) FindValuesByAppStoreIdAndReferenceType

func (handler AppStoreValuesRestHandlerImpl) FindValuesByAppStoreIdAndReferenceType(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) FindValuesById

func (handler AppStoreValuesRestHandlerImpl) FindValuesById(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) GetSelectedChartMetadata

func (handler AppStoreValuesRestHandlerImpl) GetSelectedChartMetadata(w http.ResponseWriter, r *http.Request)

func (AppStoreValuesRestHandlerImpl) UpdateAppStoreVersionValues

func (handler AppStoreValuesRestHandlerImpl) UpdateAppStoreVersionValues(w http.ResponseWriter, r *http.Request)

type AppWorkflowRestHandler

type AppWorkflowRestHandler interface {
	CreateAppWorkflow(w http.ResponseWriter, r *http.Request)
	FindAppWorkflow(w http.ResponseWriter, r *http.Request)
	DeleteAppWorkflow(w http.ResponseWriter, r *http.Request)
}

type AppWorkflowRestHandlerImpl

type AppWorkflowRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewAppWorkflowRestHandlerImpl

func NewAppWorkflowRestHandlerImpl(Logger *zap.SugaredLogger, userAuthService user.UserService, appWorkflowService appWorkflow.AppWorkflowService,
	teamService team.TeamService, enforcer rbac.Enforcer, pipelineBuilder pipeline.PipelineBuilder,
	appRepository pipelineConfig.AppRepository, enforcerUtil rbac.EnforcerUtil) *AppWorkflowRestHandlerImpl

func (AppWorkflowRestHandlerImpl) CreateAppWorkflow

func (handler AppWorkflowRestHandlerImpl) CreateAppWorkflow(w http.ResponseWriter, r *http.Request)

func (AppWorkflowRestHandlerImpl) DeleteAppWorkflow

func (handler AppWorkflowRestHandlerImpl) DeleteAppWorkflow(w http.ResponseWriter, r *http.Request)

func (AppWorkflowRestHandlerImpl) FindAppWorkflow

func (impl AppWorkflowRestHandlerImpl) FindAppWorkflow(w http.ResponseWriter, r *http.Request)

type ApplicationRestHandler

type ApplicationRestHandler interface {
	GetPodLogs(w http.ResponseWriter, r *http.Request)
	GetResourceTree(w http.ResponseWriter, r *http.Request)
	ListResourceEvents(w http.ResponseWriter, r *http.Request)
	GetResource(w http.ResponseWriter, r *http.Request)
	List(w http.ResponseWriter, r *http.Request)
	Watch(w http.ResponseWriter, r *http.Request)
	ManagedResources(w http.ResponseWriter, r *http.Request)
	Rollback(w http.ResponseWriter, r *http.Request)
	GetManifests(w http.ResponseWriter, r *http.Request)
	Get(w http.ResponseWriter, r *http.Request)

	Sync(w http.ResponseWriter, r *http.Request)
	TerminateOperation(w http.ResponseWriter, r *http.Request)
	PatchResource(w http.ResponseWriter, r *http.Request)
	DeleteResource(w http.ResponseWriter, r *http.Request)

	GetServiceLink(w http.ResponseWriter, r *http.Request)
	GetTerminalSession(w http.ResponseWriter, r *http.Request)
}

type ApplicationRestHandlerImpl

type ApplicationRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewApplicationRestHandlerImpl

func NewApplicationRestHandlerImpl(client application.ServiceClient,
	pump connector.Pump,
	enforcer rbac.Enforcer,
	teamService team.TeamService,
	environmentService cluster.EnvironmentService,
	logger *zap.SugaredLogger,
	enforcerUtil rbac.EnforcerUtil,
	terminalSessionHandler terminal.TerminalSessionHandler) *ApplicationRestHandlerImpl

func (ApplicationRestHandlerImpl) DeleteResource

func (impl ApplicationRestHandlerImpl) DeleteResource(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) Get

func (ApplicationRestHandlerImpl) GetManifests

func (impl ApplicationRestHandlerImpl) GetManifests(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) GetPodLogs

func (ApplicationRestHandlerImpl) GetResource

func (impl ApplicationRestHandlerImpl) GetResource(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) GetResourceTree

func (impl ApplicationRestHandlerImpl) GetResourceTree(w http.ResponseWriter, r *http.Request)
func (impl ApplicationRestHandlerImpl) GetServiceLink(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) GetTerminalSession

func (impl ApplicationRestHandlerImpl) GetTerminalSession(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) List

func (ApplicationRestHandlerImpl) ListResourceEvents

func (impl ApplicationRestHandlerImpl) ListResourceEvents(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) ManagedResources

func (impl ApplicationRestHandlerImpl) ManagedResources(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) PatchResource

func (impl ApplicationRestHandlerImpl) PatchResource(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) Rollback

func (ApplicationRestHandlerImpl) Sync

func (ApplicationRestHandlerImpl) TerminateOperation

func (impl ApplicationRestHandlerImpl) TerminateOperation(w http.ResponseWriter, r *http.Request)

func (ApplicationRestHandlerImpl) Watch

type AttributesRestHandler

type AttributesRestHandler interface {
	AddAttributes(w http.ResponseWriter, r *http.Request)
	UpdateAttributes(w http.ResponseWriter, r *http.Request)
	GetAttributesById(w http.ResponseWriter, r *http.Request)
	GetAttributesActiveList(w http.ResponseWriter, r *http.Request)
	GetAttributesByKey(w http.ResponseWriter, r *http.Request)
}

type AttributesRestHandlerImpl

type AttributesRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewAttributesRestHandlerImpl

func NewAttributesRestHandlerImpl(logger *zap.SugaredLogger, enforcer rbac.Enforcer,
	userService user.UserService, attributesService attributes.AttributesService) *AttributesRestHandlerImpl

func (AttributesRestHandlerImpl) AddAttributes

func (handler AttributesRestHandlerImpl) AddAttributes(w http.ResponseWriter, r *http.Request)

func (AttributesRestHandlerImpl) GetAttributesActiveList

func (handler AttributesRestHandlerImpl) GetAttributesActiveList(w http.ResponseWriter, r *http.Request)

func (AttributesRestHandlerImpl) GetAttributesById

func (handler AttributesRestHandlerImpl) GetAttributesById(w http.ResponseWriter, r *http.Request)

func (AttributesRestHandlerImpl) GetAttributesByKey

func (handler AttributesRestHandlerImpl) GetAttributesByKey(w http.ResponseWriter, r *http.Request)

func (AttributesRestHandlerImpl) UpdateAttributes

func (handler AttributesRestHandlerImpl) UpdateAttributes(w http.ResponseWriter, r *http.Request)

type BatchOperationRestHandler

type BatchOperationRestHandler interface {
	Operate(w http.ResponseWriter, r *http.Request)
}

type BatchOperationRestHandlerImpl

type BatchOperationRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewBatchOperationRestHandlerImpl

func NewBatchOperationRestHandlerImpl(userAuthService user.UserService, enforcer rbac.Enforcer, workflowAction batch.WorkflowAction,
	teamService team.TeamService, logger *zap.SugaredLogger) *BatchOperationRestHandlerImpl

func (BatchOperationRestHandlerImpl) Operate

type CDRestHandler

type CDRestHandler interface {
	FetchResourceTree(w http.ResponseWriter, r *http.Request)

	FetchPodContainerLogs(w http.ResponseWriter, r *http.Request)
}

type CDRestHandlerImpl

type CDRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewCDRestHandlerImpl

func NewCDRestHandlerImpl(logger *zap.SugaredLogger, resourceService ArgoUtil.ResourceService) *CDRestHandlerImpl

func (CDRestHandlerImpl) FetchPodContainerLogs

func (handler CDRestHandlerImpl) FetchPodContainerLogs(w http.ResponseWriter, r *http.Request)

func (CDRestHandlerImpl) FetchResourceTree

func (handler CDRestHandlerImpl) FetchResourceTree(w http.ResponseWriter, r *http.Request)

type ChannelDto

type ChannelDto struct {
	Channel util.Channel `json:"channel" validate:"required"`
}

type ChannelResponseDTO

type ChannelResponseDTO struct {
	SlackConfigs []*notifier.SlackConfigDto `json:"slackConfigs"`
	SESConfigs   []*notifier.SESConfigDto   `json:"sesConfigs"`
}

type ChartGroupRestHandler

type ChartGroupRestHandler interface {
	CreateChartGroup(w http.ResponseWriter, r *http.Request)
	UpdateChartGroup(w http.ResponseWriter, r *http.Request)
	SaveChartGroupEntries(w http.ResponseWriter, r *http.Request)
	GetChartGroupWithChartMetaData(w http.ResponseWriter, r *http.Request)
	GetChartGroupList(w http.ResponseWriter, r *http.Request)
	GetChartGroupInstallationDetail(w http.ResponseWriter, r *http.Request)
	GetChartGroupListMin(w http.ResponseWriter, r *http.Request)
}

type ChartGroupRestHandlerImpl

type ChartGroupRestHandlerImpl struct {
	ChartGroupService appstore.ChartGroupService
	Logger            *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewChartGroupRestHandlerImpl

func NewChartGroupRestHandlerImpl(ChartGroupService appstore.ChartGroupService,
	Logger *zap.SugaredLogger, userAuthService user.UserService,
	enforcer rbac.Enforcer, enforcerUtil rbac.EnforcerUtil, validator *validator.Validate) *ChartGroupRestHandlerImpl

func (*ChartGroupRestHandlerImpl) CreateChartGroup

func (impl *ChartGroupRestHandlerImpl) CreateChartGroup(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) GetChartGroupInstallationDetail

func (impl *ChartGroupRestHandlerImpl) GetChartGroupInstallationDetail(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) GetChartGroupList

func (impl *ChartGroupRestHandlerImpl) GetChartGroupList(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) GetChartGroupListMin

func (impl *ChartGroupRestHandlerImpl) GetChartGroupListMin(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) GetChartGroupWithChartMetaData

func (impl *ChartGroupRestHandlerImpl) GetChartGroupWithChartMetaData(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) SaveChartGroupEntries

func (impl *ChartGroupRestHandlerImpl) SaveChartGroupEntries(w http.ResponseWriter, r *http.Request)

func (*ChartGroupRestHandlerImpl) UpdateChartGroup

func (impl *ChartGroupRestHandlerImpl) UpdateChartGroup(w http.ResponseWriter, r *http.Request)

type ChartRefRestHandler

type ChartRefRestHandler interface {
	ChartRefAutocomplete(w http.ResponseWriter, r *http.Request)
	ChartRefAutocompleteForApp(w http.ResponseWriter, r *http.Request)
	ChartRefAutocompleteForEnv(w http.ResponseWriter, r *http.Request)
}

type ChartRefRestHandlerImpl

type ChartRefRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewChartRefRestHandlerImpl

func NewChartRefRestHandlerImpl(chartService pipeline.ChartService, logger *zap.SugaredLogger) *ChartRefRestHandlerImpl

func (ChartRefRestHandlerImpl) ChartRefAutocomplete

func (handler ChartRefRestHandlerImpl) ChartRefAutocomplete(w http.ResponseWriter, r *http.Request)

func (ChartRefRestHandlerImpl) ChartRefAutocompleteForApp

func (handler ChartRefRestHandlerImpl) ChartRefAutocompleteForApp(w http.ResponseWriter, r *http.Request)

func (ChartRefRestHandlerImpl) ChartRefAutocompleteForEnv

func (handler ChartRefRestHandlerImpl) ChartRefAutocompleteForEnv(w http.ResponseWriter, r *http.Request)

type ClusterAccountsRestHandler

type ClusterAccountsRestHandler interface {
	Save(w http.ResponseWriter, r *http.Request)
	Get(w http.ResponseWriter, r *http.Request)
	GetByEnvironment(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)

	FindById(w http.ResponseWriter, r *http.Request)
	FindAll(w http.ResponseWriter, r *http.Request)
}

type ClusterAccountsRestHandlerImpl

type ClusterAccountsRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func (ClusterAccountsRestHandlerImpl) FindAll

func (ClusterAccountsRestHandlerImpl) FindById

func (ClusterAccountsRestHandlerImpl) Get

func (ClusterAccountsRestHandlerImpl) GetByEnvironment

func (impl ClusterAccountsRestHandlerImpl) GetByEnvironment(w http.ResponseWriter, r *http.Request)

func (ClusterAccountsRestHandlerImpl) Save

func (ClusterAccountsRestHandlerImpl) Update

type ClusterHelmConfigRestHandler

type ClusterHelmConfigRestHandler interface {
	Save(w http.ResponseWriter, r *http.Request)
	GetByEnvironment(w http.ResponseWriter, r *http.Request)
}

type ClusterHelmConfigRestHandlerImpl

type ClusterHelmConfigRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewClusterHelmConfigRestHandlerImpl

func NewClusterHelmConfigRestHandlerImpl(service cluster.ClusterHelmConfigService, logger *zap.SugaredLogger, userAuthService user.UserService) *ClusterHelmConfigRestHandlerImpl

func (ClusterHelmConfigRestHandlerImpl) GetByEnvironment

func (impl ClusterHelmConfigRestHandlerImpl) GetByEnvironment(w http.ResponseWriter, r *http.Request)

func (ClusterHelmConfigRestHandlerImpl) Save

type ClusterRestHandler

type ClusterRestHandler interface {
	Save(w http.ResponseWriter, r *http.Request)
	FindOne(w http.ResponseWriter, r *http.Request)
	FindAll(w http.ResponseWriter, r *http.Request)

	FindById(w http.ResponseWriter, r *http.Request)
	FindByEnvId(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)

	ClusterListFromACD(w http.ResponseWriter, r *http.Request)
	DeleteClusterFromACD(w http.ResponseWriter, r *http.Request)

	FindAllForAutoComplete(w http.ResponseWriter, r *http.Request)
	DefaultComponentInstallation(w http.ResponseWriter, r *http.Request)
}

type ClusterRestHandlerImpl

type ClusterRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewClusterRestHandlerImpl

func NewClusterRestHandlerImpl(clusterService cluster.ClusterService,
	logger *zap.SugaredLogger,
	clusterServiceCD cluster2.ServiceClient,
	envService cluster.EnvironmentService,
	clusterAccountsService cluster.ClusterAccountsService,
	userService user.UserService,
	validator *validator.Validate,
	enforcer rbac.Enforcer, installedAppService appstore.InstalledAppService) *ClusterRestHandlerImpl

func (ClusterRestHandlerImpl) ClusterListFromACD

func (impl ClusterRestHandlerImpl) ClusterListFromACD(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) DefaultComponentInstallation

func (impl ClusterRestHandlerImpl) DefaultComponentInstallation(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) DeleteClusterFromACD

func (impl ClusterRestHandlerImpl) DeleteClusterFromACD(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindAll

func (ClusterRestHandlerImpl) FindAllForAutoComplete

func (impl ClusterRestHandlerImpl) FindAllForAutoComplete(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindByEnvId

func (impl ClusterRestHandlerImpl) FindByEnvId(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindById

func (impl ClusterRestHandlerImpl) FindById(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) FindOne

func (ClusterRestHandlerImpl) GetClusterFromACD

func (impl ClusterRestHandlerImpl) GetClusterFromACD(w http.ResponseWriter, r *http.Request)

func (ClusterRestHandlerImpl) Save

func (ClusterRestHandlerImpl) Update

type CommonRestHanlder

type CommonRestHanlder interface {
	GlobalChecklist(w http.ResponseWriter, r *http.Request)
}

type CommonRestHanlderImpl

type CommonRestHanlderImpl struct {
	// contains filtered or unexported fields
}

func NewCommonRestHanlderImpl

func NewCommonRestHanlderImpl(
	logger *zap.SugaredLogger,
	gitOpsConfigService gitops.GitOpsConfigService, userAuthService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, commonService commonService.CommonService) *CommonRestHanlderImpl

func (CommonRestHanlderImpl) GlobalChecklist

func (impl CommonRestHanlderImpl) GlobalChecklist(w http.ResponseWriter, r *http.Request)

type ConfigMapRestHandler

type ConfigMapRestHandler interface {
	CMGlobalAddUpdate(w http.ResponseWriter, r *http.Request)
	CMEnvironmentAddUpdate(w http.ResponseWriter, r *http.Request)
	CMGlobalFetch(w http.ResponseWriter, r *http.Request)
	CMEnvironmentFetch(w http.ResponseWriter, r *http.Request)

	CSGlobalAddUpdate(w http.ResponseWriter, r *http.Request)
	CSEnvironmentAddUpdate(w http.ResponseWriter, r *http.Request)
	CSGlobalFetch(w http.ResponseWriter, r *http.Request)
	CSEnvironmentFetch(w http.ResponseWriter, r *http.Request)

	CMGlobalDelete(w http.ResponseWriter, r *http.Request)
	CMEnvironmentDelete(w http.ResponseWriter, r *http.Request)
	CSGlobalDelete(w http.ResponseWriter, r *http.Request)
	CSEnvironmentDelete(w http.ResponseWriter, r *http.Request)

	CSGlobalFetchForEdit(w http.ResponseWriter, r *http.Request)
	CSEnvironmentFetchForEdit(w http.ResponseWriter, r *http.Request)
	ConfigSecretBulkPatch(w http.ResponseWriter, r *http.Request)
}

type ConfigMapRestHandlerImpl

type ConfigMapRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewConfigMapRestHandlerImpl

func NewConfigMapRestHandlerImpl(pipelineBuilder pipeline.PipelineBuilder, Logger *zap.SugaredLogger,
	chartService pipeline.ChartService, userAuthService user.UserService, teamService team.TeamService,
	enforcer rbac.Enforcer, pipelineRepository pipelineConfig.PipelineRepository,
	enforcerUtil rbac.EnforcerUtil, configMapService pipeline.ConfigMapService) *ConfigMapRestHandlerImpl

func (ConfigMapRestHandlerImpl) CMEnvironmentAddUpdate

func (handler ConfigMapRestHandlerImpl) CMEnvironmentAddUpdate(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CMEnvironmentDelete

func (handler ConfigMapRestHandlerImpl) CMEnvironmentDelete(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CMEnvironmentFetch

func (handler ConfigMapRestHandlerImpl) CMEnvironmentFetch(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CMGlobalAddUpdate

func (handler ConfigMapRestHandlerImpl) CMGlobalAddUpdate(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CMGlobalDelete

func (handler ConfigMapRestHandlerImpl) CMGlobalDelete(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CMGlobalFetch

func (handler ConfigMapRestHandlerImpl) CMGlobalFetch(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSEnvironmentAddUpdate

func (handler ConfigMapRestHandlerImpl) CSEnvironmentAddUpdate(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSEnvironmentDelete

func (handler ConfigMapRestHandlerImpl) CSEnvironmentDelete(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSEnvironmentFetch

func (handler ConfigMapRestHandlerImpl) CSEnvironmentFetch(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSEnvironmentFetchForEdit

func (handler ConfigMapRestHandlerImpl) CSEnvironmentFetchForEdit(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSGlobalAddUpdate

func (handler ConfigMapRestHandlerImpl) CSGlobalAddUpdate(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSGlobalDelete

func (handler ConfigMapRestHandlerImpl) CSGlobalDelete(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSGlobalFetch

func (handler ConfigMapRestHandlerImpl) CSGlobalFetch(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) CSGlobalFetchForEdit

func (handler ConfigMapRestHandlerImpl) CSGlobalFetchForEdit(w http.ResponseWriter, r *http.Request)

func (ConfigMapRestHandlerImpl) ConfigSecretBulkPatch

func (handler ConfigMapRestHandlerImpl) ConfigSecretBulkPatch(w http.ResponseWriter, r *http.Request)

type DeploymentGroupRestHandler

type DeploymentGroupRestHandler interface {
	CreateDeploymentGroup(w http.ResponseWriter, r *http.Request)
	FetchParentCiForDG(w http.ResponseWriter, r *http.Request)
	FetchEnvApplicationsForDG(w http.ResponseWriter, r *http.Request)
	FetchAllDeploymentGroups(w http.ResponseWriter, r *http.Request)
	DeleteDeploymentGroup(w http.ResponseWriter, r *http.Request)
	TriggerReleaseForDeploymentGroup(w http.ResponseWriter, r *http.Request)
	UpdateDeploymentGroup(w http.ResponseWriter, r *http.Request)
	GetArtifactsByCiPipeline(w http.ResponseWriter, r *http.Request)
	GetDeploymentGroupById(w http.ResponseWriter, r *http.Request)
}

type DeploymentGroupRestHandlerImpl

type DeploymentGroupRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewDeploymentGroupRestHandlerImpl

func NewDeploymentGroupRestHandlerImpl(deploymentGroupService deploymentGroup.DeploymentGroupService, logger *zap.SugaredLogger,
	validator *validator.Validate, enforcer rbac.Enforcer, teamService team.TeamService, userAuthService user.UserService, enforcerUtil rbac.EnforcerUtil) *DeploymentGroupRestHandlerImpl

func (*DeploymentGroupRestHandlerImpl) CreateDeploymentGroup

func (impl *DeploymentGroupRestHandlerImpl) CreateDeploymentGroup(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) DeleteDeploymentGroup

func (impl *DeploymentGroupRestHandlerImpl) DeleteDeploymentGroup(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) FetchAllDeploymentGroups

func (impl *DeploymentGroupRestHandlerImpl) FetchAllDeploymentGroups(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) FetchEnvApplicationsForDG

func (impl *DeploymentGroupRestHandlerImpl) FetchEnvApplicationsForDG(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) FetchParentCiForDG

func (impl *DeploymentGroupRestHandlerImpl) FetchParentCiForDG(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) GetArtifactsByCiPipeline

func (impl *DeploymentGroupRestHandlerImpl) GetArtifactsByCiPipeline(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) GetDeploymentGroupById

func (impl *DeploymentGroupRestHandlerImpl) GetDeploymentGroupById(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) TriggerReleaseForDeploymentGroup

func (impl *DeploymentGroupRestHandlerImpl) TriggerReleaseForDeploymentGroup(w http.ResponseWriter, r *http.Request)

func (*DeploymentGroupRestHandlerImpl) UpdateDeploymentGroup

func (impl *DeploymentGroupRestHandlerImpl) UpdateDeploymentGroup(w http.ResponseWriter, r *http.Request)

type DockerRegRestHandler

type DockerRegRestHandler interface {
	SaveDockerRegistryConfig(w http.ResponseWriter, r *http.Request)
	GetDockerArtifactStore(w http.ResponseWriter, r *http.Request)
	FetchAllDockerAccounts(w http.ResponseWriter, r *http.Request)
	FetchOneDockerAccounts(w http.ResponseWriter, r *http.Request)
	UpdateDockerRegistryConfig(w http.ResponseWriter, r *http.Request)
	FetchAllDockerRegistryForAutocomplete(w http.ResponseWriter, r *http.Request)
	IsDockerRegConfigured(w http.ResponseWriter, r *http.Request)
}

type DockerRegRestHandlerImpl

type DockerRegRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewDockerRegRestHandlerImpl

func NewDockerRegRestHandlerImpl(dockerRegistryConfig pipeline.DockerRegistryConfig,
	logger *zap.SugaredLogger,
	gitRegistryConfig pipeline.GitRegistryConfig,
	dbConfigService pipeline.DbConfigService, userAuthService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, teamService team.TeamService) *DockerRegRestHandlerImpl

func (DockerRegRestHandlerImpl) FetchAllDockerAccounts

func (impl DockerRegRestHandlerImpl) FetchAllDockerAccounts(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) FetchAllDockerRegistryForAutocomplete

func (impl DockerRegRestHandlerImpl) FetchAllDockerRegistryForAutocomplete(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) FetchOneDockerAccounts

func (impl DockerRegRestHandlerImpl) FetchOneDockerAccounts(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) GetDockerArtifactStore

func (impl DockerRegRestHandlerImpl) GetDockerArtifactStore(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) IsDockerRegConfigured

func (impl DockerRegRestHandlerImpl) IsDockerRegConfigured(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) SaveDockerRegistryConfig

func (impl DockerRegRestHandlerImpl) SaveDockerRegistryConfig(w http.ResponseWriter, r *http.Request)

func (DockerRegRestHandlerImpl) UpdateDockerRegistryConfig

func (impl DockerRegRestHandlerImpl) UpdateDockerRegistryConfig(w http.ResponseWriter, r *http.Request)

type EnvironmentRestHandler

type EnvironmentRestHandler interface {
	Create(w http.ResponseWriter, r *http.Request)
	Get(w http.ResponseWriter, r *http.Request)
	GetAll(w http.ResponseWriter, r *http.Request)
	GetAllActive(w http.ResponseWriter, r *http.Request)
	Update(w http.ResponseWriter, r *http.Request)
	FindById(w http.ResponseWriter, r *http.Request)
	GetEnvironmentListForAutocomplete(w http.ResponseWriter, r *http.Request)
}

type EnvironmentRestHandlerImpl

type EnvironmentRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewEnvironmentRestHandlerImpl

func NewEnvironmentRestHandlerImpl(svc request.EnvironmentService, logger *zap.SugaredLogger, userService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, enforcerUtil rbac.EnforcerUtil, userAuthService user.UserAuthService) *EnvironmentRestHandlerImpl

func (EnvironmentRestHandlerImpl) Create

func (EnvironmentRestHandlerImpl) FindById

func (EnvironmentRestHandlerImpl) Get

func (EnvironmentRestHandlerImpl) GetAll

func (EnvironmentRestHandlerImpl) GetAllActive

func (impl EnvironmentRestHandlerImpl) GetAllActive(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) GetEnvironmentListForAutocomplete

func (impl EnvironmentRestHandlerImpl) GetEnvironmentListForAutocomplete(w http.ResponseWriter, r *http.Request)

func (EnvironmentRestHandlerImpl) Update

type ExternalCiRestHandler

type ExternalCiRestHandler interface {
	HandleExternalCiWebhook(w http.ResponseWriter, r *http.Request)
}

type ExternalCiRestHandlerImpl

type ExternalCiRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewExternalCiRestHandlerImpl

func NewExternalCiRestHandlerImpl(logger *zap.SugaredLogger, webhookService pipeline.WebhookService, ciEventHandler pubsub.CiEventHandler) *ExternalCiRestHandlerImpl

func (ExternalCiRestHandlerImpl) HandleExternalCiWebhook

func (impl ExternalCiRestHandlerImpl) HandleExternalCiWebhook(w http.ResponseWriter, r *http.Request)

type GitOpsConfigRestHandler

type GitOpsConfigRestHandler interface {
	CreateGitOpsConfig(w http.ResponseWriter, r *http.Request)
	GetAllGitOpsConfig(w http.ResponseWriter, r *http.Request)
	GetGitOpsConfigById(w http.ResponseWriter, r *http.Request)
	UpdateGitOpsConfig(w http.ResponseWriter, r *http.Request)
	GetGitOpsConfigByProvider(w http.ResponseWriter, r *http.Request)
	GitOpsConfigured(w http.ResponseWriter, r *http.Request)
}

type GitOpsConfigRestHandlerImpl

type GitOpsConfigRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewGitOpsConfigRestHandlerImpl

func NewGitOpsConfigRestHandlerImpl(
	logger *zap.SugaredLogger,
	gitOpsConfigService gitops.GitOpsConfigService, userAuthService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, teamService team.TeamService) *GitOpsConfigRestHandlerImpl

func (GitOpsConfigRestHandlerImpl) CreateGitOpsConfig

func (impl GitOpsConfigRestHandlerImpl) CreateGitOpsConfig(w http.ResponseWriter, r *http.Request)

func (GitOpsConfigRestHandlerImpl) GetAllGitOpsConfig

func (impl GitOpsConfigRestHandlerImpl) GetAllGitOpsConfig(w http.ResponseWriter, r *http.Request)

func (GitOpsConfigRestHandlerImpl) GetGitOpsConfigById

func (impl GitOpsConfigRestHandlerImpl) GetGitOpsConfigById(w http.ResponseWriter, r *http.Request)

func (GitOpsConfigRestHandlerImpl) GetGitOpsConfigByProvider

func (impl GitOpsConfigRestHandlerImpl) GetGitOpsConfigByProvider(w http.ResponseWriter, r *http.Request)

func (GitOpsConfigRestHandlerImpl) GitOpsConfigured

func (impl GitOpsConfigRestHandlerImpl) GitOpsConfigured(w http.ResponseWriter, r *http.Request)

func (GitOpsConfigRestHandlerImpl) UpdateGitOpsConfig

func (impl GitOpsConfigRestHandlerImpl) UpdateGitOpsConfig(w http.ResponseWriter, r *http.Request)

type GitProviderRestHandler

type GitProviderRestHandler interface {
	SaveGitRepoConfig(w http.ResponseWriter, r *http.Request)
	GetGitProviders(w http.ResponseWriter, r *http.Request)
	FetchAllGitProviders(w http.ResponseWriter, r *http.Request)
	FetchOneGitProviders(w http.ResponseWriter, r *http.Request)
	UpdateGitRepoConfig(w http.ResponseWriter, r *http.Request)
}

type GitProviderRestHandlerImpl

type GitProviderRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewGitProviderRestHandlerImpl

func NewGitProviderRestHandlerImpl(dockerRegistryConfig pipeline.DockerRegistryConfig,
	logger *zap.SugaredLogger,
	gitRegistryConfig pipeline.GitRegistryConfig,
	dbConfigService pipeline.DbConfigService, userAuthService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, teamService team.TeamService) *GitProviderRestHandlerImpl

func (GitProviderRestHandlerImpl) FetchAllGitProviders

func (impl GitProviderRestHandlerImpl) FetchAllGitProviders(w http.ResponseWriter, r *http.Request)

func (GitProviderRestHandlerImpl) FetchOneGitProviders

func (impl GitProviderRestHandlerImpl) FetchOneGitProviders(w http.ResponseWriter, r *http.Request)

func (GitProviderRestHandlerImpl) GetGitProviders

func (impl GitProviderRestHandlerImpl) GetGitProviders(w http.ResponseWriter, r *http.Request)

func (GitProviderRestHandlerImpl) SaveGitRepoConfig

func (impl GitProviderRestHandlerImpl) SaveGitRepoConfig(w http.ResponseWriter, r *http.Request)

func (GitProviderRestHandlerImpl) UpdateGitRepoConfig

func (impl GitProviderRestHandlerImpl) UpdateGitRepoConfig(w http.ResponseWriter, r *http.Request)

type GitWebhookRestHandler

type GitWebhookRestHandler interface {
	HandleGitWebhook(w http.ResponseWriter, r *http.Request)
}

type GitWebhookRestHandlerImpl

type GitWebhookRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewGitWebhookRestHandlerImpl

func NewGitWebhookRestHandlerImpl(logger *zap.SugaredLogger, gitWebhookService git.GitWebhookService) *GitWebhookRestHandlerImpl

func (GitWebhookRestHandlerImpl) HandleGitWebhook

func (impl GitWebhookRestHandlerImpl) HandleGitWebhook(w http.ResponseWriter, r *http.Request)

type ImageScanRestHandler

type ImageScanRestHandler interface {
	ScanExecutionList(w http.ResponseWriter, r *http.Request)
	FetchExecutionDetail(w http.ResponseWriter, r *http.Request)
	FetchMinScanResultByAppIdAndEnvId(w http.ResponseWriter, r *http.Request)
	VulnerabilityExposure(w http.ResponseWriter, r *http.Request)
}

type ImageScanRestHandlerImpl

type ImageScanRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewImageScanRestHandlerImpl

func NewImageScanRestHandlerImpl(logger *zap.SugaredLogger,
	imageScanService security.ImageScanService, userService user.UserService, enforcer rbac.Enforcer,
	enforcerUtil rbac.EnforcerUtil, environmentService cluster.EnvironmentService) *ImageScanRestHandlerImpl

func (ImageScanRestHandlerImpl) FetchExecutionDetail

func (impl ImageScanRestHandlerImpl) FetchExecutionDetail(w http.ResponseWriter, r *http.Request)

func (ImageScanRestHandlerImpl) FetchMinScanResultByAppIdAndEnvId

func (impl ImageScanRestHandlerImpl) FetchMinScanResultByAppIdAndEnvId(w http.ResponseWriter, r *http.Request)

func (ImageScanRestHandlerImpl) ScanExecutionList

func (impl ImageScanRestHandlerImpl) ScanExecutionList(w http.ResponseWriter, r *http.Request)

func (ImageScanRestHandlerImpl) VulnerabilityExposure

func (impl ImageScanRestHandlerImpl) VulnerabilityExposure(w http.ResponseWriter, r *http.Request)

type InstalledAppRestHandler

type InstalledAppRestHandler interface {
	CreateInstalledApp(w http.ResponseWriter, r *http.Request)
	UpdateInstalledApp(w http.ResponseWriter, r *http.Request)
	GetAllInstalledApp(w http.ResponseWriter, r *http.Request)
	GetInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request)
	GetInstalledAppVersion(w http.ResponseWriter, r *http.Request)
	DeleteInstalledApp(w http.ResponseWriter, r *http.Request)
	DeployBulk(w http.ResponseWriter, r *http.Request)
	CheckAppExists(w http.ResponseWriter, r *http.Request)
}

type InstalledAppRestHandlerImpl

type InstalledAppRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewInstalledAppRestHandlerImpl

func NewInstalledAppRestHandlerImpl(pipelineBuilder pipeline.PipelineBuilder, Logger *zap.SugaredLogger,
	chartService pipeline.ChartService, userAuthService user.UserService, teamService team.TeamService,
	enforcer rbac.Enforcer, pipelineRepository pipelineConfig.PipelineRepository,
	enforcerUtil rbac.EnforcerUtil, configMapService pipeline.ConfigMapService,
	installedAppService appstore.InstalledAppService,
	validator *validator.Validate) *InstalledAppRestHandlerImpl

func (*InstalledAppRestHandlerImpl) CheckAppExists

func (handler *InstalledAppRestHandlerImpl) CheckAppExists(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) CreateInstalledApp

func (handler InstalledAppRestHandlerImpl) CreateInstalledApp(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) DeleteInstalledApp

func (handler InstalledAppRestHandlerImpl) DeleteInstalledApp(w http.ResponseWriter, r *http.Request)

func (*InstalledAppRestHandlerImpl) DeployBulk

func (handler *InstalledAppRestHandlerImpl) DeployBulk(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) GetAllInstalledApp

func (handler InstalledAppRestHandlerImpl) GetAllInstalledApp(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) GetInstalledAppVersion

func (handler InstalledAppRestHandlerImpl) GetInstalledAppVersion(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) GetInstalledAppsByAppStoreId

func (handler InstalledAppRestHandlerImpl) GetInstalledAppsByAppStoreId(w http.ResponseWriter, r *http.Request)

func (InstalledAppRestHandlerImpl) UpdateInstalledApp

func (handler InstalledAppRestHandlerImpl) UpdateInstalledApp(w http.ResponseWriter, r *http.Request)

type JiraRestHandler

type JiraRestHandler interface {
	SaveAccountConfig(w http.ResponseWriter, r *http.Request)
	UpdateIssueStatus(w http.ResponseWriter, r *http.Request)
}

type JiraRestHandlerImpl

type JiraRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewJiraRestHandlerImpl

func NewJiraRestHandlerImpl(jiraService jira.ProjectManagementService, logger *zap.SugaredLogger, userAuthService user.UserService, validator *validator.Validate) *JiraRestHandlerImpl

func (JiraRestHandlerImpl) SaveAccountConfig

func (impl JiraRestHandlerImpl) SaveAccountConfig(w http.ResponseWriter, r *http.Request)

func (JiraRestHandlerImpl) UpdateIssueStatus

func (impl JiraRestHandlerImpl) UpdateIssueStatus(w http.ResponseWriter, r *http.Request)

type MetricsRequest

type MetricsRequest struct {
	AppId         int `json:"appId"`
	EnvironmentId int `json:"environmentId"`
}

type MigrateDbRestHandler

type MigrateDbRestHandler interface {
	SaveDbConfig(w http.ResponseWriter, r *http.Request)
	FetchAllDbConfig(w http.ResponseWriter, r *http.Request)
	FetchOneDbConfig(w http.ResponseWriter, r *http.Request)
	UpdateDbConfig(w http.ResponseWriter, r *http.Request)
	FetchDbConfigForAutoComp(w http.ResponseWriter, r *http.Request)
}

type MigrateDbRestHandlerImpl

type MigrateDbRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewMigrateDbRestHandlerImpl

func NewMigrateDbRestHandlerImpl(dockerRegistryConfig pipeline.DockerRegistryConfig,
	logger *zap.SugaredLogger, gitRegistryConfig pipeline.GitRegistryConfig,
	dbConfigService pipeline.DbConfigService, userAuthService user.UserService,
	validator *validator.Validate, dbMigrationService pipeline.DbMigrationService,
	enforcer rbac.Enforcer) *MigrateDbRestHandlerImpl

func (MigrateDbRestHandlerImpl) FetchAllDbConfig

func (impl MigrateDbRestHandlerImpl) FetchAllDbConfig(w http.ResponseWriter, r *http.Request)

func (MigrateDbRestHandlerImpl) FetchDbConfigForAutoComp

func (impl MigrateDbRestHandlerImpl) FetchDbConfigForAutoComp(w http.ResponseWriter, r *http.Request)

func (MigrateDbRestHandlerImpl) FetchOneDbConfig

func (impl MigrateDbRestHandlerImpl) FetchOneDbConfig(w http.ResponseWriter, r *http.Request)

func (MigrateDbRestHandlerImpl) SaveDbConfig

func (impl MigrateDbRestHandlerImpl) SaveDbConfig(w http.ResponseWriter, r *http.Request)

func (MigrateDbRestHandlerImpl) UpdateDbConfig

func (impl MigrateDbRestHandlerImpl) UpdateDbConfig(w http.ResponseWriter, r *http.Request)

type NotificationRestHandler

type NotificationRestHandler interface {
	SaveNotificationSettings(w http.ResponseWriter, r *http.Request)
	UpdateNotificationSettings(w http.ResponseWriter, r *http.Request)

	SaveNotificationChannelConfig(w http.ResponseWriter, r *http.Request)
	FindSESConfig(w http.ResponseWriter, r *http.Request)
	FindSlackConfig(w http.ResponseWriter, r *http.Request)
	FindAllNotificationConfig(w http.ResponseWriter, r *http.Request)
	GetAllNotificationSettings(w http.ResponseWriter, r *http.Request)
	DeleteNotificationSettings(w http.ResponseWriter, r *http.Request)

	RecipientListingSuggestion(w http.ResponseWriter, r *http.Request)
	FindAllNotificationConfigAutocomplete(w http.ResponseWriter, r *http.Request)
	GetOptionsForNotificationSettings(w http.ResponseWriter, r *http.Request)
}

type NotificationRestHandlerImpl

type NotificationRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewNotificationRestHandlerImpl

func NewNotificationRestHandlerImpl(dockerRegistryConfig pipeline.DockerRegistryConfig,
	logger *zap.SugaredLogger, gitRegistryConfig pipeline.GitRegistryConfig,
	dbConfigService pipeline.DbConfigService, userAuthService user.UserService,
	validator *validator.Validate, notificationService notifier.NotificationConfigService,
	slackService notifier.SlackNotificationService, sesService notifier.SESNotificationService, enforcer rbac.Enforcer,
	teamService team.TeamService, environmentService cluster.EnvironmentService, pipelineBuilder pipeline.PipelineBuilder,
	enforcerUtil rbac.EnforcerUtil) *NotificationRestHandlerImpl

func (NotificationRestHandlerImpl) DeleteNotificationSettings

func (impl NotificationRestHandlerImpl) DeleteNotificationSettings(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) FindAllNotificationConfig

func (impl NotificationRestHandlerImpl) FindAllNotificationConfig(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) FindAllNotificationConfigAutocomplete

func (impl NotificationRestHandlerImpl) FindAllNotificationConfigAutocomplete(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) FindSESConfig

func (impl NotificationRestHandlerImpl) FindSESConfig(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) FindSlackConfig

func (impl NotificationRestHandlerImpl) FindSlackConfig(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) GetAllNotificationSettings

func (impl NotificationRestHandlerImpl) GetAllNotificationSettings(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) GetOptionsForNotificationSettings

func (impl NotificationRestHandlerImpl) GetOptionsForNotificationSettings(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) RecipientListingSuggestion

func (impl NotificationRestHandlerImpl) RecipientListingSuggestion(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) SaveNotificationChannelConfig

func (impl NotificationRestHandlerImpl) SaveNotificationChannelConfig(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) SaveNotificationSettings

func (impl NotificationRestHandlerImpl) SaveNotificationSettings(w http.ResponseWriter, r *http.Request)

func (NotificationRestHandlerImpl) UpdateNotificationSettings

func (impl NotificationRestHandlerImpl) UpdateNotificationSettings(w http.ResponseWriter, r *http.Request)

type PipelineConfigRestHandler

type PipelineConfigRestHandler interface {
	CreateCiConfig(w http.ResponseWriter, r *http.Request)
	ConfigureDeploymentTemplateForApp(w http.ResponseWriter, r *http.Request)
	CreateApp(w http.ResponseWriter, r *http.Request)
	DeleteApp(w http.ResponseWriter, r *http.Request)
	CreateMaterial(w http.ResponseWriter, r *http.Request)
	UpdateMaterial(w http.ResponseWriter, r *http.Request)
	CreateCdPipeline(w http.ResponseWriter, r *http.Request)
	EnvConfigOverrideCreate(w http.ResponseWriter, r *http.Request)
	EnvConfigOverrideUpdate(w http.ResponseWriter, r *http.Request)
	GetEnvConfOverride(w http.ResponseWriter, r *http.Request)
	GetCiPipeline(w http.ResponseWriter, r *http.Request)
	UpdateCiTemplate(w http.ResponseWriter, r *http.Request)
	PatchCiPipelines(w http.ResponseWriter, r *http.Request)
	GetDeploymentTemplate(w http.ResponseWriter, r *http.Request)
	GetApp(w http.ResponseWriter, r *http.Request)
	PatchCdPipeline(w http.ResponseWriter, r *http.Request)
	GetCdPipelines(w http.ResponseWriter, r *http.Request)
	GetCdPipelinesForAppAndEnv(w http.ResponseWriter, r *http.Request)
	GetArtifactsByCDPipeline(w http.ResponseWriter, r *http.Request)
	FetchArtifactForRollback(w http.ResponseWriter, r *http.Request)
	GetAppOverrideForDefaultTemplate(w http.ResponseWriter, r *http.Request)
	UpdateAppOverride(w http.ResponseWriter, r *http.Request)

	GetMigrationConfig(w http.ResponseWriter, r *http.Request)
	CreateMigrationConfig(w http.ResponseWriter, r *http.Request)
	UpdateMigrationConfig(w http.ResponseWriter, r *http.Request)

	FindAppsByTeamId(w http.ResponseWriter, r *http.Request)
	FindAppsByTeamName(w http.ResponseWriter, r *http.Request)

	TriggerCiPipeline(w http.ResponseWriter, r *http.Request)
	TriggerCiPipelineFromGitWebhook(w http.ResponseWriter, r *http.Request)
	FetchMaterials(w http.ResponseWriter, r *http.Request)
	FetchWorkflowDetails(w http.ResponseWriter, r *http.Request)
	GetCiPipelineMin(w http.ResponseWriter, r *http.Request)

	FetchChanges(w http.ResponseWriter, r *http.Request)
	GetHistoricBuildLogs(w http.ResponseWriter, r *http.Request)
	GetBuildLogs(w http.ResponseWriter, r *http.Request)
	GetBuildHistory(w http.ResponseWriter, r *http.Request)
	HandleWorkflowWebhook(w http.ResponseWriter, r *http.Request)
	CancelWorkflow(w http.ResponseWriter, r *http.Request)
	CancelStage(w http.ResponseWriter, r *http.Request)
	DownloadCiWorkflowArtifacts(w http.ResponseWriter, r *http.Request)

	GetAppListForAutocomplete(w http.ResponseWriter, r *http.Request)
	GetAppListByTeamIds(w http.ResponseWriter, r *http.Request)
	EnvironmentListAutocomplete(w http.ResponseWriter, r *http.Request)
	GitListAutocomplete(w http.ResponseWriter, r *http.Request)
	DockerListAutocomplete(w http.ResponseWriter, r *http.Request)
	TeamListAutocomplete(w http.ResponseWriter, r *http.Request)

	IsReadyToTrigger(w http.ResponseWriter, r *http.Request)
	FetchCDPipelineStrategy(w http.ResponseWriter, r *http.Request)

	UpgradeForAllApps(w http.ResponseWriter, r *http.Request)
	EnvConfigOverrideReset(w http.ResponseWriter, r *http.Request)
	EnvConfigOverrideCreateNamespace(w http.ResponseWriter, r *http.Request)

	AppMetricsEnableDisable(w http.ResponseWriter, r *http.Request)
	EnvMetricsEnableDisable(w http.ResponseWriter, r *http.Request)

	GetCdBuildHistory(w http.ResponseWriter, r *http.Request)
	GetCdBuildLogs(w http.ResponseWriter, r *http.Request)
	FetchCdWorkflowDetails(w http.ResponseWriter, r *http.Request)
	DownloadCdWorkflowArtifacts(w http.ResponseWriter, r *http.Request)
	FetchCdPrePostStageStatus(w http.ResponseWriter, r *http.Request)

	GetCdPipelineById(w http.ResponseWriter, r *http.Request)
	FetchConfigmapSecretsForCdStages(w http.ResponseWriter, r *http.Request)

	FetchAppWorkflowStatusForTriggerView(w http.ResponseWriter, r *http.Request)

	RefreshMaterials(w http.ResponseWriter, r *http.Request)
	FetchMaterialInfo(w http.ResponseWriter, r *http.Request)
	GetCIPipelineById(w http.ResponseWriter, r *http.Request)
	PipelineNameSuggestion(w http.ResponseWriter, r *http.Request)
}

type PipelineConfigRestHandlerImpl

type PipelineConfigRestHandlerImpl struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewPipelineRestHandlerImpl

func NewPipelineRestHandlerImpl(pipelineBuilder pipeline.PipelineBuilder, Logger *zap.SugaredLogger,
	chartService pipeline.ChartService,
	propertiesConfigService pipeline.PropertiesConfigService,
	dbMigrationService pipeline.DbMigrationService,
	application application.ServiceClient,
	userAuthService user.UserService,
	teamService team.TeamService,
	enforcer rbac.Enforcer,
	ciHandler pipeline.CiHandler,
	validator *validator.Validate,
	gitSensorClient gitSensor.GitSensorClient,
	ciPipelineRepository pipelineConfig.CiPipelineRepository, pipelineRepository pipelineConfig.PipelineRepository,
	enforcerUtil rbac.EnforcerUtil, envService request.EnvironmentService,
	gitRegistryConfig pipeline.GitRegistryConfig, dockerRegistryConfig pipeline.DockerRegistryConfig,
	cdHandelr pipeline.CdHandler,
	appCloneService appClone.AppCloneService,
	appWorkflowService appWorkflow.AppWorkflowService,
	materialRepository pipelineConfig.MaterialRepository, policyService security2.PolicyService,
	scanResultRepository security.ImageScanResultRepository) *PipelineConfigRestHandlerImpl

func (PipelineConfigRestHandlerImpl) AppMetricsEnableDisable

func (handler PipelineConfigRestHandlerImpl) AppMetricsEnableDisable(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CancelStage

func (handler PipelineConfigRestHandlerImpl) CancelStage(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CancelWorkflow

func (handler PipelineConfigRestHandlerImpl) CancelWorkflow(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) ConfigureDeploymentTemplateForApp

func (handler PipelineConfigRestHandlerImpl) ConfigureDeploymentTemplateForApp(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CreateApp

func (PipelineConfigRestHandlerImpl) CreateCdPipeline

func (handler PipelineConfigRestHandlerImpl) CreateCdPipeline(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CreateCiConfig

func (handler PipelineConfigRestHandlerImpl) CreateCiConfig(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CreateMaterial

func (handler PipelineConfigRestHandlerImpl) CreateMaterial(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) CreateMigrationConfig

func (handler PipelineConfigRestHandlerImpl) CreateMigrationConfig(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) DeleteApp

func (PipelineConfigRestHandlerImpl) DockerListAutocomplete

func (handler PipelineConfigRestHandlerImpl) DockerListAutocomplete(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) DownloadCdWorkflowArtifacts

func (handler PipelineConfigRestHandlerImpl) DownloadCdWorkflowArtifacts(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) DownloadCiWorkflowArtifacts

func (handler PipelineConfigRestHandlerImpl) DownloadCiWorkflowArtifacts(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvConfigOverrideCreate

func (handler PipelineConfigRestHandlerImpl) EnvConfigOverrideCreate(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvConfigOverrideCreateNamespace

func (handler PipelineConfigRestHandlerImpl) EnvConfigOverrideCreateNamespace(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvConfigOverrideReset

func (handler PipelineConfigRestHandlerImpl) EnvConfigOverrideReset(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvConfigOverrideUpdate

func (handler PipelineConfigRestHandlerImpl) EnvConfigOverrideUpdate(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvMetricsEnableDisable

func (handler PipelineConfigRestHandlerImpl) EnvMetricsEnableDisable(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) EnvironmentListAutocomplete

func (handler PipelineConfigRestHandlerImpl) EnvironmentListAutocomplete(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchAppWorkflowStatusForTriggerView

func (handler PipelineConfigRestHandlerImpl) FetchAppWorkflowStatusForTriggerView(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchArtifactForRollback

func (handler PipelineConfigRestHandlerImpl) FetchArtifactForRollback(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchCDPipelineStrategy

func (handler PipelineConfigRestHandlerImpl) FetchCDPipelineStrategy(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchCdPrePostStageStatus

func (handler PipelineConfigRestHandlerImpl) FetchCdPrePostStageStatus(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchCdWorkflowDetails

func (handler PipelineConfigRestHandlerImpl) FetchCdWorkflowDetails(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchChanges

func (handler PipelineConfigRestHandlerImpl) FetchChanges(w http.ResponseWriter, r *http.Request)

FIXME check if deprecated

func (PipelineConfigRestHandlerImpl) FetchConfigmapSecretsForCdStages

func (handler PipelineConfigRestHandlerImpl) FetchConfigmapSecretsForCdStages(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchMaterialInfo

func (handler PipelineConfigRestHandlerImpl) FetchMaterialInfo(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchMaterials

func (handler PipelineConfigRestHandlerImpl) FetchMaterials(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FetchWorkflowDetails

func (handler PipelineConfigRestHandlerImpl) FetchWorkflowDetails(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FindAppsByTeamId

func (handler PipelineConfigRestHandlerImpl) FindAppsByTeamId(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) FindAppsByTeamName

func (handler PipelineConfigRestHandlerImpl) FindAppsByTeamName(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetApp

func (PipelineConfigRestHandlerImpl) GetAppListByTeamIds

func (handler PipelineConfigRestHandlerImpl) GetAppListByTeamIds(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetAppListForAutocomplete

func (handler PipelineConfigRestHandlerImpl) GetAppListForAutocomplete(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetAppOverrideForDefaultTemplate

func (handler PipelineConfigRestHandlerImpl) GetAppOverrideForDefaultTemplate(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetArtifactsByCDPipeline

func (handler PipelineConfigRestHandlerImpl) GetArtifactsByCDPipeline(w http.ResponseWriter, r *http.Request)

func (*PipelineConfigRestHandlerImpl) GetBuildHistory

func (handler *PipelineConfigRestHandlerImpl) GetBuildHistory(w http.ResponseWriter, r *http.Request)

func (*PipelineConfigRestHandlerImpl) GetBuildLogs

func (handler *PipelineConfigRestHandlerImpl) GetBuildLogs(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCIPipelineById

func (handler PipelineConfigRestHandlerImpl) GetCIPipelineById(w http.ResponseWriter, r *http.Request)

func (*PipelineConfigRestHandlerImpl) GetCdBuildHistory

func (handler *PipelineConfigRestHandlerImpl) GetCdBuildHistory(w http.ResponseWriter, r *http.Request)

func (*PipelineConfigRestHandlerImpl) GetCdBuildLogs

func (handler *PipelineConfigRestHandlerImpl) GetCdBuildLogs(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCdPipelineById

func (handler PipelineConfigRestHandlerImpl) GetCdPipelineById(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCdPipelines

func (handler PipelineConfigRestHandlerImpl) GetCdPipelines(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCdPipelinesForAppAndEnv

func (handler PipelineConfigRestHandlerImpl) GetCdPipelinesForAppAndEnv(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCiPipeline

func (handler PipelineConfigRestHandlerImpl) GetCiPipeline(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetCiPipelineMin

func (handler PipelineConfigRestHandlerImpl) GetCiPipelineMin(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetDeploymentTemplate

func (handler PipelineConfigRestHandlerImpl) GetDeploymentTemplate(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetEnvConfOverride

func (handler PipelineConfigRestHandlerImpl) GetEnvConfOverride(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetHistoricBuildLogs

func (handler PipelineConfigRestHandlerImpl) GetHistoricBuildLogs(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GetMigrationConfig

func (handler PipelineConfigRestHandlerImpl) GetMigrationConfig(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) GitListAutocomplete

func (handler PipelineConfigRestHandlerImpl) GitListAutocomplete(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) HandleWorkflowWebhook

func (handler PipelineConfigRestHandlerImpl) HandleWorkflowWebhook(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) IsReadyToTrigger

func (handler PipelineConfigRestHandlerImpl) IsReadyToTrigger(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) PatchCdPipeline

func (handler PipelineConfigRestHandlerImpl) PatchCdPipeline(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) PatchCiPipelines

func (handler PipelineConfigRestHandlerImpl) PatchCiPipelines(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) PipelineNameSuggestion added in v0.2.8

func (handler PipelineConfigRestHandlerImpl) PipelineNameSuggestion(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) RefreshMaterials

func (handler PipelineConfigRestHandlerImpl) RefreshMaterials(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) TeamListAutocomplete

func (handler PipelineConfigRestHandlerImpl) TeamListAutocomplete(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) TriggerCiPipeline

func (handler PipelineConfigRestHandlerImpl) TriggerCiPipeline(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) TriggerCiPipelineFromGitWebhook

func (handler PipelineConfigRestHandlerImpl) TriggerCiPipelineFromGitWebhook(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) UpdateAppOverride

func (handler PipelineConfigRestHandlerImpl) UpdateAppOverride(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) UpdateCiTemplate

func (handler PipelineConfigRestHandlerImpl) UpdateCiTemplate(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) UpdateMaterial

func (handler PipelineConfigRestHandlerImpl) UpdateMaterial(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) UpdateMigrationConfig

func (handler PipelineConfigRestHandlerImpl) UpdateMigrationConfig(w http.ResponseWriter, r *http.Request)

func (PipelineConfigRestHandlerImpl) UpgradeForAllApps

func (handler PipelineConfigRestHandlerImpl) UpgradeForAllApps(w http.ResponseWriter, r *http.Request)

type PipelineTriggerRestHandler

type PipelineTriggerRestHandler interface {
	OverrideConfig(w http.ResponseWriter, r *http.Request)
	ReleaseStatusUpdate(w http.ResponseWriter, r *http.Request)
	StartStopApp(w http.ResponseWriter, r *http.Request)
	StartStopDeploymentGroup(w http.ResponseWriter, r *http.Request)
}

type PipelineTriggerRestHandlerImpl

type PipelineTriggerRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewPipelineRestHandler

func NewPipelineRestHandler(appService app.AppService, userAuthService user.UserService, validator *validator.Validate,
	enforcer rbac.Enforcer, teamService team.TeamService, logger *zap.SugaredLogger, enforcerUtil rbac.EnforcerUtil,
	workflowDagExecutor pipeline.WorkflowDagExecutor, deploymentGroupService deploymentGroup.DeploymentGroupService) *PipelineTriggerRestHandlerImpl

func (PipelineTriggerRestHandlerImpl) OverrideConfig

func (handler PipelineTriggerRestHandlerImpl) OverrideConfig(w http.ResponseWriter, r *http.Request)

func (PipelineTriggerRestHandlerImpl) ReleaseStatusUpdate

func (handler PipelineTriggerRestHandlerImpl) ReleaseStatusUpdate(w http.ResponseWriter, r *http.Request)

func (PipelineTriggerRestHandlerImpl) StartStopApp

func (handler PipelineTriggerRestHandlerImpl) StartStopApp(w http.ResponseWriter, r *http.Request)

func (PipelineTriggerRestHandlerImpl) StartStopDeploymentGroup

func (handler PipelineTriggerRestHandlerImpl) StartStopDeploymentGroup(w http.ResponseWriter, r *http.Request)

type PolicyRestHandler

type PolicyRestHandler interface {
	SavePolicy(w http.ResponseWriter, r *http.Request)
	UpdatePolicy(w http.ResponseWriter, r *http.Request)
	GetPolicy(w http.ResponseWriter, r *http.Request)
	VerifyImage(w http.ResponseWriter, r *http.Request)
}

type PolicyRestHandlerImpl

type PolicyRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewPolicyRestHandlerImpl

func NewPolicyRestHandlerImpl(logger *zap.SugaredLogger,
	policyService security.PolicyService,
	userService user.UserService, userAuthService user.UserAuthService,
	enforcer rbac.Enforcer,
	enforcerUtil rbac.EnforcerUtil, environmentService cluster.EnvironmentService) *PolicyRestHandlerImpl

func (PolicyRestHandlerImpl) GetPolicy

func (impl PolicyRestHandlerImpl) GetPolicy(w http.ResponseWriter, r *http.Request)

func (PolicyRestHandlerImpl) SavePolicy

func (impl PolicyRestHandlerImpl) SavePolicy(w http.ResponseWriter, r *http.Request)

func (PolicyRestHandlerImpl) UpdatePolicy

func (impl PolicyRestHandlerImpl) UpdatePolicy(w http.ResponseWriter, r *http.Request)

func (PolicyRestHandlerImpl) VerifyImage

func (impl PolicyRestHandlerImpl) VerifyImage(w http.ResponseWriter, r *http.Request)

TODO - move to image-scanner

type PubSubClientRestHandler

type PubSubClientRestHandler interface {
	PublishEventsToNats(w http.ResponseWriter, r *http.Request)
}

type PubSubClientRestHandlerImpl

type PubSubClientRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewPubSubClientRestHandlerImpl

func NewPubSubClientRestHandlerImpl(natsPublishClient pubsub.NatsPublishClient, logger *zap.SugaredLogger, cdConfig *pipeline.CdConfig) *PubSubClientRestHandlerImpl

func (*PubSubClientRestHandlerImpl) PublishEventsToNats

func (impl *PubSubClientRestHandlerImpl) PublishEventsToNats(w http.ResponseWriter, r *http.Request)

type ReleaseMetricsRestHandler

type ReleaseMetricsRestHandler interface {
	ResetDataForAppEnvironment(w http.ResponseWriter, r *http.Request)
	ResetDataForAllAppEnvironment(w http.ResponseWriter, r *http.Request)
	GetDeploymentMetrics(w http.ResponseWriter, r *http.Request)
}

type ReleaseMetricsRestHandlerImpl

type ReleaseMetricsRestHandlerImpl struct {
	ReleaseDataService app.ReleaseDataService
	// contains filtered or unexported fields
}

func NewReleaseMetricsRestHandlerImpl

func NewReleaseMetricsRestHandlerImpl(
	logger *zap.SugaredLogger,
	enforcer rbac.Enforcer,
	ReleaseDataService app.ReleaseDataService,
	userAuthService user.UserService,
	teamService team.TeamService,
	pipelineRepository pipelineConfig.PipelineRepository, enforcerUtil rbac.EnforcerUtil) *ReleaseMetricsRestHandlerImpl

func (*ReleaseMetricsRestHandlerImpl) GetDeploymentMetrics

func (impl *ReleaseMetricsRestHandlerImpl) GetDeploymentMetrics(w http.ResponseWriter, r *http.Request)

func (*ReleaseMetricsRestHandlerImpl) ResetDataForAllAppEnvironment

func (impl *ReleaseMetricsRestHandlerImpl) ResetDataForAllAppEnvironment(w http.ResponseWriter, r *http.Request)

func (*ReleaseMetricsRestHandlerImpl) ResetDataForAppEnvironment

func (impl *ReleaseMetricsRestHandlerImpl) ResetDataForAppEnvironment(w http.ResponseWriter, r *http.Request)

type Response

type Response struct {
	Code   int              `json:"code,omitempty"`
	Status string           `json:"status,omitempty"`
	Result interface{}      `json:"result,omitempty"`
	Errors []*util.ApiError `json:"errors,omitempty"`
}

global response body used across api

type TeamRestHandler

type TeamRestHandler interface {
	SaveTeam(w http.ResponseWriter, r *http.Request)
	FetchAll(w http.ResponseWriter, r *http.Request)
	FetchOne(w http.ResponseWriter, r *http.Request)
	UpdateTeam(w http.ResponseWriter, r *http.Request)

	FindTeamByAppId(w http.ResponseWriter, r *http.Request)
	FetchForUser(w http.ResponseWriter, r *http.Request)
	FindTeamByAppName(w http.ResponseWriter, r *http.Request)

	FetchForAutocomplete(w http.ResponseWriter, r *http.Request)
}

type TeamRestHandlerImpl

type TeamRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewTeamRestHandlerImpl

func NewTeamRestHandlerImpl(logger *zap.SugaredLogger,
	teamService team.TeamService,
	dbConfigService pipeline.DbConfigService, userService user.UserService,
	enforcer rbac.Enforcer,
	validator *validator.Validate, enforcerUtil rbac.EnforcerUtil, userAuthService user.UserAuthService) *TeamRestHandlerImpl

func (TeamRestHandlerImpl) FetchAll

func (impl TeamRestHandlerImpl) FetchAll(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) FetchForAutocomplete

func (impl TeamRestHandlerImpl) FetchForAutocomplete(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) FetchForUser

func (impl TeamRestHandlerImpl) FetchForUser(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) FetchOne

func (impl TeamRestHandlerImpl) FetchOne(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) FindTeamByAppId

func (impl TeamRestHandlerImpl) FindTeamByAppId(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) FindTeamByAppName

func (impl TeamRestHandlerImpl) FindTeamByAppName(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) SaveTeam

func (impl TeamRestHandlerImpl) SaveTeam(w http.ResponseWriter, r *http.Request)

func (TeamRestHandlerImpl) UpdateTeam

func (impl TeamRestHandlerImpl) UpdateTeam(w http.ResponseWriter, r *http.Request)

type TestSuitRestHandler

type TestSuitRestHandler interface {
	SuitesProxy(w http.ResponseWriter, r *http.Request)
	GetTestSuites(w http.ResponseWriter, r *http.Request)
	DetailedTestSuites(w http.ResponseWriter, r *http.Request)
	GetAllSuitByID(w http.ResponseWriter, r *http.Request)
	GetAllTestCases(w http.ResponseWriter, r *http.Request)
	GetTestCaseByID(w http.ResponseWriter, r *http.Request)
	RedirectTriggerForApp(w http.ResponseWriter, r *http.Request)
	RedirectTriggerForEnv(w http.ResponseWriter, r *http.Request)
}

type TestSuitRestHandlerImpl

type TestSuitRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewTestSuitRestHandlerImpl

func NewTestSuitRestHandlerImpl(logger *zap.SugaredLogger, userService user.UserService,
	validator *validator.Validate, enforcer rbac.Enforcer, enforcerUtil rbac.EnforcerUtil,
	config *client.EventClientConfig, client *http.Client) *TestSuitRestHandlerImpl

func (TestSuitRestHandlerImpl) DetailedTestSuites

func (impl TestSuitRestHandlerImpl) DetailedTestSuites(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) GetAllSuitByID

func (impl TestSuitRestHandlerImpl) GetAllSuitByID(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) GetAllTestCases

func (impl TestSuitRestHandlerImpl) GetAllTestCases(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) GetTestCaseByID

func (impl TestSuitRestHandlerImpl) GetTestCaseByID(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) GetTestSuites

func (impl TestSuitRestHandlerImpl) GetTestSuites(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) HttpGet

func (impl TestSuitRestHandlerImpl) HttpGet(url string) (map[string]interface{}, error)

func (TestSuitRestHandlerImpl) RedirectTriggerForApp

func (impl TestSuitRestHandlerImpl) RedirectTriggerForApp(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) RedirectTriggerForEnv

func (impl TestSuitRestHandlerImpl) RedirectTriggerForEnv(w http.ResponseWriter, r *http.Request)

func (TestSuitRestHandlerImpl) SuitesProxy

func (impl TestSuitRestHandlerImpl) SuitesProxy(w http.ResponseWriter, r *http.Request)

type TestSuiteBean

type TestSuiteBean struct {
	Link       string `json:"link,omitempty"`
	PipelineId int    `json:"PipelineId"`
	TriggerId  int    `json:"triggerId"`
}

type UserAuthHandler

type UserAuthHandler interface {
	LoginHandler(w http.ResponseWriter, r *http.Request)
	CallbackHandler(w http.ResponseWriter, r *http.Request)
	AddPolicy(w http.ResponseWriter, r *http.Request)
	RemovePolicy(w http.ResponseWriter, r *http.Request)
	RefreshTokenHandler(w http.ResponseWriter, r *http.Request)

	GetAllSubjectsFromCasbin(w http.ResponseWriter, r *http.Request)
	GetRolesForUserFromCasbin(w http.ResponseWriter, r *http.Request)
	GetUserByRoleFromCasbin(w http.ResponseWriter, r *http.Request)
	DeleteRoleForUserFromCasbin(w http.ResponseWriter, r *http.Request)

	CreateRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)
	UpdateRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

	GetRolesByUserIdFromOrchestrator(w http.ResponseWriter, r *http.Request)
	GetAllRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)
	GetRoleByFilterFromOrchestrator(w http.ResponseWriter, r *http.Request)
	DeleteRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

	AddDefaultPolicyAndRoles(w http.ResponseWriter, r *http.Request)
	Subscribe() error
	AuthVerification(w http.ResponseWriter, r *http.Request)
	CreateSSOLoginConfig(w http.ResponseWriter, r *http.Request)
	UpdateSSOLoginConfig(w http.ResponseWriter, r *http.Request)
	GetAllSSOLoginConfig(w http.ResponseWriter, r *http.Request)
	GetSSOLoginConfig(w http.ResponseWriter, r *http.Request)
	GetSSOLoginConfigByName(w http.ResponseWriter, r *http.Request)
}

type UserAuthHandlerImpl

type UserAuthHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewUserAuthHandlerImpl

func NewUserAuthHandlerImpl(userAuthService user.UserAuthService, validator *validator.Validate,
	logger *zap.SugaredLogger, enforcer rbac.Enforcer, natsClient *pubsub.PubSubClient, userService user.UserService,
	ssoLoginService sso.SSOLoginService) *UserAuthHandlerImpl

func (UserAuthHandlerImpl) AddDefaultPolicyAndRoles

func (handler UserAuthHandlerImpl) AddDefaultPolicyAndRoles(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) AddPolicy

func (handler UserAuthHandlerImpl) AddPolicy(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) AuthVerification

func (handler UserAuthHandlerImpl) AuthVerification(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) CallbackHandler

func (handler UserAuthHandlerImpl) CallbackHandler(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) CreateRoleFromOrchestrator

func (handler UserAuthHandlerImpl) CreateRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) CreateSSOLoginConfig

func (handler UserAuthHandlerImpl) CreateSSOLoginConfig(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) DeleteRoleForUserFromCasbin

func (handler UserAuthHandlerImpl) DeleteRoleForUserFromCasbin(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) DeleteRoleFromOrchestrator

func (handler UserAuthHandlerImpl) DeleteRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetAllRoleFromOrchestrator

func (handler UserAuthHandlerImpl) GetAllRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetAllSSOLoginConfig

func (handler UserAuthHandlerImpl) GetAllSSOLoginConfig(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetAllSubjectsFromCasbin

func (handler UserAuthHandlerImpl) GetAllSubjectsFromCasbin(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetRoleByFilterFromOrchestrator

func (handler UserAuthHandlerImpl) GetRoleByFilterFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetRolesByUserIdFromOrchestrator

func (handler UserAuthHandlerImpl) GetRolesByUserIdFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetRolesForUserFromCasbin

func (handler UserAuthHandlerImpl) GetRolesForUserFromCasbin(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetSSOLoginConfig

func (handler UserAuthHandlerImpl) GetSSOLoginConfig(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetSSOLoginConfigByName

func (handler UserAuthHandlerImpl) GetSSOLoginConfigByName(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) GetUserByRoleFromCasbin

func (handler UserAuthHandlerImpl) GetUserByRoleFromCasbin(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) LoginHandler

func (handler UserAuthHandlerImpl) LoginHandler(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) RefreshTokenHandler

func (handler UserAuthHandlerImpl) RefreshTokenHandler(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) RemovePolicy

func (handler UserAuthHandlerImpl) RemovePolicy(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) Subscribe

func (handler UserAuthHandlerImpl) Subscribe() error

func (UserAuthHandlerImpl) UpdateRoleFromOrchestrator

func (handler UserAuthHandlerImpl) UpdateRoleFromOrchestrator(w http.ResponseWriter, r *http.Request)

func (UserAuthHandlerImpl) UpdateSSOLoginConfig

func (handler UserAuthHandlerImpl) UpdateSSOLoginConfig(w http.ResponseWriter, r *http.Request)

type UserRestHandler

type UserRestHandler interface {
	CreateUser(w http.ResponseWriter, r *http.Request)
	UpdateUser(w http.ResponseWriter, r *http.Request)
	GetById(w http.ResponseWriter, r *http.Request)
	GetAll(w http.ResponseWriter, r *http.Request)
	GetUsersByFilter(w http.ResponseWriter, r *http.Request)

	GetUserByEmail(w http.ResponseWriter, r *http.Request)
	DeleteUser(w http.ResponseWriter, r *http.Request)

	FetchRoleGroupById(w http.ResponseWriter, r *http.Request)
	CreateRoleGroup(w http.ResponseWriter, r *http.Request)
	UpdateRoleGroup(w http.ResponseWriter, r *http.Request)
	FetchRoleGroups(w http.ResponseWriter, r *http.Request)
	FetchRoleGroupsByName(w http.ResponseWriter, r *http.Request)
	DeleteRoleGroup(w http.ResponseWriter, r *http.Request)
	CheckUserRoles(w http.ResponseWriter, r *http.Request)
	SyncOrchestratorToCasbin(w http.ResponseWriter, r *http.Request)
}

type UserRestHandlerImpl

type UserRestHandlerImpl struct {
	// contains filtered or unexported fields
}

func NewUserRestHandlerImpl

func NewUserRestHandlerImpl(userService user.UserService, validator *validator.Validate,
	logger *zap.SugaredLogger, enforcer rbac.Enforcer, natsClient *pubsub.PubSubClient, roleGroupService user.RoleGroupService) *UserRestHandlerImpl

func (UserRestHandlerImpl) CheckUserRoles

func (handler UserRestHandlerImpl) CheckUserRoles(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) CreateRoleGroup

func (handler UserRestHandlerImpl) CreateRoleGroup(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) CreateUser

func (handler UserRestHandlerImpl) CreateUser(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) DeleteRoleGroup

func (handler UserRestHandlerImpl) DeleteRoleGroup(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) DeleteUser

func (handler UserRestHandlerImpl) DeleteUser(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) FetchRoleGroupById

func (handler UserRestHandlerImpl) FetchRoleGroupById(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) FetchRoleGroups

func (handler UserRestHandlerImpl) FetchRoleGroups(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) FetchRoleGroupsByName

func (handler UserRestHandlerImpl) FetchRoleGroupsByName(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetAll

func (handler UserRestHandlerImpl) GetAll(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetById

func (handler UserRestHandlerImpl) GetById(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetUserByEmail

func (handler UserRestHandlerImpl) GetUserByEmail(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) GetUsersByFilter

func (handler UserRestHandlerImpl) GetUsersByFilter(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) SyncOrchestratorToCasbin

func (handler UserRestHandlerImpl) SyncOrchestratorToCasbin(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) UpdateRoleGroup

func (handler UserRestHandlerImpl) UpdateRoleGroup(w http.ResponseWriter, r *http.Request)

func (UserRestHandlerImpl) UpdateUser

func (handler UserRestHandlerImpl) UpdateUser(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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