autoapproval

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.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 RequestBody

type RequestBody struct {
	User identity.User   `json:"user"`
	Rule rule.AccessRule `json:"rule"`
}

type ResponseBody

type ResponseBody struct {
	Decision      Status `json:"decision"`
	Justification string `json:"justification,omitempty"`
}

type Service

type Service struct {
}

func (Service) Autoapprove

func (s Service) Autoapprove(user identity.User, rule rule.AccessRule, lambdaArn string) (bool, error)

type Status

type Status string
const (
	AUTO_APPROVED     Status = "AUTO_APPROVED"
	REQUIRES_APPROVAL Status = "REQUIRES_APPROVAL"
)

Jump to

Keyboard shortcuts

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