access

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	URL    string `json:"url"`
	Method string `json:"method"`
}

type Controller

type Controller interface {
	// Review return access review results for apis
	Review(ctx context.Context, apis []API) (map[string]map[string]*ReviewResult, error)
}

func NewController

func NewController(authorizer rbac.Authorizer,
	skippers ...middleware.Skipper) Controller

type ReviewRequest

type ReviewRequest struct {
	APIs []API `json:"apis"`
}

ReviewRequest provide apis for access review

type ReviewResult

type ReviewResult struct {
	Allowed bool   `json:"allowed"`
	Reason  string `json:"reason"`
}

Jump to

Keyboard shortcuts

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