lambdagranter

package
v0.15.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	ACTIVATE   EventType = "ACTIVATE"
	DEACTIVATE EventType = "DEACTIVATE"
)

type GrantProvider

type GrantProvider interface {
	providers.Accessor
}

Grant provider is an interface which combines the methods needed for the lambda

type Granter

type Granter struct {
	// contains filtered or unexported fields
}

func NewGranter

func NewGranter(ctx context.Context, c config.GranterConfig) (*Granter, error)

func (*Granter) HandleRequest

func (g *Granter) HandleRequest(ctx context.Context, in InputEvent) (Output, error)

type InputEvent

type InputEvent struct {
	Action EventType   `json:"action"`
	Grant  types.Grant `json:"grant"`
}

type Output

type Output struct {
	Grant types.Grant `json:"grant"`
}

Jump to

Keyboard shortcuts

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