common

package
v0.0.0-...-9be0976 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageKey  = "page"
	PageSize = "pageSize"
)

Variables

This section is empty.

Functions

func InstanceToUnstructured

func InstanceToUnstructured(object runtime.Object) (*unstructured.Unstructured, error)

func ResourceNotFoundError

func ResourceNotFoundError(g *gin.Context, runtimeData interface{}, err error)

func RuntimeObjectToInstanceObj

func RuntimeObjectToInstanceObj(obj runtime.Object, targetObj interface{}) error

func ToInternalServerError

func ToInternalServerError(g *gin.Context, runtimeData interface{}, err error)

func ToRequestParamsError

func ToRequestParamsError(g *gin.Context, err error)

func UnstructuredObjectToInstanceObj

func UnstructuredObjectToInstanceObj(obj *unstructured.Unstructured, targetObj interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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