Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PrioritiesStateKey is the key in CycleState to PrioritiesStateData
PrioritiesStateKey = "priorities"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorToFrameworkStatus ¶
ErrorToFrameworkStatus converts an error to a framework status.
func PredicateResultToFrameworkStatus ¶
func PredicateResultToFrameworkStatus(reasons []predicates.PredicateFailureReason, err error) *framework.Status
PredicateResultToFrameworkStatus converts a predicate result (PredicateFailureReason + error) to a framework status.
func PriorityMetadata ¶
func PriorityMetadata(state *framework.CycleState) interface{}
PriorityMetadata returns priority metadata stored in CycleState.
Types ¶
type PrioritiesStateData ¶
type PrioritiesStateData struct {
Reference interface{}
}
PrioritiesStateData is a pointer to PrioritiesMetadata.
func (*PrioritiesStateData) Clone ¶
func (p *PrioritiesStateData) Clone() framework.StateData
Clone is supposed to make a copy of the data, but since this is just a pointer, we are practically just copying the pointer.
Click to show internal directories.
Click to hide internal directories.