Documentation
¶
Index ¶
- Constants
- func NewRouter(handler Handler, authorizer auth.IAuthorizer) *gin.Engine
- type Handler
- func (o Handler) Activate(c *gin.Context)
- func (o Handler) CreatePolicy(c *gin.Context)
- func (o Handler) DeactivateAll(c *gin.Context)
- func (o Handler) GetActivePolicy(c *gin.Context)
- func (o Handler) GetManagementWellKnownInfo(c *gin.Context)
- func (o Handler) GetPolicies(c *gin.Context)
- func (o Handler) GetPolicy(c *gin.Context)
Constants ¶
View Source
const ( RulesMediaType = "application/vnd.veraison.policy.opa" PolicyMediaType = "application/vnd.veraison.policy+json" PoliciesMediaType = "application/vnd.veraison.policies+json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
Manager *management.PolicyManager
Logger *zap.SugaredLogger
}
func NewHandler ¶
func NewHandler(manager *management.PolicyManager, logger *zap.SugaredLogger) Handler
func (Handler) CreatePolicy ¶
func (Handler) DeactivateAll ¶
func (Handler) GetActivePolicy ¶
func (Handler) GetManagementWellKnownInfo ¶
func (Handler) GetPolicies ¶
Click to show internal directories.
Click to hide internal directories.