Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type External ¶
type External struct {
// contains filtered or unexported fields
}
External is a strategy that schedules a ProwJob on a specific cluster based on the response of the ProwJob's Job name to given URL
func NewExternal ¶
func NewExternal(cfg config.ExternalScheduling, log *logrus.Entry) *External
NewExternal creates a new External instance with caching
type Failover ¶
type Failover struct {
// contains filtered or unexported fields
}
Failover is a scheduling strategy that handles clusters known to be in a faulty state. It holds a list of mapping from a broken cluster to an healthy one. This strategy get the cluster from a ProwJob and replaces it with another one if it was found on the mapping list.
func NewFailover ¶
func NewFailover(cfg config.FailoverScheduling) *Failover
type Passthrough ¶
type Passthrough struct { }
Passthrough is the backward compatible, transparent scheduling strategy, and in fact it pretends a scheduler didn't exist at all. This strategy assumes a cluster has been assigned to a ProwJob at the time it was defined.
type Result ¶
type Result struct { // A candidate cluster, the chosen one Cluster string }
Result is an answer that came out of a scheduling strategy
type SchedulingRequest ¶
type SchedulingRequest struct {
Job string `json:"job"`
}
SchedulingRequest represents the incoming request structure
type SchedulingResponse ¶
type SchedulingResponse struct {
Cluster string `json:"cluster"`
}
SchedulingResponse represents the response structure