Documentation ¶
Index ¶
- func CheckHeader(request *restful.Request) bool
- func CopyTo(src protoreflect.ProtoMessage, dst interface{}) error
- func RequestInfoResolver() *request.RequestInfoFactory
- func RespondError(requestInfo *request.RequestInfo, reason string) metav1.Status
- func RespondNotFound(requestInfo *request.RequestInfo) metav1.Status
- func TimeDiff(t time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHeader ¶
CheckHeader to see if contains table
func CopyTo ¶
func CopyTo(src protoreflect.ProtoMessage, dst interface{}) error
CopyTo is a helper function to copy a struct to another struct using the json marshal and unmarshal
func RequestInfoResolver ¶
func RequestInfoResolver() *request.RequestInfoFactory
RequestInfoResolver is a function that returns a RequestInfo object
func RespondError ¶
func RespondError(requestInfo *request.RequestInfo, reason string) metav1.Status
func RespondNotFound ¶
func RespondNotFound(requestInfo *request.RequestInfo) metav1.Status
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.