Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleAlgorithm ¶
type ScheduleAlgorithm interface { Schedule( context.Context, framework.Framework, framework.SchedulingUnit, []*fedcorev1a1.FederatedCluster, ) (result ScheduleResult, err error) }
func NewSchedulerAlgorithm ¶
func NewSchedulerAlgorithm() ScheduleAlgorithm
type ScheduleResult ¶
type ScheduleResult struct { // SuggestedClusters is a map contains the recommended cluster placements and replica distribution. // The key is the name of the cluster and the value is the recommended number of replicas for it. // If the value is nil, it means that there is no recommended number of replicas for the cluster (used in Duplicate scheduling mode). SuggestedClusters map[string]*int64 }
func (ScheduleResult) ClusterSet ¶
func (result ScheduleResult) ClusterSet() sets.Set[string]
func (ScheduleResult) String ¶
func (result ScheduleResult) String() string
Click to show internal directories.
Click to hide internal directories.