Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int
Code is the Status code/type which is returned from the framework.
const ( // Success means that plugin ran correctly and found placement schedulable. // NOTE: A nil status is also considered as "Success". Success Code = iota // Warning means that plugin ran correctly and found placement schedulable, but with some failures to notice. Warning // Error is used for internal plugin errors etc. Error // Misconfigured is used for internal plugin configuration errors, unexpected input, etc. Misconfigured )
These are predefined codes used in a Status.
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) AppendReason ¶
AppendReason appends given reason to the Status.
func (*Status) AsError ¶
AsError returns nil if the status is a success; otherwise returns an "error" object with a concatenated message on reasons of the Status.
func (*Status) IsSuccess ¶
IsSuccess returns true if and only if "Status" is nil or Code is "Success".
Click to show internal directories.
Click to hide internal directories.