Documentation ¶
Index ¶
- type ResourcePrioritizer
- func (r *ResourcePrioritizer) Description() string
- func (r *ResourcePrioritizer) Name() string
- func (r *ResourcePrioritizer) RequeueAfter(ctx context.Context, placement *clusterapiv1beta1.Placement) (plugins.PluginRequeueResult, *framework.Status)
- func (r *ResourcePrioritizer) Score(ctx context.Context, placement *clusterapiv1beta1.Placement, ...) (plugins.PluginScoreResult, *framework.Status)
- type ResourcePrioritizerBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourcePrioritizer ¶
type ResourcePrioritizer struct {
// contains filtered or unexported fields
}
func (*ResourcePrioritizer) Description ¶
func (r *ResourcePrioritizer) Description() string
func (*ResourcePrioritizer) Name ¶
func (r *ResourcePrioritizer) Name() string
func (*ResourcePrioritizer) RequeueAfter ¶ added in v0.4.0
func (r *ResourcePrioritizer) RequeueAfter(ctx context.Context, placement *clusterapiv1beta1.Placement) (plugins.PluginRequeueResult, *framework.Status)
func (*ResourcePrioritizer) Score ¶
func (r *ResourcePrioritizer) Score(ctx context.Context, placement *clusterapiv1beta1.Placement, clusters []*clusterapiv1.ManagedCluster) (plugins.PluginScoreResult, *framework.Status)
type ResourcePrioritizerBuilder ¶
type ResourcePrioritizerBuilder struct {
// contains filtered or unexported fields
}
func NewResourcePrioritizerBuilder ¶
func NewResourcePrioritizerBuilder(handle plugins.Handle) *ResourcePrioritizerBuilder
func (*ResourcePrioritizerBuilder) Build ¶
func (r *ResourcePrioritizerBuilder) Build() *ResourcePrioritizer
func (*ResourcePrioritizerBuilder) WithPrioritizerName ¶
func (r *ResourcePrioritizerBuilder) WithPrioritizerName(name string) *ResourcePrioritizerBuilder
Click to show internal directories.
Click to hide internal directories.