Documentation ¶
Index ¶
- func BulkUpload(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func CreateGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func CreatePolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func CreateRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func DeleteGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func DeletePolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetEnabledAnalyses(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func GetRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ListGlobals(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ListPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ListRules(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ModifyGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ModifyPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func ModifyRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func Setup()
- func Suppress(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
- func TestPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkUpload ¶
func BulkUpload(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
BulkUpload uploads multiple analysis items from a zipfile.
func CreateGlobal ¶ added in v1.1.0
func CreateGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
CreateGlobal adds a new global to the Dynamo table.
func CreatePolicy ¶
func CreatePolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
CreatePolicy adds a new policy to the Dynamo table.
func CreateRule ¶
func CreateRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
CreateRule adds a new rule to the Dynamo table.
func DeleteGlobal ¶ added in v1.1.0
func DeleteGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
DeleteGlobal deletes existing globals.
func DeletePolicies ¶
func DeletePolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
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
func GetGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetRule retrieves a rule from Dynamo or S3.
func GetPolicy ¶
func GetPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetPolicy retrieves a policy from Dynamo or S3.
func GetRule ¶
func GetRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
GetRule retrieves a rule from Dynamo or S3.
func ListGlobals ¶ added in v1.3.0
func ListGlobals(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ListGlobals pages through globals from a single organization.
func ListPolicies ¶
func ListPolicies(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ListPolicies pages through policies from a single organization.
func ListRules ¶
func ListRules(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ListRules pages through rules from a single organization.
func ModifyGlobal ¶ added in v1.1.0
func ModifyGlobal(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ModifyGlobal updates an existing global.
func ModifyPolicy ¶
func ModifyPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
ModifyPolicy updates an existing policy.
func ModifyRule ¶
func ModifyRule(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
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 ¶
func Suppress(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
Suppress adds suppressions for one or more policies in the same organization.
func TestPolicy ¶
func TestPolicy(request *events.APIGatewayProxyRequest) *events.APIGatewayProxyResponse
TestPolicy runs a policy against a set of unit tests.
TODO - test policies before enabling them
Types ¶
This section is empty.