Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRuntimeHPScalerService ¶
func NewRuntimeHPScalerService(options ...ServiceOption) pb.PodScalerServiceServer
Types ¶
type BundleService ¶
type BundleService interface { CheckPermission(req *apistructs.PermissionCheckRequest) (*apistructs.PermissionCheckResponseData, error) GetCurrentUser(userID string) (*apistructs.UserInfo, error) GetApp(id uint64) (*apistructs.ApplicationDTO, error) }
func NewBundleService ¶
func NewBundleService() BundleService
type DBService ¶
type DBService interface { CreateHPARule(req *dbclient.RuntimeHPA) error UpdateHPARule(req *dbclient.RuntimeHPA) error GetRuntimeHPARulesByServices(id spec.RuntimeUniqueId, services []string) ([]dbclient.RuntimeHPA, error) GetRuntimeHPARuleByRuleId(ruleId string) (dbclient.RuntimeHPA, error) GetRuntimeHPARulesByRuntimeId(runtimeID uint64) ([]dbclient.RuntimeHPA, error) DeleteRuntimeHPARulesByRuleId(ruleId string) error GetRuntime(id uint64) (*dbclient.Runtime, error) UpdateRuntime(runtime *dbclient.Runtime) error GetRuntimeByUniqueID(id spec.RuntimeUniqueId) (*dbclient.Runtime, error) FindRuntimesByIds(ids []uint64) ([]dbclient.Runtime, error) GetUnDeletableAttachMentsByRuntimeID(orgID, runtimeID uint64) (*[]dbclient.AddonAttachment, error) GetInstanceRouting(id string) (*dbclient.AddonInstanceRouting, error) UpdateAttachment(addonAttachment *dbclient.AddonAttachment) error GetPreDeployment(uniqueId spec.RuntimeUniqueId) (*dbclient.PreDeployment, error) UpdatePreDeployment(pre *dbclient.PreDeployment) error GetRuntimeHPAEventsByServices(runtimeId uint64, services []string) ([]dbclient.HPAEventInfo, error) DeleteRuntimeHPAEventsByRuleId(ruleId string) error CreateVPARule(req *dbclient.RuntimeVPA) error UpdateVPARule(req *dbclient.RuntimeVPA) error GetRuntimeVPARulesByServices(id spec.RuntimeUniqueId, services []string) ([]dbclient.RuntimeVPA, error) GetRuntimeVPARuleByRuleId(ruleId string) (dbclient.RuntimeVPA, error) GetRuntimeVPARulesByRuntimeId(runtimeID uint64) ([]dbclient.RuntimeVPA, error) DeleteRuntimeVPARulesByRuleId(ruleId string) error GetRuntimeVPARecommendationsByServices(runtimeId uint64, services []string) ([]dbclient.RuntimeVPAContainerRecommendation, error) }
func NewDBService ¶
type ServiceOption ¶
type ServiceOption func(*podscalerService) *podscalerService
func WithBundleService ¶
func WithBundleService(s BundleService) ServiceOption
func WithDBService ¶
func WithDBService(db DBService) ServiceOption
func WithServiceGroupImpl ¶
func WithServiceGroupImpl(serviceGroupImpl servicegroup.ServiceGroup) ServiceOption
Source Files ¶
Click to show internal directories.
Click to hide internal directories.