Documentation ¶
Index ¶
- Constants
- func New(_ runtime.Object, h framework.Handle) (framework.Plugin, error)
- type PodState
- func (ps *PodState) Name() string
- func (ps *PodState) NormalizeScore(ctx context.Context, state *framework.CycleState, pod *v1.Pod, ...) *framework.Status
- func (ps *PodState) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (ps *PodState) ScoreExtensions() framework.ScoreExtensions
Constants ¶
View Source
const Name = "PodState"
Name is the name of the plugin used in the Registry and configurations.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PodState ¶
type PodState struct {
// contains filtered or unexported fields
}
func (*PodState) NormalizeScore ¶
func (*PodState) Score ¶
func (ps *PodState) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the score extension point.
func (*PodState) ScoreExtensions ¶
func (ps *PodState) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.