forked from opengovern/og-describer-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
table_index_map.go
113 lines (109 loc) · 5.51 KB
/
table_index_map.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package steampipe
import (
"github.com/opengovern/og-describer-github/pkg/sdk/es"
)
var Map = map[string]string{
"Github/Actions/Artifact": "github_actions_artifact",
"Github/Actions/Runner": "github_actions_runner",
"Github/Actions/Secret": "github_actions_secret",
"Github/Actions/WorkflowRun": "github_actions_workflow_run",
"Github/Branch": "github_branch",
"Github/Branch/Protection": "github_branch_protection",
"Github/Commit": "github_commit",
"Github/Issue": "github_issue",
"Github/License": "github_license",
"Github/Organization": "github_organization",
"Github/Organization/Collaborator": "github_organization_collaborator",
"Github/Organization/Dependabot/Alert": "github_organization_dependabot_alert",
"Github/Organization/Member": "github_organization_member",
"Github/Organization/Team": "github_organization_team",
"Github/PullRequest": "github_pull_request",
"Github/Release": "github_release",
"Github/Repository": "github_repository",
"Github/Repository/Collaborator": "github_repository_collaborator",
"Github/Repository/DependabotAlert": "github_repository_dependabot_alert",
"Github/Repository/Deployment": "github_repository_deployment",
"Github/Repository/Environment": "github_repository_environment",
"Github/Repository/Ruleset": "github_repository_ruleset",
"Github/Repository/SBOM": "github_repository_sbom",
"Github/Repository/VulnerabilityAlert": "github_repository_vulnerability_alert",
"Github/Tag": "github_tag",
"Github/Team/Member": "github_team_member",
"Github/User": "github_user",
"Github/Workflow": "github_workflow",
"Github/Container/Package": "github_container_package",
"Github/Package/Maven": "github_maven_package",
"Github/NPM/Package": "github_npm_package",
"Github/Nuget/Package": "github_nuget_package",
"Github/Artifact/DockerFile": "github_artifact_dockerfile",
}
var DescriptionMap = map[string]interface{}{
"Github/Actions/Artifact": opengovernance.Artifact{},
"Github/Actions/Runner": opengovernance.Runner{},
"Github/Actions/Secret": opengovernance.Secret{},
"Github/Actions/WorkflowRun": opengovernance.WorkflowRun{},
"Github/Branch": opengovernance.Branch{},
"Github/Branch/Protection": opengovernance.BranchProtection{},
"Github/Commit": opengovernance.Commit{},
"Github/Issue": opengovernance.Issue{},
"Github/License": opengovernance.License{},
"Github/Organization": opengovernance.Organization{},
"Github/Organization/Collaborator": opengovernance.OrgCollaborators{},
"Github/Organization/Dependabot/Alert": opengovernance.OrgAlertDependabot{},
"Github/Organization/Member": opengovernance.OrgMembers{},
"Github/Organization/Team": opengovernance.Team{},
"Github/PullRequest": opengovernance.PullRequest{},
"Github/Release": opengovernance.Release{},
"Github/Repository": opengovernance.Repository{},
"Github/Repository/Collaborator": opengovernance.RepoCollaborators{},
"Github/Repository/DependabotAlert": opengovernance.RepoAlertDependabot{},
"Github/Repository/Deployment": opengovernance.RepoDeployment{},
"Github/Repository/Environment": opengovernance.RepoEnvironment{},
"Github/Repository/Ruleset": opengovernance.RepoRuleSet{},
"Github/Repository/SBOM": opengovernance.RepoSBOM{},
"Github/Repository/VulnerabilityAlert": opengovernance.RepoVulnerabilityAlert{},
"Github/Tag": opengovernance.Tag{},
"Github/Team/Member": opengovernance.TeamMembers{},
"Github/User": opengovernance.User{},
"Github/Workflow": opengovernance.Workflow{},
"Github/Container/Package": opengovernance.ContainerPackage{},
"Github/Package/Maven": opengovernance.PackageDetail{},
"Github/NPM/Package": opengovernance.PackageDetail{},
"Github/Nuget/Package": opengovernance.Package{},
"Github/Artifact/DockerFile": opengovernance.ArtifactDockerFile{},
}
var ReverseMap = map[string]string{
"github_actions_artifact": "Github/Actions/Artifact",
"github_actions_runner": "Github/Actions/Runner",
"github_actions_secret": "Github/Actions/Secret",
"github_actions_workflow_run": "Github/Actions/WorkflowRun",
"github_branch": "Github/Branch",
"github_branch_protection": "Github/Branch/Protection",
"github_commit": "Github/Commit",
"github_issue": "Github/Issue",
"github_license": "Github/License",
"github_organization": "Github/Organization",
"github_organization_collaborator": "Github/Organization/Collaborator",
"github_organization_dependabot_alert": "Github/Organization/Dependabot/Alert",
"github_organization_member": "Github/Organization/Member",
"github_organization_team": "Github/Organization/Team",
"github_pull_request": "Github/PullRequest",
"github_release": "Github/Release",
"github_repository": "Github/Repository",
"github_repository_collaborator": "Github/Repository/Collaborator",
"github_repository_dependabot_alert": "Github/Repository/DependabotAlert",
"github_repository_deployment": "Github/Repository/Deployment",
"github_repository_environment": "Github/Repository/Environment",
"github_repository_ruleset": "Github/Repository/Ruleset",
"github_repository_sbom": "Github/Repository/SBOM",
"github_repository_vulnerability_alert": "Github/Repository/VulnerabilityAlert",
"github_tag": "Github/Tag",
"github_team_member": "Github/Team/Member",
"github_user": "Github/User",
"github_workflow": "Github/Workflow",
"github_container_package": "Github/Container/Package",
"github_maven_package": "Github/Package/Maven",
"github_npm_package": "Github/NPM/Package",
"github_nuget_package": "Github/Nuget/Package",
"github_artifact_dockerfile": "Github/Artifact/DockerFile",
}