Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPermissionRoutes ¶
func NewPermissionRoutes(handler *echo.Group, t services.IPermissionService, l logger.Interface)
NewPermissionRoutes -
Types ¶
type CheckRequest ¶
type CheckRequest struct {
SchemaVersion utils.Version `json:"schema_version"`
Entity tuple.Entity `json:"entity"`
Action string `json:"action"`
Subject tuple.Subject `json:"subject"`
Depth int32 `json:"depth"`
}
CheckRequest -
type CheckResponse ¶
type CheckResponse struct {
Can bool `json:"can"`
RemainingDepth int32 `json:"remaining_depth"`
Decisions interface{} `json:"decisions"`
}
CheckResponse -
type ExpandRequest ¶
type ExpandRequest struct {
SchemaVersion utils.Version `json:"schema_version"`
Entity tuple.Entity `json:"entity"`
Action string `json:"action"`
}
ExpandRequest -
type ExpandResponse ¶
ExpandResponse -
type LookupQueryRequest ¶
type LookupQueryRequest struct {
SchemaVersion utils.Version `json:"schema_version"`
EntityType string `json:"entity_type"`
Action string `json:"action"`
Subject tuple.Subject `json:"subject"`
}
LookupQueryRequest -
type LookupQueryResponse ¶
type LookupQueryResponse struct {
Query string `json:"query"`
}
LookupQueryResponse -
Click to show internal directories.
Click to hide internal directories.