iamcheck

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IamCheck

type IamCheck struct {
	CheckAPI  string          `cfg:"check_api"`
	Public    []data.Resource `cfg:"public"`
	Responses []Response      `cfg:"responses"`

	InsecureSkipVerify bool `cfg:"insecure_skip_verify"`
	// contains filtered or unexported fields
}

func (*IamCheck) Middleware

func (m *IamCheck) Middleware() (func(http.Handler) http.Handler, error)

type Response

type Response struct {
	Path    string   `cfg:"path"`
	Methods []string `cfg:"methods"`

	// Message adds custom message to the response
	Message string `cfg:"message"`
	// Redirect is not empty, it will redirect to the given URL
	Redirect string `cfg:"redirect"`
}

Jump to

Keyboard shortcuts

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