api

package
v0.0.2503 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

func NewRouter

func NewRouter(handler Handler, authorizer auth.IAuthorizer) *gin.Engine

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) Activate

func (o Handler) Activate(c *gin.Context)

func (Handler) CreatePolicy

func (o Handler) CreatePolicy(c *gin.Context)

func (Handler) DeactivateAll

func (o Handler) DeactivateAll(c *gin.Context)

func (Handler) GetActivePolicy

func (o Handler) GetActivePolicy(c *gin.Context)

func (Handler) GetManagementWellKnownInfo

func (o Handler) GetManagementWellKnownInfo(c *gin.Context)

func (Handler) GetPolicies

func (o Handler) GetPolicies(c *gin.Context)

func (Handler) GetPolicy

func (o Handler) GetPolicy(c *gin.Context)

Jump to

Keyboard shortcuts

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