From 567e2237fd6ae05770dab6f7ec527f112e59d69e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 6 May 2026 21:34:40 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20deps(gomod):=20update=20mo?= =?UTF-8?q?dule=20github.com/outscale/osc-sdk-go/v3=20to=20v3.0.0-rc.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 4 ++-- go.sum | 4 ++++ .../providers/outscale_oapi/outscale_oapi.go | 20 +++++++++---------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index 2f029cf..4c01128 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go-v2/config v1.31.21 github.com/aws/aws-sdk-go-v2/service/s3 v1.91.0 github.com/aws/smithy-go v1.25.1 - github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.1.0.20260325152615-8ac3c57fdae9 + github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.2 github.com/teris-io/cli v1.0.1 ) @@ -35,6 +35,6 @@ require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-retryablehttp v0.7.8 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect - github.com/oapi-codegen/runtime v1.2.0 // indirect + github.com/oapi-codegen/runtime v1.3.1 // indirect go.uber.org/ratelimit v0.3.1 // indirect ) diff --git a/go.sum b/go.sum index ddbe504..36d8e7b 100644 --- a/go.sum +++ b/go.sum @@ -72,8 +72,12 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/oapi-codegen/runtime v1.2.0 h1:RvKc1CVS1QeKSNzO97FBQbSMZyQ8s6rZd+LpmzwHMP4= github.com/oapi-codegen/runtime v1.2.0/go.mod h1:Y7ZhmmlE8ikZOmuHRRndiIm7nf3xcVv+YMweKgG1DT0= +github.com/oapi-codegen/runtime v1.3.1 h1:RgDY6J4OGQLbRXhG/Xpt3vSVqYpHQS7hN4m85+5xB9g= +github.com/oapi-codegen/runtime v1.3.1/go.mod h1:kOdeacKy7t40Rclb1je37ZLFboFxh+YLy0zaPCMibPY= github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.1.0.20260325152615-8ac3c57fdae9 h1:+02xVACMscx3PPiz0HQ3nYYBzPr2d53vXrVqWW9EazY= github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.1.0.20260325152615-8ac3c57fdae9/go.mod h1:UcWWGficA2HzrZ3ZYYfqZpOdCACDF22PUGBgTZF/FUo= +github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.2 h1:uj8s4jaqqzq2hFqQVAB6PTVwuPm43e5Ti/ZFQqvCAB0= +github.com/outscale/osc-sdk-go/v3 v3.0.0-rc.2/go.mod h1:Yi0j2XAZ0/8g0ObVFofMSL5+IuNIDp/AiEI6gXc7txc= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= diff --git a/internal/providers/outscale_oapi/outscale_oapi.go b/internal/providers/outscale_oapi/outscale_oapi.go index adda07b..c6f7767 100644 --- a/internal/providers/outscale_oapi/outscale_oapi.go +++ b/internal/providers/outscale_oapi/outscale_oapi.go @@ -977,8 +977,8 @@ func (provider *OutscaleOAPI) readVpnConnections(ctx context.Context) ([]Object, ctx, osc.ReadVpnConnectionsRequest{ Filters: &osc.FiltersVpnConnection{ - States: &[]string{ - "pending", "available", // skipping deleting, deleted + States: &[]osc.VpnConnectionState{ + osc.VpnConnectionStatePending, osc.VpnConnectionStateAvailable, // skipping deleting, deleted }, }, }, @@ -1051,8 +1051,8 @@ func (provider *OutscaleOAPI) readClientGateways(ctx context.Context) ([]Object, ctx, osc.ReadClientGatewaysRequest{ Filters: &osc.FiltersClientGateway{ - States: &[]string{ - "pending", "available", // skipping deleting, deleted + States: &[]osc.ClientGatewayState{ + osc.ClientGatewayStatePending, osc.ClientGatewayStateAvailable, // skipping deleting, deleted }, }, }, @@ -1521,8 +1521,8 @@ func (provider *OutscaleOAPI) readFlexibleGpus(ctx context.Context) ([]Object, e return nil, fmt.Errorf("read flexible gpus: %w", getErrorInfo(err)) } for i, gpu := range *read.FlexibleGpus { - flexibleGpus = append(flexibleGpus, *gpu.FlexibleGpuId) - provider.cache.flexibleGpus[*gpu.FlexibleGpuId] = &(*read.FlexibleGpus)[i] + flexibleGpus = append(flexibleGpus, gpu.FlexibleGpuId) + provider.cache.flexibleGpus[gpu.FlexibleGpuId] = &(*read.FlexibleGpus)[i] } return flexibleGpus, nil } @@ -1533,13 +1533,13 @@ func (provider *OutscaleOAPI) unlinkFlexibleGpus(ctx context.Context, flexibleGp if gpu == nil { continue } - switch *gpu.State { - case "attaching", "attached": + switch gpu.State { + case osc.FlexibleGpuStateAttaching, osc.FlexibleGpuStateAttached: default: continue } - log.Printf("Unlinking flexible gpu %s... ", *gpu.FlexibleGpuId) - unlinkOpts := osc.UnlinkFlexibleGpuRequest{FlexibleGpuId: *gpu.FlexibleGpuId} + log.Printf("Unlinking flexible gpu %s... ", gpu.FlexibleGpuId) + unlinkOpts := osc.UnlinkFlexibleGpuRequest{FlexibleGpuId: gpu.FlexibleGpuId} _, err := provider.client.UnlinkFlexibleGpu(ctx, unlinkOpts) if err != nil { log.Printf("Error while unlinking flexible gpu: %v\n", getErrorInfo(err))