testhelper

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

func MakeRarMapMultiple(resources []string, httpMethods [][]string, members [][]string) map[string]rar.ResourceActionRoles

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL