migration

package
v1.18.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PrioritiesStateKey is the key in CycleState to PrioritiesStateData
	PrioritiesStateKey = "priorities"
)

Variables

This section is empty.

Functions

func ErrorToFrameworkStatus

func ErrorToFrameworkStatus(err error) *framework.Status

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

Clone is supposed to make a copy of the data, but since this is just a pointer, we are practically just copying the pointer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL