pkg

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHeader

func CheckHeader(request *restful.Request) bool

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, name, reason string, err error) metav1.Status

func RespondNotFound

func RespondNotFound(requestInfo *request.RequestInfo) metav1.Status

func TimeDiff

func TimeDiff(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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