router

package
v0.0.0-...-19fb9ea Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollTopic

func PollTopic(r *http.Request) (string, error)

Types

type AppLabelRouter

type AppLabelRouter interface {
	// contains filtered or unexported methods
}

type AppLabelRouterImpl

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

func NewAppLabelRouterImpl

func NewAppLabelRouterImpl(logger *zap.SugaredLogger, handler restHandler.AppLabelRestHandler) *AppLabelRouterImpl

type AppListingRouter

type AppListingRouter interface {
	// contains filtered or unexported methods
}

type AppListingRouterImpl

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

func NewAppListingRouterImpl

func NewAppListingRouterImpl(appListingRestHandler restHandler.AppListingRestHandler) *AppListingRouterImpl

type ApplicationRouter

type ApplicationRouter interface {
	// contains filtered or unexported methods
}

type ApplicationRouterImpl

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

type AttributesRouter

type AttributesRouter interface {
	// contains filtered or unexported methods
}

type AttributesRouterImpl

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

func NewAttributesRouterImpl

func NewAttributesRouterImpl(attributesRestHandler restHandler.AttributesRestHandler) *AttributesRouterImpl

type BatchOperationRouter

type BatchOperationRouter interface {
	// contains filtered or unexported methods
}

type BatchOperationRouterImpl

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

type BulkUpdateRouter

type BulkUpdateRouter interface {
	// contains filtered or unexported methods
}

type BulkUpdateRouterImpl

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

type CDRouter

type CDRouter interface {
	// contains filtered or unexported methods
}

type CDRouterImpl

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

func NewCDRouterImpl

func NewCDRouterImpl(logger *zap.SugaredLogger, cdRestHandler restHandler.CDRestHandler) *CDRouterImpl

type ChartGroupRouter

type ChartGroupRouter interface {
	// contains filtered or unexported methods
}

type ChartGroupRouterImpl

type ChartGroupRouterImpl struct {
	ChartGroupRestHandler restHandler.ChartGroupRestHandler
}

func NewChartGroupRouterImpl

func NewChartGroupRouterImpl(ChartGroupRestHandler restHandler.ChartGroupRestHandler) *ChartGroupRouterImpl

type ChartRefRouter

type ChartRefRouter interface {
	// contains filtered or unexported methods
}

type ChartRefRouterImpl

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

func NewChartRefRouterImpl

func NewChartRefRouterImpl(chartRefRestHandler restHandler.ChartRefRestHandler) *ChartRefRouterImpl

type CommonRouter

type CommonRouter interface {
	InitCommonRouter(router *mux.Router)
}

type CommonRouterImpl

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

func NewCommonRouterImpl

func NewCommonRouterImpl(commonRestHandler restHandler.CommonRestHanlder) *CommonRouterImpl

func (CommonRouterImpl) InitCommonRouter

func (impl CommonRouterImpl) InitCommonRouter(router *mux.Router)

type ConfigMapRouter

type ConfigMapRouter interface {
	// contains filtered or unexported methods
}

type ConfigMapRouterImpl

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

func NewConfigMapRouterImpl

func NewConfigMapRouterImpl(restHandler restHandler.ConfigMapRestHandler) *ConfigMapRouterImpl

type CoreAppRouter

type CoreAppRouter interface {
	// contains filtered or unexported methods
}

type CoreAppRouterImpl

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

func NewCoreAppRouterImpl

func NewCoreAppRouterImpl(restHandler restHandler.CoreAppRestHandler) *CoreAppRouterImpl

type DeploymentGroupRouter

type DeploymentGroupRouter interface {
	// contains filtered or unexported methods
}

type DeploymentGroupRouterImpl

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

type DockerRegRouter

type DockerRegRouter interface {
	InitDockerRegRouter(gocdRouter *mux.Router)
}

type DockerRegRouterImpl

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

func NewDockerRegRouterImpl

func NewDockerRegRouterImpl(dockerRestHandler restHandler.DockerRegRestHandler) *DockerRegRouterImpl

func (DockerRegRouterImpl) InitDockerRegRouter

func (impl DockerRegRouterImpl) InitDockerRegRouter(configRouter *mux.Router)

type GitHostRouter

type GitHostRouter interface {
	InitGitHostRouter(gocdRouter *mux.Router)
}

