Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + func NewRuntimeHPScalerService(options ...ServiceOption) pb.PodScalerServiceServer + type BundleService interface + CheckPermission func(req *apistructs.PermissionCheckRequest) (*apistructs.PermissionCheckResponseData, error) + GetApp func(id uint64) (*apistructs.ApplicationDTO, error) + GetCurrentUser func(userID string) (*apistructs.UserInfo, error) + func NewBundleService() BundleService + type DBService interface + CreateHPARule func(req *dbclient.RuntimeHPA) error + CreateVPARule func(req *dbclient.RuntimeVPA) error + DeleteRuntimeHPAEventsByRuleId func(ruleId string) error + DeleteRuntimeHPARulesByRuleId func(ruleId string) error + DeleteRuntimeVPARulesByRuleId func(ruleId string) error + FindRuntimesByIds func(ids []uint64) ([]dbclient.Runtime, error) + GetInstanceRouting func(id string) (*dbclient.AddonInstanceRouting, error) + GetPreDeployment func(uniqueId spec.RuntimeUniqueId) (*dbclient.PreDeployment, error) + GetRuntime func(id uint64) (*dbclient.Runtime, error) + GetRuntimeByUniqueID func(id spec.RuntimeUniqueId) (*dbclient.Runtime, error) + GetRuntimeHPAEventsByServices func(runtimeId uint64, services []string) ([]dbclient.HPAEventInfo, error) + GetRuntimeHPARuleByRuleId func(ruleId string) (dbclient.RuntimeHPA, error) + GetRuntimeHPARulesByRuntimeId func(runtimeID uint64) ([]dbclient.RuntimeHPA, error) + GetRuntimeHPARulesByServices func(id spec.RuntimeUniqueId, services []string) ([]dbclient.RuntimeHPA, error) + GetRuntimeVPARecommendationsByServices func(runtimeId uint64, services []string) ([]dbclient.RuntimeVPAContainerRecommendation, error) + GetRuntimeVPARuleByRuleId func(ruleId string) (dbclient.RuntimeVPA, error) + GetRuntimeVPARulesByRuntimeId func(runtimeID uint64) ([]dbclient.RuntimeVPA, error) + GetRuntimeVPARulesByServices func(id spec.RuntimeUniqueId, services []string) ([]dbclient.RuntimeVPA, error) + GetUnDeletableAttachMentsByRuntimeID func(orgID, runtimeID uint64) (*[]dbclient.AddonAttachment, error) + UpdateAttachment func(addonAttachment *dbclient.AddonAttachment) error + UpdateHPARule func(req *dbclient.RuntimeHPA) error + UpdatePreDeployment func(pre *dbclient.PreDeployment) error + UpdateRuntime func(runtime *dbclient.Runtime) error + UpdateVPARule func(req *dbclient.RuntimeVPA) error + func NewDBService(orm *gorm.DB) DBService + type ServiceOption func(*podscalerService) *podscalerService + func WithBundleService(s BundleService) ServiceOption + func WithDBService(db DBService) ServiceOption + func WithServiceGroupImpl(serviceGroupImpl servicegroup.ServiceGroup) ServiceOption