api

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CntRegexPolicies           = int64(0)
	CntGlobPolicies            = int64(0)
	CntExactPolicies           = int64(0)
	CntRegexRoles              = int64(0)
	CntGlobRoles               = int64(0)
	CntExactRoles              = int64(0)
	CntAllowRequestsSinceStart = int64(0)
	CntAllowAcceptedSinceStart = int64(0)
	CntAllowRefusedSinceStart  = int64(0)
	CntAllowFailuresSinceStart = int64(0)
)

Counters for metrics

View Source
var JustAllow bool

JustAllow ..

Functions

func Fix added in v0.4.2

func Fix() error

Fix ..

func Init

func Init(apiMux *mux.Router) error

Init sets up the sketo API HTTP endpoints

func ReloadCounters

func ReloadCounters(acpDB *db.DB) error

ReloadCounters ..

func TestPolicies

func TestPolicies()

TestPolicies ..

func TestRoles

func TestRoles()

TestRoles ..

Types

This section is empty.

Jump to

Keyboard shortcuts

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