type GitHostRouterImpl

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

func NewGitHostRouterImpl

func NewGitHostRouterImpl(gitHostRestHandler restHandler.GitHostRestHandler) *GitHostRouterImpl

func (GitHostRouterImpl) InitGitHostRouter

func (impl GitHostRouterImpl) InitGitHostRouter(configRouter *mux.Router)

type GitOpsConfigRouter

type GitOpsConfigRouter interface {
	InitGitOpsConfigRouter(gocdRouter *mux.Router)
}

type GitOpsConfigRouterImpl

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

func NewGitOpsConfigRouterImpl

func NewGitOpsConfigRouterImpl(gitOpsConfigRestHandler restHandler.GitOpsConfigRestHandler) *GitOpsConfigRouterImpl

func (GitOpsConfigRouterImpl) InitGitOpsConfigRouter

func (impl GitOpsConfigRouterImpl) InitGitOpsConfigRouter(configRouter *mux.Router)

type GitProviderRouter

type GitProviderRouter interface {
	InitGitProviderRouter(gocdRouter *mux.Router)
}

type GitProviderRouterImpl

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

func NewGitProviderRouterImpl

func NewGitProviderRouterImpl(gitRestHandler restHandler.GitProviderRestHandler) *GitProviderRouterImpl

func (GitProviderRouterImpl) InitGitProviderRouter

func (impl GitProviderRouterImpl) InitGitProviderRouter(configRouter *mux.Router)

type GlobalPluginRouter

type GlobalPluginRouter interface {
	// contains filtered or unexported methods
}

type GlobalPluginRouterImpl

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

func NewGlobalPluginRouter

func NewGlobalPluginRouter(logger *zap.SugaredLogger, globalPluginRestHandler restHandler.GlobalPluginRestHandler) *GlobalPluginRouterImpl

type GrafanaRouter

type GrafanaRouter interface {
	// contains filtered or unexported methods
}

type GrafanaRouterImpl

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

func NewGrafanaRouterImpl

func NewGrafanaRouterImpl(logger *zap.SugaredLogger, grafanaCfg *grafana.Config) *GrafanaRouterImpl

type HelmRouter

type HelmRouter interface {
	// contains filtered or unexported methods
}

type HelmRouterImpl

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

func NewHelmRouter

func NewHelmRouter(pipelineRestHandler restHandler.PipelineTriggerRestHandler, sseChannel *sse2.SSE) *HelmRouterImpl

type ImageScanRouter

type ImageScanRouter interface {
	InitImageScanRouter(gocdRouter *mux.Router)
}

type ImageScanRouterImpl

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

func NewImageScanRouterImpl

func NewImageScanRouterImpl(imageScanRestHandler restHandler.ImageScanRestHandler) *ImageScanRouterImpl

func (ImageScanRouterImpl) InitImageScanRouter

func (impl ImageScanRouterImpl) InitImageScanRouter(configRouter *mux.Router)

type MigrateDbRouter

type MigrateDbRouter interface {
	InitMigrateDbRouter(migrateRouter *mux.Router)
}

type MigrateDbRouterImpl

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

func NewMigrateDbRouterImpl

func NewMigrateDbRouterImpl(migrateDbRestHandler restHandler.MigrateDbRestHandler) *MigrateDbRouterImpl

func (MigrateDbRouterImpl) InitMigrateDbRouter

func (impl MigrateDbRouterImpl) InitMigrateDbRouter(migrateRouter *mux.Router)

type MuxRouter

type MuxRouter struct {
	Router                           *mux.Router
	HelmRouter                       HelmRouter
	PipelineConfigRouter             PipelineConfigRouter
	MigrateDbRouter                  MigrateDbRouter
	EnvironmentClusterMappingsRouter cluster.EnvironmentRouter
	AppListingRouter                 AppListingRouter
	ClusterRouter                    cluster.ClusterRouter
	WebHookRouter                    WebhookRouter
	UserAuthRouter                   user.UserAuthRouter
	ApplicationRouter                ApplicationRouter
	CDRouter                         CDRouter
	ProjectManagementRouter          ProjectManagementRouter
	GitProviderRouter                GitProviderRouter
	GitHostRouter                    GitHostRouter
	DockerRegRouter                  DockerRegRouter
	NotificationRouter               NotificationRouter
	TeamRouter                       team.TeamRouter
	UserRouter                       user.UserRouter

	ChartRefRouter        ChartRefRouter
	ConfigMapRouter       ConfigMapRouter
	AppStoreRouter        appStore.AppStoreRouter
	ChartRepositoryRouter chartRepo.ChartRepositoryRouter
	ReleaseMetricsRouter  ReleaseMetricsRouter

	WebhookListenerRouter WebhookListenerRouter
	// contains filtered or unexported fields
}

