policies

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerInternalErrorMsg                = "internal error"
	QueryPolicyFailureFormatMsg           = "error in querying policy: %v\n"
	QueryPoliciesFailureFormatMsg         = "error in querying policies: %v\n"
	QueryPolicyComplianceFailureFormatMsg = "error in querying compliance status of a policy with UID: %v\n"
	QueryPolicyMappingFailureFormatMsg    = "error in querying policy&placementbinding&placementrule mapping: %v\n"
)

Variables

This section is empty.

Functions

func GetPolicyStatus

func GetPolicyStatus(dbConnectionPool *pgxpool.Pool) gin.HandlerFunc

GetPolicyStatus godoc @summary get policy status @description get status with a given policy @accept json @produce json @param policyID path string true "Policy ID" @success 200 {object} policyv1.Policy @failure 400 @failure 401 @failure 403 @failure 404 @failure 500 @failure 503 @security ApiKeyAuth @router /policy/{policyID}/status [get]

func ListPolicies

func ListPolicies(dbConnectionPool *pgxpool.Pool) gin.HandlerFunc

ListPolicies godoc @summary list policies @description list policies @accept json @produce json @param labelSelector query string false "list policies by label selector" @param limit query int false "maximum policy number to receive" @param continue query string false "continue token to request next request" @success 200 {object} policyv1.PolicyList @failure 400 @failure 401 @failure 403 @failure 404 @failure 500 @failure 503 @security ApiKeyAuth @router /policies [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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