Skip to content

Commit

Permalink
Recompile plugin with steampipe-plugin-sdk v5.10.4 and Go version 1.2…
Browse files Browse the repository at this point in the history
…2.4 (#445)
  • Loading branch information
misraved authored Oct 21, 2024
1 parent c16e902 commit 987c28a
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_action_trail.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func getActionTrail(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateD
return nil, serverErr
}

if response.TrailList != nil && len(response.TrailList) > 0 {
if len(response.TrailList) > 0 {
return response.TrailList[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_auto_provisioning_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func getEcsAutosProvisioningGroup(ctx context.Context, d *plugin.QueryData, h *p
return nil, serverErr
}

if response.AutoProvisioningGroups.AutoProvisioningGroup != nil && len(response.AutoProvisioningGroups.AutoProvisioningGroup) > 0 {
if len(response.AutoProvisioningGroups.AutoProvisioningGroup) > 0 {
return response.AutoProvisioningGroups.AutoProvisioningGroup[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_autoscaling_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func getEcsAutoscalingGroup(ctx context.Context, d *plugin.QueryData, h *plugin.
return nil, serverErr
}

if response.ScalingGroups.ScalingGroup != nil && len(response.ScalingGroups.ScalingGroup) > 0 {
if len(response.ScalingGroups.ScalingGroup) > 0 {
return response.ScalingGroups.ScalingGroup[0], nil
}

Expand Down
4 changes: 2 additions & 2 deletions alicloud/table_alicloud_ecs_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func getEcsDisk(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData)
return nil, serverErr
}

if response.Disks.Disk != nil && len(response.Disks.Disk) > 0 {
if len(response.Disks.Disk) > 0 {
return response.Disks.Disk[0], nil
}

Expand Down Expand Up @@ -435,7 +435,7 @@ func getEcsDiskAutoSnapshotPolicy(ctx context.Context, d *plugin.QueryData, h *p
return nil, serverErr
}

if response.AutoSnapshotPolicies.AutoSnapshotPolicy != nil && len(response.AutoSnapshotPolicies.AutoSnapshotPolicy) > 0 {
if len(response.AutoSnapshotPolicies.AutoSnapshotPolicy) > 0 {
return response.AutoSnapshotPolicies.AutoSnapshotPolicy[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func getEcsImage(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData
return nil, serverErr
}

if response.Images.Image != nil && len(response.Images.Image) > 0 {
if len(response.Images.Image) > 0 {
return response.Images.Image[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ func getEcsInstance(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateD
return nil, serverErr
}

if response.Instances.Instance != nil && len(response.Instances.Instance) > 0 {
if len(response.Instances.Instance) > 0 {
return response.Instances.Instance[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_key_pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func getEcsKeypair(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateDa
return nil, serverErr
}

if response.KeyPairs.KeyPair != nil && len(response.KeyPairs.KeyPair) > 0 {
if len(response.KeyPairs.KeyPair) > 0 {
return response.KeyPairs.KeyPair[0], nil
}

Expand Down
4 changes: 2 additions & 2 deletions alicloud/table_alicloud_ecs_luanch_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func getEcsLaunchTemplate(ctx context.Context, d *plugin.QueryData, h *plugin.Hy
return nil, err
}

if response.LaunchTemplateSets.LaunchTemplateSet != nil && len(response.LaunchTemplateSets.LaunchTemplateSet) > 0 {
if len(response.LaunchTemplateSets.LaunchTemplateSet) > 0 {
return response.LaunchTemplateSets.LaunchTemplateSet[0], nil
}

Expand Down Expand Up @@ -213,7 +213,7 @@ func getEcsLaunchTemplateLatestVersionDetails(ctx context.Context, d *plugin.Que
return nil, err
}

if response.LaunchTemplateVersionSets.LaunchTemplateVersionSet != nil && len(response.LaunchTemplateVersionSets.LaunchTemplateVersionSet) > 0 {
if len(response.LaunchTemplateVersionSets.LaunchTemplateVersionSet) > 0 {
return response.LaunchTemplateVersionSets.LaunchTemplateVersionSet[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_network_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func getEcsEni(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData)
return nil, serverErr
}

if response.NetworkInterfaceSets.NetworkInterfaceSet != nil && len(response.NetworkInterfaceSets.NetworkInterfaceSet) > 0 {
if len(response.NetworkInterfaceSets.NetworkInterfaceSet) > 0 {
return response.NetworkInterfaceSets.NetworkInterfaceSet[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func getEcsSecurityGroup(ctx context.Context, d *plugin.QueryData, h *plugin.Hyd
return nil, err
}

if response.SecurityGroups.SecurityGroup != nil && len(response.SecurityGroups.SecurityGroup) > 0 {
if len(response.SecurityGroups.SecurityGroup) > 0 {
return response.SecurityGroups.SecurityGroup[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_ecs_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func getEcsSnapshot(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateD
return nil, serverErr
}

if response.Snapshots.Snapshot != nil && len(response.Snapshots.Snapshot) > 0 {
if len(response.Snapshots.Snapshot) > 0 {
return response.Snapshots.Snapshot[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_kms_secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func listKmsSecretVersionIds(ctx context.Context, d *plugin.QueryData, h *plugin
return nil, err
}

if response.VersionIds.VersionId != nil && len(response.VersionIds.VersionId) > 0 {
if len(response.VersionIds.VersionId) > 0 {
return response.VersionIds, nil
}

Expand Down
4 changes: 2 additions & 2 deletions alicloud/table_alicloud_rds_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ func getRdsInstance(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateD
return nil, err
}

if response.Items.DBInstanceAttribute != nil && len(response.Items.DBInstanceAttribute) > 0 {
if len(response.Items.DBInstanceAttribute) > 0 {
if response.Items.DBInstanceAttribute[0].RegionId == region {
return response.Items.DBInstanceAttribute[0], nil
}
Expand Down Expand Up @@ -667,7 +667,7 @@ func getRdsInstanceIPArrayList(ctx context.Context, d *plugin.QueryData, h *plug
return nil, err
}

if response.Items.DBInstanceIPArray != nil && len(response.Items.DBInstanceIPArray) > 0 {
if len(response.Items.DBInstanceIPArray) > 0 {
return response, nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_slb_load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func getSlbLoadBalancer(ctx context.Context, d *plugin.QueryData, h *plugin.Hydr
return nil, err
}

if response.LoadBalancers.LoadBalancer != nil && len(response.LoadBalancers.LoadBalancer) > 0 {
if len(response.LoadBalancers.LoadBalancer) > 0 {
if response.LoadBalancers.LoadBalancer[0].RegionId == region {
return response.LoadBalancers.LoadBalancer[0], nil
}
Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_eip.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func getEip(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (in
return nil, err
}

if response.EipAddresses.EipAddress != nil && len(response.EipAddresses.EipAddress) > 0 {
if len(response.EipAddresses.EipAddress) > 0 {
return response.EipAddresses.EipAddress[0], nil
}
return nil, nil
Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_flow_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func getVpcFlowLog(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateDa
return nil, err
}

if response.FlowLogs.FlowLog != nil && len(response.FlowLogs.FlowLog) > 0 {
if len(response.FlowLogs.FlowLog) > 0 {
return response.FlowLogs.FlowLog[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_nat_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func getVpcNatGateway(ctx context.Context, d *plugin.QueryData, h *plugin.Hydrat
return nil, err
}

if response.NatGateways.NatGateway != nil && len(response.NatGateways.NatGateway) > 0 {
if len(response.NatGateways.NatGateway) > 0 {
return response.NatGateways.NatGateway[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_route_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func getVpcRouteTable(ctx context.Context, d *plugin.QueryData, h *plugin.Hydrat
return nil, err
}

if response.RouterTableList.RouterTableListType != nil && len(response.RouterTableList.RouterTableListType) > 0 {
if len(response.RouterTableList.RouterTableListType) > 0 {
return response.RouterTableList.RouterTableListType[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_ssl_vpn_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func getVpnSslServer(ctx context.Context, d *plugin.QueryData, h *plugin.Hydrate
return nil, serverErr
}

if response.SslVpnServers.SslVpnServer != nil && len(response.SslVpnServers.SslVpnServer) > 0 {
if len(response.SslVpnServers.SslVpnServer) > 0 {
return response.SslVpnServers.SslVpnServer[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_vpn_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func getVpcVpnConnection(ctx context.Context, d *plugin.QueryData, h *plugin.Hyd
return nil, err
}

if response.VpnConnections.VpnConnection != nil && len(response.VpnConnections.VpnConnection) > 0 {
if len(response.VpnConnections.VpnConnection) > 0 {
return response.VpnConnections.VpnConnection[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_vpn_customer_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func getVpcCustomerGateway(ctx context.Context, d *plugin.QueryData, _ *plugin.H
return nil, err
}

if response.CustomerGateways.CustomerGateway != nil && len(response.CustomerGateways.CustomerGateway) > 0 {
if len(response.CustomerGateways.CustomerGateway) > 0 {
return response.CustomerGateways.CustomerGateway[0], nil
}

Expand Down
2 changes: 1 addition & 1 deletion alicloud/table_alicloud_vpc_vpn_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func getVpcVpnGateway(ctx context.Context, d *plugin.QueryData, _ *plugin.Hydrat
return nil, err
}

if response.VpnGateways.VpnGateway != nil && len(response.VpnGateways.VpnGateway) > 0 {
if len(response.VpnGateways.VpnGateway) > 0 {
return response.VpnGateways.VpnGateway[0], nil
}
return nil, nil
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/turbot/steampipe-plugin-alicloud

go 1.21.0
go 1.22.4

toolchain go1.21.1
toolchain go1.22.6

require (
github.com/alibabacloud-go/ims-20190815 v1.0.0
Expand All @@ -13,7 +13,7 @@ require (
github.com/gocarina/gocsv v0.0.0-20201208093247-67c824bc04d4
github.com/sethvargo/go-retry v0.2.4
github.com/turbot/go-kit v0.10.0-rc.0
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.1
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.4
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ github.com/tkrajina/go-reflector v0.5.6 h1:hKQ0gyocG7vgMD2M3dRlYN6WBBOmdoOzJ6njQ
github.com/tkrajina/go-reflector v0.5.6/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4=
github.com/turbot/go-kit v0.10.0-rc.0 h1:kd+jp2ibbIV33Hc8SsMAN410Dl9Pz6SJ40axbKUlSoA=
github.com/turbot/go-kit v0.10.0-rc.0/go.mod h1:fFQqR59I5z5JeeBLfK1PjSifn4Oprs3NiQx0CxeSJxs=
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.1 h1:yqiWeswy7geNzRIUJGuA7KQRq6gY5gUOc6ozBgbpNzI=
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.1/go.mod h1:Ji3NU2vyZChu4aodAuSpeAS/JkApFGvsPePjOn8h9as=
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.4 h1:h2Ye0ksL6KN6w2wh1O3mgKthLnyl4QPsTpUj47bRbvc=
github.com/turbot/steampipe-plugin-sdk/v5 v5.10.4/go.mod h1:FzW+0aq4x1PoCkklCRx43dMrhxk7SYeWVHUb3pNFtFc=
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down

0 comments on commit 987c28a

Please sign in to comment.