Skip to content

Commit

Permalink
feat: added key column for tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiaBP committed Dec 18, 2024
1 parent af1a400 commit 657de5e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_blueprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderBlueprint(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListBlueprint,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetBlueprint,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetBlueprint,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderDeploy(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListDeploy,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetDeploy,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetDeploy,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderDisk(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListDisk,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetDisk,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetDisk,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_env_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderEnvGroup(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListEnvGroup,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetEnvGroup,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetEnvGroup,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderEnvironment(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListEnvironment,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetEnvironment,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetEnvironment,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderHeader(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListHeader,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetHeader,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetHeader,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderJob(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListJob,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetJob,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetJob,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderPostgres(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListPostgres,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetPostgres,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetPostgres,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderProject(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListProject,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetProject,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetProject,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderRoute(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListRoute,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetRoute,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetRoute,
},
Columns: []*plugin.Column{
// Top columns
Expand Down
3 changes: 2 additions & 1 deletion steampipe-plugin-render/render/table_render_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func tableRenderService(ctx context.Context) *plugin.Table {
Hydrate: opengovernance.ListService,
},
Get: &plugin.GetConfig{
Hydrate: opengovernance.GetService,
KeyColumns: plugin.SingleColumn("id"),
Hydrate: opengovernance.GetService,
},
Columns: []*plugin.Column{
// Top columns
Expand Down

0 comments on commit 657de5e

Please sign in to comment.