Compare commits

..
5 Commits
Author SHA1 Message Date
Delaine Rogers 4eb3293a9a remove unneeded additions 2026-09-16 11:10:03 -07:00
Delaine Rogers 3962754106 update error type to HostPluginIssue 2026-08-19 11:45:27 -07:00
Delaine Rogers 512f18baaa fix capitalization 2026-08-18 16:56:42 -07:00
Delaine Rogers f4406802cb Add describeInstancesResponse struct and update hostSetQuery struct 2026-08-18 13:33:08 -07:00
Susmitha Girumala 163ec69771 Update github test workflow permissions to read-only (#76)
Set GITHUB_TOKEN to read-only permission by default
2026-07-14 15:31:58 -04:00
2 changed files with 9 additions and 7 deletions

No files matched your search

+2
View File
@@ -4,6 +4,8 @@ on:
- workflow_dispatch
- push
permissions: read-all
jobs:
test:
runs-on: ubuntu-latest
+7 -7
View File
@@ -32,6 +32,13 @@ type HostPlugin struct {
testCatalogStateOpts []awsCatalogPersistedStateOption
}
type hostSetQuery struct {
Id string
Input *ec2.DescribeInstancesInput
Output *ec2.DescribeInstancesOutput
OutputHosts []*pb.ListHostsResponseHost
}
// Ensure that we are implementing HostPluginServiceServer
var _ pb.HostPluginServiceServer = (*HostPlugin)(nil)
@@ -495,13 +502,6 @@ func (p *HostPlugin) ListHosts(ctx context.Context, req *pb.ListHostsRequest) (*
}
// Build all the queries in advance.
type hostSetQuery struct {
Id string
Input *ec2.DescribeInstancesInput
Output *ec2.DescribeInstancesOutput
OutputHosts []*pb.ListHostsResponseHost
}
queries := make([]hostSetQuery, len(sets))
for i, set := range sets {
// Validate Id since we use it in output