func NewMuxRouter

func NewMuxRouter(logger *zap.SugaredLogger, HelmRouter HelmRouter, PipelineConfigRouter PipelineConfigRouter,
	MigrateDbRouter MigrateDbRouter, AppListingRouter AppListingRouter,
	EnvironmentClusterMappingsRouter cluster.EnvironmentRouter, ClusterRouter cluster.ClusterRouter,
	WebHookRouter WebhookRouter, UserAuthRouter user.UserAuthRouter, ApplicationRouter ApplicationRouter,
	CDRouter CDRouter, ProjectManagementRouter ProjectManagementRouter,
	GitProviderRouter GitProviderRouter, GitHostRouter GitHostRouter,
	DockerRegRouter DockerRegRouter,
	NotificationRouter NotificationRouter,
	TeamRouter team.TeamRouter,
	gitWebhookHandler pubsub.GitWebhookHandler,
	workflowUpdateHandler pubsub.WorkflowStatusUpdateHandler,
	appUpdateHandler pubsub.ApplicationStatusUpdateHandler,
	ciEventHandler pubsub.CiEventHandler, UserRouter user.UserRouter, cronBasedEventReceiver pubsub.CronBasedEventReceiver,
	ChartRefRouter ChartRefRouter, ConfigMapRouter ConfigMapRouter, AppStoreRouter appStore.AppStoreRouter, chartRepositoryRouter chartRepo.ChartRepositoryRouter,
	ReleaseMetricsRouter ReleaseMetricsRouter, deploymentGroupRouter DeploymentGroupRouter, batchOperationRouter BatchOperationRouter,
	chartGroupRouter ChartGroupRouter, testSuitRouter TestSuitRouter, imageScanRouter ImageScanRouter,
	policyRouter PolicyRouter, gitOpsConfigRouter GitOpsConfigRouter, dashboardRouter dashboard.DashboardRouter, attributesRouter AttributesRouter,
	commonRouter CommonRouter, grafanaRouter GrafanaRouter, ssoLoginRouter sso.SsoLoginRouter, telemetryRouter TelemetryRouter, telemetryWatcher telemetry.TelemetryEventClient, bulkUpdateRouter BulkUpdateRouter, webhookListenerRouter WebhookListenerRouter, appLabelsRouter AppLabelRouter,
	coreAppRouter CoreAppRouter, helmAppRouter client.HelmAppRouter, k8sApplicationRouter k8s.K8sApplicationRouter,
	pProfRouter PProfRouter, deploymentConfigRouter deployment.DeploymentConfigRouter, dashboardTelemetryRouter dashboardEvent.DashboardTelemetryRouter,
	commonDeploymentRouter appStoreDeployment.CommonDeploymentRouter, externalLinkRouter externalLink.ExternalLinkRouter,
	globalPluginRouter GlobalPluginRouter, moduleRouter module.ModuleRouter,
	serverRouter server.ServerRouter, apiTokenRouter apiToken.ApiTokenRouter,
	helmApplicationStatusUpdateHandler cron.HelmApplicationStatusUpdateHandler, k8sCapacityRouter k8s.K8sCapacityRouter, webhookHelmRouter webhookHelm.WebhookHelmRouter) *MuxRouter

func (MuxRouter) Init

func (r MuxRouter) Init()

type NotificationRouter

type NotificationRouter interface {
	InitNotificationRegRouter(gocdRouter *mux.Router)
}

type NotificationRouterImpl

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

func NewNotificationRouterImpl

func NewNotificationRouterImpl(notificationRestHandler restHandler.NotificationRestHandler) *NotificationRouterImpl

func (NotificationRouterImpl) InitNotificationRegRouter

