Documentation ¶
Index ¶
- Constants
- func MakeRarListMultiple(resources []string, httpMethods [][]string, members [][]string) []rar.ResourceActionRoles
- func MakeRarMap(resource string, httpMethods []string, members []string) map[string]rar.ResourceActionRoles
- func MakeRarMapMultiple(resources []string, httpMethods [][]string, members [][]string) map[string]rar.ResourceActionRoles
Constants ¶
View Source
const ActionHttpGet = "http:GET"
View Source
const ActionHttpPost = "http:POST"
View Source
const ResourceHrUs = "/humanresources/us"
View Source
const ResourceProfile = "/profile"
View Source
const RoleReadHrUs = "Read.HR_US"
View Source
const RoleReadProfile = "Read.Profile"
View Source
const RoleUnassigned1 = "Read.Unassigned1"
RoleUnassigned1 Use these to test new assignments
View Source
const RoleUnassigned2 = "Read.Unassigned2"
Variables ¶
This section is empty.
Functions ¶
func MakeRarListMultiple ¶
func MakeRarListMultiple(resources []string, httpMethods [][]string, members [][]string) []rar.ResourceActionRoles
func MakeRarMap ¶
func MakeRarMap(resource string, httpMethods []string, members []string) map[string]rar.ResourceActionRoles
MakeRarMap - builds a map with as many elements as in the given httpMethods array key = "http:" + aMethod + resource value = rar.ResourceActionRoles e.g. { "http:GET/someresource": rar, "http:POST/someresource": rar }
func MakeRarMapMultiple ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.