Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const ContainerStateReasonCrashLoopBackOff + const ContainerStateReasonImagePullBackOff + const ContainerStateReasonRunContainerError + const INSTANCE_REQUEST_TYPE_APPLICATION + const INSTANCE_REQUEST_TYPE_PROJECT + const INSTANCE_REQUEST_TYPE_RUNTIME + const INSTANCE_REQUEST_TYPE_SERVICE + const PodConditionFalse + const PodDefaultMessage + const PodPendingDefaultMessage + const PodPendingReasonUnSchedulable + const PodStatusCreating + const PodStatusHealthy + const PodStatusTerminated + const PodStatusUnHealthy + const PodUnHealthyReasonCrashLoopBackOff + const PodUnHealthyReasonErrImagePull + const PodUnHealthyReasonImagePullBackOff + const PodUnHealthyReasonRunContainerError + const PodUnHealthyReasonUnSchedulable + type Endpoints struct + func New(options ...Option) *Endpoints + func (e *Endpoints) Addon() *addon.Addon + func (e *Endpoints) AddonConfigCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonCreateCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonDeleteCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonMetrics(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonYmlExport(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) AddonYmlImport(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) BatchRuntimeServices(ctx context.Context, r *http.Request, _ map[string]string) (httpserver.Responser, error) + func (e *Endpoints) Bdl() *bundle.Bundle + func (e *Endpoints) CancelDeployment(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CancelDeploymentOrder(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CleanRemainingAddonAttachment() (bool, error) + func (e *Endpoints) CleanUnusedMigrationNs() (bool, error) + func (e *Endpoints) CountPRByWorkspace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateAddonDirectly(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateAddonTenant(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateCustomAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateDeploymentOrder(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateRuntimeByRelease(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) CreateRuntimeByReleaseAction(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DBClient() *dbclient.DBClient + func (e *Endpoints) DeleteAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeleteRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeployDeploymentOrder(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeployStagesAddons(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeployStagesDomains(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeployStagesServices(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) DeploymentApprove(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) FullGC(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) FullGCLoop(ctx context.Context) + func (e *Endpoints) GetAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetAddonReferences(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetAppWorkspaceReleases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetClusterResourceReference(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetDeploymentOrder(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetDeploymentStatus(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetMiddleware(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetMiddlewareAddonClassification(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetMiddlewareAddonDaily(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetMiddlewareResource(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetProjectResource(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) GetRuntimeSpec(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) Info(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) InnerGetMiddleware(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) InstancesUsage(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) KillPod(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListAddonMenu(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListAppUsage(ctx context.Context, r *http.Request, vars map[string]string, ...) (httpserver.Responser, error) + func (e *Endpoints) ListApprovedDeployments(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListAvailableAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListByAddonName(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListCustomAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListDeploymentOrder(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListDeployments(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListDomains(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListExtensionAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListLaunchedApprovalDeployments(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListMicroServiceMenu(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListMicroServiceProject(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListMiddleware(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListMyRuntimes(ctx context.Context, r *http.Request, _ map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListPendingApprovalDeployments(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListProjectUsage(ctx context.Context, r *http.Request, vars map[string]string, ...) (httpserver.Responser, error) + func (e *Endpoints) ListRuntimeUsage(ctx context.Context, r *http.Request, vars map[string]string, ...) (httpserver.Responser, error) + func (e *Endpoints) ListRuntimes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListRuntimesGroupByApps(ctx context.Context, r *http.Request, _ map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListServiceInstance(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListServicePod(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ListServiceUsage(ctx context.Context, r *http.Request, vars map[string]string, ...) (httpserver.Responser, error) + func (e *Endpoints) MigrationLog(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) OrgcenterJobLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) PushOnDeletingRuntimes() (abort bool, err0 error) + func (e *Endpoints) PushOnDeletingRuntimesPolling() (abort bool, err0 error) + func (e *Endpoints) PushOnDeployment() (bool, error) + func (e *Endpoints) PushOnDeploymentOrder() (abort bool, err0 error) + func (e *Endpoints) PushOnDeploymentOrderPolling() (abort bool, err0 error) + func (e *Endpoints) PushOnDeploymentPolling() (abort bool, err0 error) + func (e *Endpoints) RedeployRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) RedeployRuntimeAction(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ReferCluster(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) RemoveAddons() (bool, error) + func (e *Endpoints) RenderDeploymentOrderDetail(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) RestartRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) RollbackRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) RollbackRuntimeAction(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) Routes() []httpserver.Endpoint + func (e *Endpoints) RuntimeLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) ScaleAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) StartRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) StopRuntime(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) SyncAddonReferenceNum() (bool, error) + func (e *Endpoints) SyncAddonResources() (bool, error) + func (e *Endpoints) SyncAddons() (bool, error) + func (e *Endpoints) SyncDeployAddon() (bool, error) + func (e *Endpoints) SyncProjects() (bool, error) + func (e *Endpoints) UpdateCustomAddon(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (e *Endpoints) UpdateDomains(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + func (s *Endpoints) BatchUpdateOverlay(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error) + type InstanceRequestType string + type InstanceStatusEvent struct + Extra map[string]interface{} + IP string + Stage string + Status string + TaskId string + type Option func(*Endpoints) + func WithAddon(addon *addon.Addon) Option + func WithBundle(bdl *bundle.Bundle) Option + func WithDBClient(db *dbclient.DBClient) Option + func WithDeployment(deployment *deployment.Deployment) Option + func WithDeploymentOrder(deploymentOrder *deployment_order.DeploymentOrder) Option + func WithDomain(domain *domain.Domain) Option + func WithEnvEncrypt(encrypt *encryption.EnvEncrypt) Option + func WithEventManager(evMgr *events.EventManager) Option + func WithInstance(instance *instance.Instance) Option + func WithInstanceinfoImpl(instanceinfoImpl *instanceinfo.InstanceInfoImpl) Option + func WithMigration(migration *migration.Migration) Option + func WithPool(pool *goroutinepool.GoroutinePool) Option + func WithQueue(queue *queue.PusherQueue) Option + func WithReleaseSvc(svc pb.ReleaseServiceServer) Option + func WithResource(resource *resource.Resource) Option + func WithRuntime(runtime *runtime.Runtime) Option + func WithScheduler(scheduler *scheduler.Scheduler) Option + type RuntimeStatusEventReq struct + EventType string + IsDeleted bool + RuntimeName string + ServiceStatuses []ServiceStatusEvent + type ServiceStatusEvent struct + InstanceStatuses []InstanceStatusEvent + Replica int + ServiceName string + Status string