Documentation ¶
Index ¶
- func CheckPolicies(user *domains.UserWithRoles, callOpts ...CallOPAInputOption) (denyMsg []string, err error)
- func CheckPoliciesContext(c echo.Context, callOpts ...CallOPAInputOption) (denyMsg []string, err error)
- type CallOPAInputOption
- func WithInputExtraData(key string, data interface{}) CallOPAInputOption
- func WithInputOrg(org *domains.Org) CallOPAInputOption
- func WithInputRequestEndpoint(reqEndpoint string) CallOPAInputOption
- func WithInputRequestMethod(reqMethod string) CallOPAInputOption
- func WithInputResourcePermissions(resPerms map[string][]string) CallOPAInputOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPolicies ¶
func CheckPolicies(user *domains.UserWithRoles, callOpts ...CallOPAInputOption) (denyMsg []string, err error)
func CheckPoliciesContext ¶
func CheckPoliciesContext(c echo.Context, callOpts ...CallOPAInputOption) (denyMsg []string, err error)
Types ¶
type CallOPAInputOption ¶
type CallOPAInputOption struct {
// contains filtered or unexported fields
}
func WithInputExtraData ¶
func WithInputExtraData(key string, data interface{}) CallOPAInputOption
func WithInputOrg ¶
func WithInputOrg(org *domains.Org) CallOPAInputOption
func WithInputRequestEndpoint ¶
func WithInputRequestEndpoint(reqEndpoint string) CallOPAInputOption
func WithInputRequestMethod ¶
func WithInputRequestMethod(reqMethod string) CallOPAInputOption
func WithInputResourcePermissions ¶
func WithInputResourcePermissions(resPerms map[string][]string) CallOPAInputOption
Click to show internal directories.
Click to hide internal directories.