Files
20de56d441 Analyzer partial implementations (#3114)
* Add POC analyze sub-command

* Address lint errors

* added http logging to most analyzers

* Use custom RoundTripper with default http.Client

* [chore] Embed scopes at compile time

* [chore] Move subcommand check up to prevent printing metrics

* Create framework of interfaces, structs, and protos

* Implement Analyzer for airbrake

* Add FullAccess permission constant

* Implement Analyzer for asana

* Implement Analyzer for bitbucket

* Implement Analyzer for github

* Implement Analyzer for gitlab

* Implemente Analyzer for huggingface

* Implement Analyzer for mailchimp

* implement analyzer for mailgun

* update cli cmd

* Implement analyzer for openai

* fix timing issue on scopes

* print permissions only if restricted key

* Implement Analyzer for mysql

* enable loggin check

* fixed the formatting issue to wrap sub-errors

* implemented analyzer for opsgenie

* implemented analyzer for postgres

* use format string

* implemented analyzer for sendgrid

* simplify returning the error

* implemented analyzer for postman

* added handling of workspace error

* Update protos to match OSS

* Generate protos

* Update data structures to match OSS

* Update airbrake implementation

* Remove asana implementation

* Remove mailchimp implementation

* Update openai implementation to match OSS

* Remove gitlab implementation

* Remove huggingface implementation

* Remove bitbucket implementation

* Fix permission in airbrake

* Remove github implementation

* Remove mailgun implementation

* Cleanup compiler errors

* Implement Analyzer interface for github

* Add parents to github resources

* Add fine_grained to github metadata

* Update with changes from main

* Remove unused function stubs

---------

Co-authored-by: Joe Leon <[email protected]>
Co-authored-by: Hon <[email protected]>
Co-authored-by: Abdul Basit <[email protected]>
Co-authored-by: Abdul Basit <[email protected]>
2024-07-30 09:13:48 -07:00

28 lines
1.1 KiB
Go

package airbrake
var scope_order = []string{
"Authentication",
"Performance Monitoring",
"Error Notification",
"Projects",
"Deploys",
"Groups",
"Notices",
"Project Activities",
"Source Maps",
"iOS Crash Reports",
}
var scope_mapping = map[string][]string{
"Authentication": {"Create user token"},
"Performance Monitoring": {"Route performance endpoint", "Routes breakdown endpoint", "Database query stats", "Queue stats"},
"Error Notification": {"Create notice"},
"Projects": {"List projects", "Show projects"},
"Deploys": {"Create deploy", "List deploys", "Show deploy"},
"Groups": {"List groups", "Show group", "Mute group", "Unmute group", "Delete group", "List groups across all projects", "Show group statistics"},
"Notices": {"List notices", "Show notice status"},
"Project Activities": {"List project activities", "Show project statistics"},
"Source Maps": {"Create source map", "List source maps", "Show source map", "Delete source map"},
"iOS Crash Reports": {"Create iOS crash report"},
}