Documentation
¶
Index ¶
- Variables
- func ExtractResourceType(tableName string) string
- func ExtractTableName(resourceType string) string
- func ExtractTagsAndNames(logger *zap.Logger, plg *plugin.Plugin, resourceType string, ...) (map[string]string, string, error)
- func GetResourceTypeByTableName(tableName string) string
- func Plugin() *plugin.Plugin
Constants ¶
This section is empty.
Variables ¶
View Source
var DescriptionMap = map[string]interface{}{ "Github/Actions/Artifact": opengovernance.Artifact{}, "Github/Actions/Repository/Runner": opengovernance.Runner{}, "Github/Actions/Repository/Secret": opengovernance.Secret{}, "Github/Actions/Repository/Workflow_run": opengovernance.WorkflowRun{}, "Github/AuditLog": opengovernance.AuditLog{}, "Github/Blob": opengovernance.Blob{}, "Github/Branch": opengovernance.Branch{}, "Github/Branch/Protection": opengovernance.BranchProtection{}, "Github/Commit": opengovernance.Commit{}, "Github/CommunityProfile": opengovernance.CommunityProfile{}, "Github/Gitignore": opengovernance.GitIgnore{}, "Github/Issue": opengovernance.Issue{}, "Github/Issue/Comment": opengovernance.IssueComment{}, "Github/License": opengovernance.License{}, "Github/Organization": opengovernance.Organization{}, "Github/Organization/Collaborator": opengovernance.OrgCollaborators{}, "Github/Organization/DependabotAlert": opengovernance.OrgAlertDependabot{}, "Github/Organization/ExternalIdentity": opengovernance.OrgExternalIdentity{}, "Github/Organization/Member": opengovernance.OrgMembers{}, "Github/PullRequest": opengovernance.PullRequest{}, "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/Star": opengovernance.Star{}, "Github/Stargazer": opengovernance.Stargazer{}, "Github/Tag": opengovernance.Tag{}, "Github/Team": opengovernance.Team{}, "Github/Team/Member": opengovernance.TeamMembers{}, "Github/Team/Repository": opengovernance.TeamRepository{}, "Github/Traffic/View/Daily": opengovernance.TrafficViewDaily{}, "Github/Traffic/View/Weekly": opengovernance.TrafficViewWeekly{}, "Github/Tree": opengovernance.Tree{}, "GithubUser": opengovernance.User{}, "GithubWorkflow": opengovernance.Workflow{}, }
View Source
var Map = map[string]string{
"Github/Actions/Artifact": "github_actions_artifact",
"Github/Actions/Repository/Runner": "github_actions_repository_runner",
"Github/Actions/Repository/Secret": "github_actions_repository_secret",
"Github/Actions/Repository/Workflow_run": "github_actions_repository_workflow_run",
"Github/AuditLog": "github_audit_log",
"Github/Blob": "github_blob",
"Github/Branch": "github_branch",
"Github/Branch/Protection": "github_branch_protection",
"Github/Commit": "github_commit",
"Github/CommunityProfile": "github_community_profile",
"Github/Gitignore": "github_gitignore",
"Github/Issue": "github_my_issue",
"Github/Issue/Comment": "github_issue_comment",
"Github/License": "github_license",
"Github/Organization": "github_my_organization",
"Github/Organization/Collaborator": "github_organization_collaborators",
"Github/Organization/DependabotAlert": "github_organization_dependabot_alert",
"Github/Organization/ExternalIdentity": "github_organization_external_identity",
"Github/Organization/Member": "github_organization_member",
"Github/PullRequest": "github_pull_request",
"Github/Repository": "github_my_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/Star": "github_my_star",
"Github/Stargazer": "github_stargazer",
"Github/Tag": "github_tag",
"Github/Team": "github_my_team",
"Github/Team/Member": "github_team_member",
"Github/Team/Repository": "github_team_repository",
"Github/Traffic/View/Daily": "github_traffic_view_daily",
"Github/Traffic/View/Weekly": "github_traffic_view_weekly",
"Github/Tree": "github_tree",
"GithubUser": "github_user",
"GithubWorkflow": "github_workflow",
}
View Source
var ReverseMap = map[string]string{
"github_actions_artifact": "Github/Actions/Artifact",
"github_actions_repository_runner": "Github/Actions/Repository/Runner",
"github_actions_repository_secret": "Github/Actions/Repository/Secret",
"github_actions_repository_workflow_run": "Github/Actions/Repository/Workflow_run",
"github_audit_log": "Github/AuditLog",
"github_blob": "Github/Blob",
"github_branch": "Github/Branch",
"github_branch_protection": "Github/Branch/Protection",
"github_commit": "Github/Commit",
"github_community_profile": "Github/CommunityProfile",
"github_gitignore": "Github/Gitignore",
"github_my_issue": "Github/Issue",
"github_issue_comment": "Github/Issue/Comment",
"github_license": "Github/License",
"github_my_organization": "Github/Organization",
"github_organization_collaborators": "Github/Organization/Collaborator",
"github_organization_dependabot_alert": "Github/Organization/DependabotAlert",
"github_organization_external_identity": "Github/Organization/ExternalIdentity",
"github_organization_member": "Github/Organization/Member",
"github_pull_request": "Github/PullRequest",
"github_my_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_my_star": "Github/Star",
"github_stargazer": "Github/Stargazer",
"github_tag": "Github/Tag",
"github_my_team": "Github/Team",
"github_team_member": "Github/Team/Member",
"github_team_repository": "Github/Team/Repository",
"github_traffic_view_daily": "Github/Traffic/View/Daily",
"github_traffic_view_weekly": "Github/Traffic/View/Weekly",
"github_tree": "Github/Tree",
"github_user": "GithubUser",
"github_workflow": "GithubWorkflow",
}
Functions ¶
func ExtractResourceType ¶
func ExtractTableName ¶
func ExtractTagsAndNames ¶
func GetResourceTypeByTableName ¶
GetResourceTypeByTableName TODO: use this in integration implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.