idql

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MetaVersion = "5.0"

Variables

This section is empty.

Functions

func MakeActionInfo

func MakeActionInfo(httpMethods ...string) []hexapolicy.ActionInfo

MakeActionInfo - converts an http method to hexapolicy.ActionInfo e.g. MakeActionInfo([]string{http.MethodGet, http.MethodPost})

func MakeTestPolicy

func MakeTestPolicy(resourceId string, httpMethods []string, members []string) hexapolicy.PolicyInfo

MakeTestPolicy - creates a IDQL policy for the specified resource, http method and members e.g. MakeTestPolicy("some-resource",

[]string{http.MethodGet, http.MethodPost},
[]string{"role1", "role2"})

func ReadHrUSPolicy

func ReadHrUSPolicy() hexapolicy.PolicyInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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