util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func ConvertToAPIEventType(severity types.Severity) string

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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