Documentation ¶
Index ¶
- Variables
- func CheckFunction(function *pms.Function, policyStore pms.PolicyStoreManager) error
- func CheckPolicy(serviceName string, policy *pms.Policy, policyStore pms.PolicyStoreManager) error
- func CheckRolePolicy(serviceName string, rolePolicy *pms.RolePolicy, ...) error
- func CheckService(service *pms.Service, policyStore pms.PolicyStoreManager) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //The value <= 0 mean don't check the max number/size MaxServiceNum = int64(-1) // Maximum number of service for a tenant MaxPolicyNum = int64(-1) // Maximum number of Policy + RolePolicy per tenant MaxFunctionNum = int64(-1) //Maximum number of function defined by customer MaxPolicySize = int64(-1) // Maximum size in bytes for a Policy or RolePolicy )
Functions ¶
func CheckFunction ¶
func CheckFunction(function *pms.Function, policyStore pms.PolicyStoreManager) error
Check the following items:
- The maximum number of function;
func CheckPolicy ¶
Check the following items:
- The maximum number of Policy + RolePolicy;
- The size of the Policy;
- If the effect field of policy is empty;
func CheckRolePolicy ¶
func CheckRolePolicy(serviceName string, rolePolicy *pms.RolePolicy, policyStore pms.PolicyStoreManager) error
Check the following items:
- The maximum number of Policy + RolePolicy;
- The size of the RolePolicy;
- If the effect field of RolePolicy is empty;
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.