handlers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: AGPL-3.0, Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkUpload

BulkUpload uploads multiple policies from a zipfile.

func CreatePolicy

CreatePolicy adds a new policy to the Dynamo table.

func CreateRule

CreateRule adds a new rule to the Dynamo table.

func DeletePolicies

DeletePolicies marks one or more policies as deleted.

func GetEnabledPolicies

func GetEnabledPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse

GetEnabledPolicies fetches all enabled policies from an organization for backend processing.

func GetPolicy

GetPolicy retrieves a policy from Dynamo or S3.

func GetRule

GetRule retrieves a rule from Dynamo or S3.

func ListPolicies

ListPolicies pages through policies from a single organization.

func ListRules

ListRules pages through rules from a single organization.

func ModifyPolicy

ModifyPolicy updates an existing policy.

func ModifyRule

ModifyRule updates an existing rule.

func Setup

func Setup()

Setup parses the environment and constructs AWS and http clients on a cold Lambda start. All required environment variables must be present or this function will panic.

func Suppress

Suppress adds suppressions for one or more policies in the same organization.

func TestPolicy

TestPolicy runs a policy against a set of unit tests.

TODO - test policies before enabling them

Types

This section is empty.

Jump to

Keyboard shortcuts

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