File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
"github.com/rs/xid"
7
7
8
- "github.com/turbot/tailpipe-plugin-github/config"
9
8
"github.com/turbot/tailpipe-plugin-github/mappers"
10
9
"github.com/turbot/tailpipe-plugin-github/rows"
11
10
"github.com/turbot/tailpipe-plugin-sdk/artifact_source"
@@ -19,19 +18,22 @@ const AuditLogTableIdentifier = "github_audit_log"
19
18
20
19
// register the table from the package init function
21
20
func init () {
22
- table .RegisterTable [* rows.AuditLog , * AuditLogTable ]()
21
+ // Register the table, with type parameters:
22
+ // 1. row struct
23
+ // 2. table config struct
24
+ // 3. table implementation
25
+ table .RegisterTable [* rows.AuditLog , * AuditLogTableConfig , * AuditLogTable ]()
23
26
}
24
27
25
28
// AuditLogTable - table for github audit logs
26
29
type AuditLogTable struct {
27
- table.TableImpl [* rows.AuditLog , * AuditLogTableConfig , * config.GitHubConnection ]
28
30
}
29
31
30
32
func (c * AuditLogTable ) Identifier () string {
31
33
return AuditLogTableIdentifier
32
34
}
33
35
34
- func (c * AuditLogTable ) SupportedSources () []* table.SourceMetadata [* rows.AuditLog ] {
36
+ func (c * AuditLogTable ) SupportedSources (_ * AuditLogTableConfig ) []* table.SourceMetadata [* rows.AuditLog ] {
35
37
return []* table.SourceMetadata [* rows.AuditLog ]{
36
38
{
37
39
SourceName : constants .ArtifactSourceIdentifier ,
You can’t perform that action at this time.
0 commit comments