Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PoliciesValidateHandler ¶
func PoliciesValidateHandler(_ *config.Conf) gin.HandlerFunc
PoliciesValidateHandler @Tags Policies Validate @Summary Validate the policies @description Validate the policies @Accept json @Produce json @Router /validate/policies [POST] @Param policyList body validatePolicyList true "policyList" @Success 200 {object} ValidateResponse "OK" @Failure 400 {object} ErrorResult "Bad Request" @Failure 500 {object} ErrorResult "Internal Server Error" @Failure 502 {object} ErrorResult "Bad Gateway"
func PolicyEval ¶
Types ¶
type ErrorResult ¶
type ErrorResult struct { ErrMsg string `json:"err_msg,omitempty" binding:"required"` } // @name ErrorResult
type ValidateResponse ¶
Click to show internal directories.
Click to hide internal directories.