Documentation ¶
Index ¶
- func Fail(c *gin.Context, err error)
- func ParseDataSelectPathParameter(request *gin.Context) *dataselect.DataSelectQuery
- func ParseNamespacePathParameter(request *gin.Context) *common.NamespaceQuery
- func Response(c *gin.Context, err error, data interface{})
- func Success(c *gin.Context, obj interface{})
- type BaseResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDataSelectPathParameter ¶
func ParseDataSelectPathParameter(request *gin.Context) *dataselect.DataSelectQuery
ParseDataSelectPathParameter parses query parameters of the request and returns a DataSelectQuery object
func ParseNamespacePathParameter ¶
func ParseNamespacePathParameter(request *gin.Context) *common.NamespaceQuery
parseNamespacePathParameter parses namespace selector for list pages in path parameter. The namespace selector is a comma separated list of namespaces that are trimmed. No namespaces mean "view all user namespaces", i.e., everything except kube-system.
Types ¶
type BaseResponse ¶
Click to show internal directories.
Click to hide internal directories.