Skip to content

Commit 1931b74

Browse files
chore(deps): bump github.com/stackitcloud/stackit-sdk-go/services/edge from 0.2.0 to 0.3.0 (#1228)
1 parent bde28f2 commit 1931b74

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/stackitcloud/stackit-sdk-go/services/alb v0.8.0
2020
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0
2121
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.3
22-
github.com/stackitcloud/stackit-sdk-go/services/edge v0.2.0
22+
github.com/stackitcloud/stackit-sdk-go/services/edge v0.3.0
2323
github.com/stackitcloud/stackit-sdk-go/services/git v0.10.1
2424
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0
2525
github.com/stackitcloud/stackit-sdk-go/services/intake v0.4.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,8 @@ github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0 h1:4YFY5PG
608608
github.com/stackitcloud/stackit-sdk-go/services/authorization v0.11.0/go.mod h1:v4xdRA5P8Vr+zLdHh+ODgspN0WJG04wLImIJoYjrPK4=
609609
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.3 h1:KD/FxU/cJIzfyMvwiOvTlSWq87ISENpHNmw/quznGnw=
610610
github.com/stackitcloud/stackit-sdk-go/services/dns v0.17.3/go.mod h1:BNiIZkDqwSV1LkWDjMKxVb9pxQ/HMIsXJ0AQ8pFoAo4=
611-
github.com/stackitcloud/stackit-sdk-go/services/edge v0.2.0 h1:ElmnEg3V4MisAgqqJFxl3nCmKraxbHtN+vv1DNiWYfM=
612-
github.com/stackitcloud/stackit-sdk-go/services/edge v0.2.0/go.mod h1:tFDkVkK+ESBTiH2XIcMPPR/pJJmeqT1VNDghg+ZxfMI=
611+
github.com/stackitcloud/stackit-sdk-go/services/edge v0.3.0 h1:JL34T5IjuZjt+XGOBqkutnZnUd41jz9J9Lr8ZgPUiZI=
612+
github.com/stackitcloud/stackit-sdk-go/services/edge v0.3.0/go.mod h1:tFDkVkK+ESBTiH2XIcMPPR/pJJmeqT1VNDghg+ZxfMI=
613613
github.com/stackitcloud/stackit-sdk-go/services/git v0.10.1 h1:3JKXfI5hdcXcRVBjUZg5qprXG5rDmPnM6dsvplMk/vg=
614614
github.com/stackitcloud/stackit-sdk-go/services/git v0.10.1/go.mod h1:3nTaj8IGjNNGYUD2CpuXkXwc5c4giTUmoPggFhjVFxo=
615615
github.com/stackitcloud/stackit-sdk-go/services/iaas v1.3.0 h1:U/x0tc487X9msMS5yZYjrBAAKrCx87Trmt0kh8JiARA=

internal/cmd/beta/edge/instance/create/create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ type createRequestSpec struct {
124124
// Exported fields allow tests to inspect the request inputs
125125
ProjectID string
126126
Region string
127-
Payload edge.PostInstancesPayload
127+
Payload edge.CreateInstancePayload
128128

129129
// Execute is a closure that wraps the actual SDK call
130130
Execute func() (*edge.Instance, error)
@@ -191,15 +191,15 @@ func run(ctx context.Context, model *inputModel, apiClient client.APIClient) (*e
191191

192192
// buildRequest constructs the spec that can be tested.
193193
func buildRequest(ctx context.Context, model *inputModel, apiClient client.APIClient) (*createRequestSpec, error) {
194-
req := apiClient.PostInstances(ctx, model.ProjectId, model.Region)
194+
req := apiClient.CreateInstance(ctx, model.ProjectId, model.Region)
195195

196196
// Build request payload
197-
payload := edge.PostInstancesPayload{
197+
payload := edge.CreateInstancePayload{
198198
DisplayName: &model.DisplayName,
199199
Description: &model.Description,
200200
PlanId: &model.PlanId,
201201
}
202-
req = req.PostInstancesPayload(payload)
202+
req = req.CreateInstancePayload(payload)
203203

204204
return &createRequestSpec{
205205
ProjectID: model.ProjectId,

internal/cmd/beta/edge/instance/create/create_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type mockExecutable struct {
4141
resp *edge.Instance
4242
}
4343

44-
func (m *mockExecutable) PostInstancesPayload(_ edge.PostInstancesPayload) edge.ApiPostInstancesRequest {
44+
func (m *mockExecutable) CreateInstancePayload(_ edge.CreateInstancePayload) edge.ApiCreateInstanceRequest {
4545
// This method is needed to satisfy the interface. It allows chaining in buildRequest.
4646
return m
4747
}
@@ -57,10 +57,10 @@ func (m *mockExecutable) Execute() (*edge.Instance, error) {
5757

5858
// mockAPIClient is a mock for the client.APIClient interface
5959
type mockAPIClient struct {
60-
postInstancesMock edge.ApiPostInstancesRequest
60+
postInstancesMock edge.ApiCreateInstanceRequest
6161
}
6262

63-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
63+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
6464
if m.postInstancesMock != nil {
6565
return m.postInstancesMock
6666
}
@@ -80,7 +80,7 @@ func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiG
8080
func (m *mockAPIClient) GetInstanceByName(_ context.Context, _, _, _ string) edge.ApiGetInstanceByNameRequest {
8181
return nil
8282
}
83-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
83+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
8484
return nil
8585
}
8686
func (m *mockAPIClient) UpdateInstance(_ context.Context, _, _, _ string) edge.ApiUpdateInstanceRequest {
@@ -291,7 +291,7 @@ func TestBuildRequest(t *testing.T) {
291291
want: &createRequestSpec{
292292
ProjectID: testProjectId,
293293
Region: testRegion,
294-
Payload: edge.PostInstancesPayload{
294+
Payload: edge.CreateInstancePayload{
295295
DisplayName: &testName,
296296
Description: &testDescription,
297297
PlanId: &testPlanId,

internal/cmd/beta/edge/instance/delete/delete_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (m *mockAPIClient) DeleteInstanceByName(_ context.Context, _, _, _ string)
7474
}
7575

7676
// Unused methods to satisfy the client.APIClient interface.
77-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
77+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
7878
return nil
7979
}
8080
func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiGetInstanceRequest {
@@ -83,7 +83,7 @@ func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiG
8383
func (m *mockAPIClient) GetInstanceByName(_ context.Context, _, _, _ string) edge.ApiGetInstanceByNameRequest {
8484
return nil
8585
}
86-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
86+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
8787
return nil
8888
}
8989
func (m *mockAPIClient) UpdateInstance(_ context.Context, _, _, _ string) edge.ApiUpdateInstanceRequest {

internal/cmd/beta/edge/instance/describe/describe_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ func (m *mockAPIClient) GetInstanceByName(_ context.Context, _, _, _ string) edg
7575
}
7676

7777
// Unused methods to satisfy the interface
78-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
78+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
7979
return nil
8080
}
81-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
81+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
8282
return nil
8383
}
8484
func (m *mockAPIClient) UpdateInstance(_ context.Context, _, _, _ string) edge.ApiUpdateInstanceRequest {

internal/cmd/beta/edge/instance/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func run(ctx context.Context, model *inputModel, apiClient client.APIClient) ([]
154154

155155
// buildRequest constructs the spec that can be tested.
156156
func buildRequest(ctx context.Context, model *inputModel, apiClient client.APIClient) (*listRequestSpec, error) {
157-
req := apiClient.GetInstances(ctx, model.ProjectId, model.Region)
157+
req := apiClient.ListInstances(ctx, model.ProjectId, model.Region)
158158

159159
return &listRequestSpec{
160160
ProjectID: model.ProjectId,

internal/cmd/beta/edge/instance/list/list_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,18 @@ func (m *mockExecutable) Execute() (*edge.InstanceList, error) {
5252

5353
// mockAPIClient is a mock for the edge.APIClient interface
5454
type mockAPIClient struct {
55-
getInstancesMock edge.ApiGetInstancesRequest
55+
getInstancesMock edge.ApiListInstancesRequest
5656
}
5757

58-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
58+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
5959
if m.getInstancesMock != nil {
6060
return m.getInstancesMock
6161
}
6262
return &mockExecutable{}
6363
}
6464

6565
// Unused methods to satisfy the interface
66-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
66+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
6767
return nil
6868
}
6969
func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiGetInstanceRequest {

internal/cmd/beta/edge/instance/update/update_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (m *mockAPIClient) UpdateInstanceByName(_ context.Context, _, _, _ string)
8888
}
8989

9090
// Unused methods to satisfy the interface
91-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
91+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
9292
return nil
9393
}
9494
func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiGetInstanceRequest {
@@ -97,7 +97,7 @@ func (m *mockAPIClient) GetInstance(_ context.Context, _, _, _ string) edge.ApiG
9797
func (m *mockAPIClient) GetInstanceByName(_ context.Context, _, _, _ string) edge.ApiGetInstanceByNameRequest {
9898
return nil
9999
}
100-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
100+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
101101
return nil
102102
}
103103
func (m *mockAPIClient) DeleteInstance(_ context.Context, _, _, _ string) edge.ApiDeleteInstanceRequest {

internal/cmd/beta/edge/kubeconfig/create/create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (m *mockAPIClient) ListPlansProject(_ context.Context, _ string) edge.ApiLi
142142
return nil
143143
}
144144

145-
func (m *mockAPIClient) PostInstances(_ context.Context, _, _ string) edge.ApiPostInstancesRequest {
145+
func (m *mockAPIClient) CreateInstance(_ context.Context, _, _ string) edge.ApiCreateInstanceRequest {
146146
return nil
147147
}
148148

@@ -162,7 +162,7 @@ func (m *mockAPIClient) GetInstanceByName(_ context.Context, _, _, _ string) edg
162162
return nil
163163
}
164164

165-
func (m *mockAPIClient) GetInstances(_ context.Context, _, _ string) edge.ApiGetInstancesRequest {
165+
func (m *mockAPIClient) ListInstances(_ context.Context, _, _ string) edge.ApiListInstancesRequest {
166166
return nil
167167
}
168168

0 commit comments

Comments
 (0)