authz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RolePermissions = map[string][]string{

	"admin": {"*"},

	"fis": {
		"GET:/v1/fis",
		"POST:/v1/fis",
		"PUT:/v1/fis",
		"DELETE:/v1/fis",
	},
	"fis_read": {
		"GET:/v1/fis",
	},

	"utv": {
		"GET:/v1/utv",
		"POST:/v1/utv",
		"PUT:/v1/utv",
		"DELETE:/v1/utv",
	},
	"utv_read": {
		"GET:/v1/utv",
	},

	"kamk": {
		"GET:/v1/kamk",
		"POST:/v1/kamk",
		"PUT:/v1/kamk",
		"DELETE:/v1/kamk",
	},
	"kamk_read": {
		"GET:/v1/kamk",
	},

	"klab": {
		"GET:/v1/klab",
		"POST:/v1/klab",
		"PUT:/v1/klab",
		"DELETE:/v1/klab",
	},
	"klab_read": {
		"GET:/v1/klab",
	},

	"tietoevry": {
		"GET:/v1/tietoevry",
		"POST:/v1/tietoevry",
		"PUT:/v1/tietoevry",
		"DELETE:/v1/tietoevry",
	},
	"tietoevry_read": {
		"GET:/v1/tietoevry",
	},

	"coachtech": {
		"GET:/v1/coachtech",
		"POST:/v1/coachtech",
		"PUT:/v1/coachtech",
		"DELETE:/v1/coachtech",
	},
	"coachtech_read": {
		"GET:/v1/coachtech",
	},

	"archinisis": {
		"GET:/v1/archinisis",
		"POST:/v1/archinisis",
		"PUT:/v1/archinisis",
		"DELETE:/v1/archinisis",
	},
	"archinisis_read": {
		"GET:/v1/archinisis",
	},
}

Functions

func Authorize

func Authorize(r *http.Request) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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