Documentation ¶
Index ¶
- func ConvertToAPICondition(condition types.Condition) api.NodeCondition
- func ConvertToAPIConditionStatus(status bool) api.ConditionStatus
- func ConvertToAPIEventType(severity types.Severity) string
- func ConvertToAPITimestamp(timestamp time.Time) unversioned.Time
- func ReturnHTTPError(w http.ResponseWriter, err error)
- func ReturnHTTPJson(w http.ResponseWriter, object interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToAPICondition ¶
func ConvertToAPICondition(condition types.Condition) api.NodeCondition
ConvertToAPICondition converts the internal node condition to api.NodeCondition.
func ConvertToAPIConditionStatus ¶
func ConvertToAPIConditionStatus(status bool) api.ConditionStatus
ConvertToAPIConditionStatus converts the internal node condition status to api.ConditionStatus.
func ConvertToAPIEventType ¶
ConvertToAPIEventType converts the internal severity to event type.
func ConvertToAPITimestamp ¶
func ConvertToAPITimestamp(timestamp time.Time) unversioned.Time
ConvertToAPITimestamp converts the timestamp to unversioned.Time
func ReturnHTTPError ¶ added in v0.3.0
func ReturnHTTPError(w http.ResponseWriter, err error)
ReturnHTTPError generates error http response.
func ReturnHTTPJson ¶ added in v0.3.0
func ReturnHTTPJson(w http.ResponseWriter, object interface{})
ReturnHTTPJson generates json http response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.