Documentation ¶
Overview ¶
Copyright 2023 The KodeRover Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2023 The KodeRover Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func AddSystemOperationLog(c *gin.Context)
- func BatchCreatePrivateKey(c *gin.Context)
- func CheckJenkinsIntegration(c *gin.Context)
- func CheckLLMIntegration(c *gin.Context)
- func CleanCache(c *gin.Context)
- func CleanCacheState(c *gin.Context)
- func CleanImageCache(c *gin.Context)
- func CleanSharedStorage(c *gin.Context)
- func CreateAnnouncement(c *gin.Context)
- func CreateBasicImage(c *gin.Context)
- func CreateConfigurationManagement(c *gin.Context)
- func CreateDBInstance(c *gin.Context)
- func CreateExternalLink(c *gin.Context)
- func CreateExternalSystem(c *gin.Context)
- func CreateFavorite(c *gin.Context)
- func CreateHelmRepo(c *gin.Context)
- func CreateIMApp(c *gin.Context)
- func CreateInstall(c *gin.Context)
- func CreateJenkinsIntegration(c *gin.Context)
- func CreateLLMIntegration(c *gin.Context)
- func CreateObservability(c *gin.Context)
- func CreateOrUpdateDashboardConfiguration(c *gin.Context)
- func CreateOrUpdateSecuritySettings(c *gin.Context)
- func CreatePrivateKey(c *gin.Context)
- func CreateProjectManagement(c *gin.Context)
- func CreateProxy(c *gin.Context)
- func CreateRegistryNamespace(c *gin.Context)
- func CreateS3Storage(c *gin.Context)
- func CreateSonarIntegration(c *gin.Context)
- func DeleteAnnouncement(c *gin.Context)
- func DeleteBasicImage(c *gin.Context)
- func DeleteConfigurationManagement(c *gin.Context)
- func DeleteDBInstance(c *gin.Context)
- func DeleteExternalLink(c *gin.Context)
- func DeleteExternalSystem(c *gin.Context)
- func DeleteFavorite(c *gin.Context)
- func DeleteHelmRepo(c *gin.Context)
- func DeleteIMApp(c *gin.Context)
- func DeleteInstall(c *gin.Context)
- func DeleteJenkinsIntegration(c *gin.Context)
- func DeleteLLMIntegration(c *gin.Context)
- func DeleteNotifies(c *gin.Context)
- func DeleteObservability(c *gin.Context)
- func DeletePrivateKey(c *gin.Context)
- func DeleteProjectManagement(c *gin.Context)
- func DeleteProxy(c *gin.Context)
- func DeleteRegistryNamespace(c *gin.Context)
- func DeleteS3Storage(c *gin.Context)
- func DeleteSonarIntegration(c *gin.Context)
- func DingTalkEventHandler(c *gin.Context)
- func GarbageCollection(c *gin.Context)
- func GetBasicImage(c *gin.Context)
- func GetConfigurationManagement(c *gin.Context)
- func GetDBInstance(c *gin.Context)
- func GetDashboardConfiguration(c *gin.Context)
- func GetDefaultLogin(c *gin.Context)
- func GetDefaultRegistryNamespace(c *gin.Context)
- func GetDingTalkDepartment(c *gin.Context)
- func GetDingTalkUserID(c *gin.Context)
- func GetExternalSystemDetail(c *gin.Context)
- func GetInstall(c *gin.Context)
- func GetJiraAllStatus(c *gin.Context)
- func GetJiraTypes(c *gin.Context)
- func GetLLMIntegration(c *gin.Context)
- func GetLarkDepartment(c *gin.Context)
- func GetLarkUserID(c *gin.Context)
- func GetMeegoProjects(c *gin.Context)
- func GetMyEnvironment(c *gin.Context)
- func GetMyWorkflow(c *gin.Context)
- func GetNacosConfig(c *gin.Context)
- func GetOperationLogs(c *gin.Context)
- func GetPrivateKey(c *gin.Context)
- func GetProxy(c *gin.Context)
- func GetProxyConfig(c *gin.Context)
- func GetRSAPublicKey(c *gin.Context)
- func GetRegistryNamespace(c *gin.Context)
- func GetRunningWorkflow(c *gin.Context)
- func GetS3Storage(c *gin.Context)
- func GetSecuritySettings(c *gin.Context)
- func GetSonarIntegration(c *gin.Context)
- func GetStrategy(c *gin.Context)
- func GetSystemInitializationStatus(c *gin.Context)
- func GetTextFromEncryptedKey(c *gin.Context)
- func GetThemeInfos(c *gin.Context)
- func GetWebhookConfig(c *gin.Context)
- func GetWorkItemTypeList(c *gin.Context)
- func GetWorkflowConcurrency(c *gin.Context)
- func HandleJiraEvent(c *gin.Context)
- func HandleMeegoEvent(c *gin.Context)
- func InitializeUser(c *gin.Context)
- func LarkEventHandler(c *gin.Context)
- func ListAllRepos(c *gin.Context)
- func ListApolloApps(c *gin.Context)
- func ListApolloConfig(c *gin.Context)
- func ListApolloConfigByType(c *gin.Context)
- func ListApolloEnvAndClusters(c *gin.Context)
- func ListApolloNamespaces(c *gin.Context)
- func ListAvailableWorkItemTransitions(c *gin.Context)
- func ListBasicImages(c *gin.Context)
- func ListCharts(c *gin.Context)
- func ListConfigurationManagement(c *gin.Context)
- func ListDBInstance(c *gin.Context)
- func ListDBInstanceInfo(c *gin.Context)
- func ListDBInstancesInfoByProject(c *gin.Context)
- func ListExternalLinks(c *gin.Context)
- func ListExternalSystem(c *gin.Context)
- func ListGrafanaAlert(c *gin.Context)
- func ListGuanceyunMonitor(c *gin.Context)
- func ListHelmRepos(c *gin.Context)
- func ListHelmReposByProject(c *gin.Context)
- func ListHelmReposPublic(c *gin.Context)
- func ListIMApp(c *gin.Context)
- func ListImages(c *gin.Context)
- func ListInstalls(c *gin.Context)
- func ListJenkinsIntegration(c *gin.Context)
- func ListJiraProjects(c *gin.Context)
- func ListJobBuildArgs(c *gin.Context)
- func ListJobNames(c *gin.Context)
- func ListLLMIntegration(c *gin.Context)
- func ListLabels(c *gin.Context)
- func ListMeegoWorkItems(c *gin.Context)
- func ListNacosConfig(c *gin.Context)
- func ListNacosConfigByType(c *gin.Context)
- func ListNacosNamespace(c *gin.Context)
- func ListObservability(c *gin.Context)
- func ListObservabilityDetail(c *gin.Context)
- func ListPrivateKeys(c *gin.Context)
- func ListPrivateKeysInternal(c *gin.Context)
- func ListProjectManagement(c *gin.Context)
- func ListProjectManagementForProject(c *gin.Context)
- func ListProxies(c *gin.Context)
- func ListRegistries(c *gin.Context)
- func ListRegistryNamespaces(c *gin.Context)
- func ListRepoImages(c *gin.Context)
- func ListS3Storage(c *gin.Context)
- func ListS3StorageByProject(c *gin.Context)
- func ListSonarIntegration(c *gin.Context)
- func ListSubscriptions(c *gin.Context)
- func ListTars(c *gin.Context)
- func OpenAPICreateRegistry(c *gin.Context)
- func OpenAPIDeleteCluster(c *gin.Context)
- func OpenAPIGetRegistry(c *gin.Context)
- func OpenAPIListCluster(c *gin.Context)
- func OpenAPIListRegistry(c *gin.Context)
- func OpenAPIUpdateCluster(c *gin.Context)
- func OpenAPIUpdateRegistry(c *gin.Context)
- func PullAllAnnouncement(c *gin.Context)
- func PullNotify(c *gin.Context)
- func PullNotifyAnnouncement(c *gin.Context)
- func ReadNotify(c *gin.Context)
- func SearchJiraIssues(c *gin.Context)
- func SearchJiraProjectIssuesWithJQL(c *gin.Context)
- func SetCron(c *gin.Context)
- func TestConnection(c *gin.Context)
- func TestJenkinsConnection(c *gin.Context)
- func Unsubscribe(c *gin.Context)
- func UpdateAnnouncement(c *gin.Context)
- func UpdateBasicImage(c *gin.Context)
- func UpdateConfigurationManagement(c *gin.Context)
- func UpdateDBInstance(c *gin.Context)
- func UpdateDefaultLogin(c *gin.Context)
- func UpdateExternalLink(c *gin.Context)
- func UpdateExternalSystem(c *gin.Context)
- func UpdateHelmRepo(c *gin.Context)
- func UpdateIMApp(c *gin.Context)
- func UpdateInstall(c *gin.Context)
- func UpdateJenkinsIntegration(c *gin.Context)
- func UpdateLLMIntegration(c *gin.Context)
- func UpdateObservability(c *gin.Context)
- func UpdateOperationLog(c *gin.Context)
- func UpdatePrivateKey(c *gin.Context)
- func UpdateProjectManagement(c *gin.Context)
- func UpdateProxy(c *gin.Context)
- func UpdateRegistryNamespace(c *gin.Context)
- func UpdateS3Storage(c *gin.Context)
- func UpdateSonarIntegration(c *gin.Context)
- func UpdateStrategy(c *gin.Context)
- func UpdateSubscribe(c *gin.Context)
- func UpdateThemeInfo(c *gin.Context)
- func UpdateWorkflowConcurrency(c *gin.Context)
- func UpsertSubscription(c *gin.Context)
- func Validate(c *gin.Context)
- func ValidateConfigurationManagement(c *gin.Context)
- func ValidateDBInstance(c *gin.Context)
- func ValidateIMApp(c *gin.Context)
- func ValidateObservability(c *gin.Context)
- func ValidateSonarInformation(c *gin.Context)
- type AdvancedRegistrySetting
- type CheckJenkinsIntegrationResp
- type CreateLLMIntegrationRequest
- type DryRunFlag
- type GetLLMIntegrationRespone
- type GrafanaAlert
- type GuanceyunMonitor
- type InitializeUserReq
- type ListImagesOption
- type ListTarsOption
- type OpenAPIRouter
- type ProxyConfig
- type Registry
- type Router
- type SetCleanConfig
Constants ¶
This section is empty.
Variables ¶
var SonarIntegrationValidationError = errors.New("name and server must be provided")
Functions ¶
func AddSystemOperationLog ¶
func BatchCreatePrivateKey ¶
func CheckJenkinsIntegration ¶
func CheckLLMIntegration ¶
@Summary Check llm integrations @Description Check llm integrations @Tags system @Accept json @Produce json @Success 200 {object} checkLLMIntegrationResponse @Router /api/aslan/system/llm/integration/check [get]
func CleanCache ¶
func CleanCacheState ¶
func CleanImageCache ¶
func CleanSharedStorage ¶
func CreateAnnouncement ¶
func CreateBasicImage ¶
func CreateDBInstance ¶
func CreateExternalLink ¶
func CreateExternalSystem ¶
func CreateFavorite ¶
func CreateHelmRepo ¶
func CreateIMApp ¶
func CreateInstall ¶
func CreateLLMIntegration ¶
@Summary Create a llm integration @Description Create a llm integration @Tags system @Accept json @Produce json @Param body body CreateLLMIntegrationRequest true "body" @Success 200 @Router /api/aslan/system/llm/integration [post]
func CreateObservability ¶
func CreatePrivateKey ¶
func CreateProjectManagement ¶
func CreateProxy ¶
func CreateRegistryNamespace ¶
func CreateS3Storage ¶
func CreateSonarIntegration ¶
func DeleteAnnouncement ¶
func DeleteBasicImage ¶
func DeleteDBInstance ¶
func DeleteExternalLink ¶
func DeleteExternalSystem ¶
func DeleteFavorite ¶
func DeleteHelmRepo ¶
func DeleteIMApp ¶
func DeleteInstall ¶
func DeleteLLMIntegration ¶
@Summary Delete a llm integration @Description Delete a llm integration @Tags system @Accept json @Produce json @Param id path string true "id" @Success 200 @Router /api/aslan/system/llm/integration/{id} [delete]
func DeleteNotifies ¶
func DeleteObservability ¶
func DeletePrivateKey ¶
func DeleteProjectManagement ¶
func DeleteProxy ¶
func DeleteRegistryNamespace ¶
func DeleteS3Storage ¶
func DeleteSonarIntegration ¶
func DingTalkEventHandler ¶
func GarbageCollection ¶
func GetBasicImage ¶
func GetDBInstance ¶
func GetDefaultLogin ¶
func GetDingTalkDepartment ¶
func GetDingTalkUserID ¶
func GetExternalSystemDetail ¶
func GetInstall ¶
func GetJiraAllStatus ¶
func GetJiraTypes ¶
func GetLLMIntegration ¶
@Summary Get a llm integration @Description Get a llm integration @Tags system @Accept json @Produce json @Param id path string true "id" @Success 200 {object} commonmodels.LLMIntegration @Router /api/aslan/system/llm/integration/{id} [get]
func GetLarkDepartment ¶
func GetLarkUserID ¶
func GetMeegoProjects ¶
@Summary List Meego Projects @Description List Meego Projects @Tags system @Accept json @Produce json @Param id path string true "meego id" @Success 200 {object} service.MeegoProjectResp @Router /api/aslan/system/meego/{id}/projects [get]
func GetMyEnvironment ¶
func GetMyWorkflow ¶
func GetNacosConfig ¶
func GetOperationLogs ¶
func GetPrivateKey ¶
func GetProxyConfig ¶
func GetRSAPublicKey ¶
func GetRegistryNamespace ¶
func GetRunningWorkflow ¶
func GetS3Storage ¶
func GetSecuritySettings ¶
func GetSonarIntegration ¶
func GetStrategy ¶
func GetTextFromEncryptedKey ¶
func GetThemeInfos ¶
func GetWebhookConfig ¶
@Summary Get webhook config @Description Get webhook config @Tags system @Accept json @Produce json @Success 200 {object} service.GetWebhookConfigReponse @Router /api/aslan/system/webhook/config [get]
func GetWorkItemTypeList ¶
@Summary Get Meego Work Item Type List @Description Get Meego Work Item Type List @Tags system @Accept json @Produce json @Param id path string true "meego id" @Param projectID path string true "project id" @Success 200 {object} service.MeegoWorkItemTypeResp @Router /api/aslan/system/meego/{id}/projects/{projectID}/work_item/types [get]
func GetWorkflowConcurrency ¶
func HandleJiraEvent ¶
func HandleMeegoEvent ¶
func InitializeUser ¶
func LarkEventHandler ¶
func ListAllRepos ¶
func ListApolloApps ¶
func ListApolloConfig ¶
func ListApolloConfigByType ¶
func ListApolloNamespaces ¶
func ListBasicImages ¶
func ListCharts ¶
func ListDBInstance ¶
func ListDBInstanceInfo ¶
func ListDBInstancesInfoByProject ¶
@Summary List DB Instances Info By Project @Description List DB Instances Info By Project @Tags system @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} commonmodels.DBInstance @Router /api/aslan/system/dbinstance/project [get]
func ListExternalLinks ¶
func ListExternalSystem ¶
func ListGrafanaAlert ¶
func ListGuanceyunMonitor ¶
func ListHelmRepos ¶
func ListHelmReposByProject ¶
@Summary List Helm Repos By Project @Description List Helm Repos By Project @Tags system @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} commonmodels.HelmRepo @Router /api/aslan/system/helm/project [get]
func ListHelmReposPublic ¶
func ListImages ¶
func ListInstalls ¶
func ListJenkinsIntegration ¶
func ListJiraProjects ¶
@Summary List Jira Projects @Description List Jira Projects @Tags system @Accept json @Produce json @Param id path string true "jira id" @Success 200 {array} service.JiraProjectsResp @Router /api/aslan/system/project_management/{id}/jira/project [get]
func ListJobBuildArgs ¶
func ListJobNames ¶
func ListLLMIntegration ¶
@Summary List llm integrations @Description List llm integrations @Tags system @Accept json @Produce json @Success 200 {array} commonmodels.LLMIntegration @Router /api/aslan/system/llm/integration [get]
func ListLabels ¶
func ListMeegoWorkItems ¶
@Summary List Meego Work Items @Description List Meego Work Items @Tags system @Accept json @Produce json @Param id path string true "meego id" @Param projectID path string true "project id" @Param type_key query string true "type key" @Param page_num query string true "page num" @Param page_size query string true "page size" @Param item_name query string true "item name" @Success 200 {object} service.MeegoWorkItemResp @Router /api/aslan/system/meego/{id}/projects/{projectID}/work_item [get]
func ListNacosConfig ¶
func ListNacosConfigByType ¶
func ListNacosNamespace ¶
func ListObservability ¶
func ListObservabilityDetail ¶
func ListPrivateKeys ¶
func ListPrivateKeysInternal ¶
func ListProjectManagement ¶
func ListProjectManagementForProject ¶
@Summary List Project Management For Project @Description List Project Management For Project @Tags system @Accept json @Produce json @Success 200 {array} models.ProjectManagement @Router /api/aslan/system/project_management/project [get]
func ListProxies ¶
func ListRegistries ¶
@Summary List Registries @Description List Registries @Tags system @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} commonmodels.RegistryNamespace @Router /api/aslan/system/registry/project [get]
func ListRegistryNamespaces ¶
func ListRepoImages ¶
func ListS3Storage ¶
func ListS3StorageByProject ¶
@Summary List S3 Storage By Project @Description List S3 Storage By Project @Tags system @Accept json @Produce json @Param projectName query string true "project name" @Success 200 {array} commonmodels.S3Storage @Router /api/aslan/system/s3storage/project [get]
func ListSonarIntegration ¶
func ListSubscriptions ¶
func OpenAPICreateRegistry ¶
func OpenAPIDeleteCluster ¶
func OpenAPIGetRegistry ¶
func OpenAPIListCluster ¶
func OpenAPIListRegistry ¶
func OpenAPIUpdateCluster ¶
func OpenAPIUpdateRegistry ¶
func PullAllAnnouncement ¶
func PullNotify ¶
func PullNotifyAnnouncement ¶
func ReadNotify ¶
func SearchJiraIssues ¶
func TestConnection ¶
func TestJenkinsConnection ¶
func Unsubscribe ¶
func UpdateAnnouncement ¶
func UpdateBasicImage ¶
func UpdateDBInstance ¶
func UpdateDefaultLogin ¶
func UpdateExternalLink ¶
func UpdateExternalSystem ¶
func UpdateHelmRepo ¶
func UpdateIMApp ¶
func UpdateInstall ¶
func UpdateLLMIntegration ¶
@Summary Update a llm integration @Description Update a llm integration @Tags system @Accept json @Produce json @Param id path string true "id" @Param body body CreateLLMIntegrationRequest true "body" @Success 200 @Router /api/aslan/system/llm/integration/{id} [put]
func UpdateObservability ¶
func UpdateOperationLog ¶
func UpdatePrivateKey ¶
func UpdateProjectManagement ¶
func UpdateProxy ¶
func UpdateRegistryNamespace ¶
func UpdateS3Storage ¶
func UpdateSonarIntegration ¶
func UpdateStrategy ¶
func UpdateSubscribe ¶
func UpdateThemeInfo ¶
func UpsertSubscription ¶
func ValidateDBInstance ¶
func ValidateIMApp ¶
func ValidateObservability ¶
Types ¶
type AdvancedRegistrySetting ¶
type CheckJenkinsIntegrationResp ¶
type CheckJenkinsIntegrationResp struct {
Exists bool `json:"exists"`
}
type DryRunFlag ¶
type DryRunFlag struct {
DryRun bool `json:"dryrun"`
}
DryRunFlag indicates whether a run is a dry run or not. If it is a dry run, the relevant API is supposed to be no-op except logging.
type GrafanaAlert ¶
type GuanceyunMonitor ¶
type InitializeUserReq ¶
type InitializeUserReq struct { Username string `json:"username"` Password string `json:"password"` Company string `json:"company"` Email string `json:"email"` Phone int64 `json:"phone"` ImprovementPlan bool `json:"improvement_plan"` }
func (*InitializeUserReq) Validate ¶
func (req *InitializeUserReq) Validate() error
type ListImagesOption ¶
type ListImagesOption struct {
Names []string `json:"names"`
}
type ListTarsOption ¶
type ListTarsOption struct {
Names []string `json:"names"`
}
type OpenAPIRouter ¶
type OpenAPIRouter struct{}
func (*OpenAPIRouter) Inject ¶
func (*OpenAPIRouter) Inject(router *gin.RouterGroup)
type ProxyConfig ¶
type Router ¶
type Router struct{}
func (*Router) Inject ¶
func (*Router) Inject(router *gin.RouterGroup)
type SetCleanConfig ¶
Source Files ¶
- announcement.go
- approval.go
- basic_images.go
- capacity.go
- concurrency.go
- configuration_management.go
- custom_theme.go
- dashboard.go
- database.go
- dingtalk.go
- external_link.go
- external_system.go
- favorite.go
- grafana.go
- guanceyun.go
- helm.go
- initialization.go
- install.go
- jenkins.go
- lark.go
- llm.go
- login.go
- meego.go
- middleware.go
- nacos.go
- notify.go
- observability.go
- openapi.go
- operation.go
- private_key.go
- project_management.go
- proxy.go
- registry.go
- resp.go
- response.go
- router.go
- rsa_key.go
- s3.go
- security.go
- sonar.go
- system_cache.go
- webhook.go