handlers

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkUpload

BulkUpload uploads multiple analysis items from a zipfile.

func CreateGlobal added in v1.1.0

CreateGlobal adds a new global to the Dynamo table.

func CreatePolicy

CreatePolicy adds a new policy to the Dynamo table.

func CreateRule

CreateRule adds a new rule to the Dynamo table.

func DeleteGlobal added in v1.1.0

DeleteGlobal deletes existing globals.

func DeletePolicies

DeletePolicies marks one or more policies as deleted.

func GetEnabledAnalyses added in v1.1.0

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

GetEnabledAnalyses fetches all enabled policies or rules.

func GetGlobal added in v1.1.0

GetRule retrieves a rule from Dynamo or S3.

func GetPolicy

GetPolicy retrieves a policy from Dynamo or S3.

func GetRule

GetRule retrieves a rule from Dynamo or S3.

func ListGlobals added in v1.3.0

ListGlobals pages through globals from a single organization.

func ListPolicies

ListPolicies pages through policies from a single organization.

func ListRules

ListRules pages through rules from a single organization.

func ModifyGlobal added in v1.1.0

ModifyGlobal updates an existing global.

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 (or rule) against a set of unit tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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