/
plugin.go
68 lines (65 loc) · 3.7 KB
/
plugin.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
package github
import (
"context"
"github.com/turbot/steampipe-plugin-sdk/v4/plugin"
"github.com/turbot/steampipe-plugin-sdk/v4/plugin/transform"
)
// Plugin returns this plugin
func Plugin(ctx context.Context) *plugin.Plugin {
p := &plugin.Plugin{
Name: "steampipe-plugin-github",
ConnectionConfigSchema: &plugin.ConnectionConfigSchema{
NewInstance: ConfigInstance,
Schema: ConfigSchema,
},
DefaultTransform: transform.FromGo(),
TableMap: map[string]*plugin.Table{
"github_actions_artifact": tableGitHubActionsArtifact(ctx),
"github_actions_repository_runner": tableGitHubActionsRepositoryRunner(ctx),
"github_actions_repository_secret": tableGitHubActionsRepositorySecret(ctx),
"github_actions_repository_workflow_run": tableGitHubActionsRepositoryWorkflowRun(ctx),
"github_audit_log": tableGitHubAuditLog(ctx),
"github_branch_protection": tableGitHubBranchProtection(ctx),
"github_branch": tableGitHubBranch(ctx),
"github_commit": tableGitHubCommit(ctx),
"github_community_profile": tableGitHubCommunityProfile(ctx),
"github_code_owner": tableGitHubCodeOwner(),
"github_dependabot_alert": tableGitHubDependabotAlert(),
"github_gist": tableGitHubGist(),
"github_gitignore": tableGitHubGitignore(),
"github_issue": tableGitHubIssue(),
"github_license": tableGitHubLicense(),
"github_my_gist": tableGitHubMyGist(),
"github_my_issue": tableGitHubMyIssue(),
"github_my_organization": tableGitHubMyOrganization(),
"github_my_repository": tableGitHubMyRepository(),
"github_my_star": tableGitHubMyStar(),
"github_my_team": tableGitHubMyTeam(),
"github_organization": tableGitHubOrganization(),
"github_organization_member": tableGitHubOrganizationMember(),
"github_pull_request": tableGitHubPullRequest(),
"github_rate_limit": tableGitHubRateLimit(ctx),
"github_release": tableGitHubRelease(ctx),
"github_repository": tableGitHubRepository(),
"github_search_code": tableGitHubSearchCode(ctx),
"github_search_commit": tableGitHubSearchCommit(ctx),
"github_search_issue": tableGitHubSearchIssue(ctx),
"github_search_label": tableGitHubSearchLable(ctx),
"github_search_pull_request": tableGitHubSearchPullRequest(ctx),
"github_search_repository": tableGitHubSearchRepository(ctx),
"github_search_topic": tableGitHubSearchTopic(ctx),
"github_search_user": tableGitHubSearchUser(ctx),
"github_stargazer": tableGitHubStargazer(ctx),
"github_tag": tableGitHubTag(ctx),
"github_team_member": tableGitHubTeamMember(),
"github_team_repository": tableGitHubTeamRepository(),
"github_team": tableGitHubTeam(),
"github_traffic_view_daily": tableGitHubTrafficViewDaily(ctx),
"github_traffic_view_weekly": tableGitHubTrafficViewWeekly(ctx),
"github_tree": tableGitHubTree(ctx),
"github_user": tableGitHubUser(),
"github_workflow": tableGitHubWorkflow(ctx),
},
}
return p
}