func (impl NotificationRouterImpl) InitNotificationRegRouter(configRouter *mux.Router)

type PProfRouter

type PProfRouter interface {
	// contains filtered or unexported methods
}

type PProfRouterImpl

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

func NewPProfRouter

func NewPProfRouter(logger *zap.SugaredLogger,
	pprofRestHandler restHandler.PProfRestHandler) *PProfRouterImpl

type PipelineConfigRouter

type PipelineConfigRouter interface {
	// contains filtered or unexported methods
}

type PipelineConfigRouterImpl

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

func NewPipelineRouterImpl

func NewPipelineRouterImpl(restHandler app.PipelineConfigRestHandler,
	appWorkflowRestHandler restHandler.AppWorkflowRestHandler,
	webhookDataRestHandler restHandler.WebhookDataRestHandler,
	pipelineHistoryRestHandler restHandler.PipelineHistoryRestHandler) *PipelineConfigRouterImpl

type PolicyRouter

type PolicyRouter interface {
	InitPolicyRouter(configRouter *mux.Router)
}

type PolicyRouterImpl

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

func NewPolicyRouterImpl

func NewPolicyRouterImpl(policyRestHandler restHandler.PolicyRestHandler) *PolicyRouterImpl

func (PolicyRouterImpl) InitPolicyRouter

func (impl PolicyRouterImpl) InitPolicyRouter(configRouter *mux.Router)

type ProjectManagementRouter

type ProjectManagementRouter interface {
	InitProjectManagementRouter(jiraRouter *mux.Router)
}

type ProjectManagementRouterImpl

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

func NewProjectManagementRouterImpl

func NewProjectManagementRouterImpl(jiraRestHandler restHandler.JiraRestHandler) *ProjectManagementRouterImpl

func (ProjectManagementRouterImpl) InitProjectManagementRouter

func (impl ProjectManagementRouterImpl) InitProjectManagementRouter(jiraRouter *mux.Router)

type ReleaseMetricsRouter

type ReleaseMetricsRouter interface {
	// contains filtered or unexported methods
}

type ReleaseMetricsRouterImpl

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

func NewReleaseMetricsRouterImpl

func NewReleaseMetricsRouterImpl(logger *zap.SugaredLogger,
	releaseMetricsRestHandler restHandler.ReleaseMetricsRestHandler) *ReleaseMetricsRouterImpl

type TelemetryRouter

type TelemetryRouter interface {
	// contains filtered or unexported methods
}

type TelemetryRouterImpl

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

func NewTelemetryRouterImpl

func NewTelemetryRouterImpl(logger *zap.SugaredLogger, handler restHandler.TelemetryRestHandler) *TelemetryRouterImpl

type TestSuitRouter

type TestSuitRouter interface {
	InitTestSuitRouter(gocdRouter *mux.Router)
}

type TestSuitRouterImpl

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

func NewTestSuitRouterImpl

func NewTestSuitRouterImpl(testSuitRouter restHandler.TestSuitRestHandler) *TestSuitRouterImpl

func (TestSuitRouterImpl) InitTestSuitRouter

func (impl TestSuitRouterImpl) InitTestSuitRouter(configRouter *mux.Router)

type WebhookListenerRouter

type WebhookListenerRouter interface {
	InitWebhookListenerRouter(gocdRouter *mux.Router)
}

type WebhookListenerRouterImpl

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

func NewWebhookListenerRouterImpl

func NewWebhookListenerRouterImpl(webhookEventHandler restHandler.WebhookEventHandler) *WebhookListenerRouterImpl

func (WebhookListenerRouterImpl) InitWebhookListenerRouter

func (impl WebhookListenerRouterImpl) InitWebhookListenerRouter(configRouter *mux.Router)

type WebhookRouter

type WebhookRouter interface {
	// contains filtered or unexported methods
}

type WebhookRouterImpl

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

func NewWebhookRouterImpl

func NewWebhookRouterImpl(gitWebhookRestHandler restHandler.GitWebhookRestHandler,
	pipelineRestHandler app.PipelineConfigRestHandler, externalCiRestHandler restHandler.ExternalCiRestHandler,
	pubSubClientRestHandler restHandler.PubSubClientRestHandler) *WebhookRouterImpl

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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