Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (h *Handler) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (h *Handler) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (h *Handler) SetRoutes(r *httprouter.Router)
- func (h *Handler) Update(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func (*Handler) Create ¶
func (h *Handler) Create(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
swagger:route POST /policies policy createPolicy
Create an Access Control Policy
Consumes: - application/json Produces: - application/json Schemes: http, https Responses: 201: policy 401: genericError 403: genericError 500: genericError
func (*Handler) Delete ¶
func (h *Handler) Delete(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
swagger:route DELETE /policies/{id} policy deletePolicy
Delete an Access Control Policy
Consumes: - application/json Produces: - application/json Schemes: http, https Security: oauth2: hydra.policies Responses: 204: emptyResponse 401: genericError 403: genericError 500: genericError
func (*Handler) Get ¶
func (h *Handler) Get(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
swagger:route GET /policies/{id} policy getPolicy
Get an Access Control Policy
Consumes: - application/json Produces: - application/json Schemes: http, https Responses: 200: policy 401: genericError 403: genericError 500: genericError
func (*Handler) List ¶
func (h *Handler) List(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
swagger:route GET /policies policy listPolicies
List Access Control Policies
Consumes: - application/json Produces: - application/json Schemes: http, https Responses: 200: policyList 401: genericError 403: genericError 500: genericError
func (*Handler) SetRoutes ¶
func (h *Handler) SetRoutes(r *httprouter.Router)
func (*Handler) Update ¶
func (h *Handler) Update(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
swagger:route PUT /policies/{id} policy updatePolicy
Update an Access Control Policy
Consumes: - application/json Produces: - application/json Schemes: http, https Security: oauth2: hydra.policies Responses: 200: policy 401: genericError 403: genericError 500: genericError
Click to show internal directories.
Click to hide internal directories.