@@ -91,7 +91,7 @@ func (c *Client) CreateObjectStorageBucket(ctx context.Context, opt linodego.Obj
91
91
return nil , err
92
92
}
93
93
94
- key := fmt .Sprintf ("%s/%s" , opt .Cluster , opt .Label )
94
+ key := fmt .Sprintf ("%s/%s" , opt .Region , opt .Label )
95
95
96
96
bucket , ok := c .objectStorageBuckets [key ]
97
97
if ok {
@@ -106,7 +106,7 @@ func (c *Client) CreateObjectStorageBucket(ctx context.Context, opt linodego.Obj
106
106
107
107
bucket = & linodego.ObjectStorageBucket {
108
108
Label : opt .Label ,
109
- Cluster : opt .Cluster ,
109
+ Region : opt .Region ,
110
110
Hostname : fmt .Sprintf ("%s.linodeobjects.com" , opt .Label ),
111
111
}
112
112
c .objectStorageBuckets [key ] = bucket
@@ -126,12 +126,12 @@ func (c *Client) CreateObjectStorageBucket(ctx context.Context, opt linodego.Obj
126
126
}
127
127
128
128
// GetObjectStorageBucket is a stub function that stubs the behavior of GetObjectStorageBucket call from linodego.Client.
129
- func (c * Client ) GetObjectStorageBucket (ctx context.Context , clusterID , label string ) (* linodego.ObjectStorageBucket , error ) {
129
+ func (c * Client ) GetObjectStorageBucket (ctx context.Context , region , label string ) (* linodego.ObjectStorageBucket , error ) {
130
130
if err := handleForcedFailure (ctx ); err != nil {
131
131
return nil , err
132
132
}
133
133
134
- key := fmt .Sprintf ("%s/%s" , clusterID , label )
134
+ key := fmt .Sprintf ("%s/%s" , region , label )
135
135
136
136
obj , ok := c .objectStorageBuckets [key ]
137
137
if ok {
@@ -144,12 +144,12 @@ func (c *Client) GetObjectStorageBucket(ctx context.Context, clusterID, label st
144
144
}
145
145
146
146
// DeleteObjectStorageBucket is a stub function that stubs the behavior of DeleteObjectStorageBucket call from linodego.Client.
147
- func (c * Client ) DeleteObjectStorageBucket (ctx context.Context , clusterID , label string ) error {
147
+ func (c * Client ) DeleteObjectStorageBucket (ctx context.Context , region , label string ) error {
148
148
if err := handleForcedFailure (ctx ); err != nil {
149
149
return err
150
150
}
151
151
152
- key := fmt .Sprintf ("%s/%s" , clusterID , label )
152
+ key := fmt .Sprintf ("%s/%s" , region , label )
153
153
154
154
bucket , ok := c .objectStorageBuckets [key ]
155
155
@@ -169,12 +169,12 @@ func (c *Client) DeleteObjectStorageBucket(ctx context.Context, clusterID, label
169
169
}
170
170
171
171
// GetObjectStorageBucketAccess is a stub function that stubs the behavior of GetObjectStorageBucketAccess call from linodego.Client.
172
- func (c * Client ) GetObjectStorageBucketAccess (ctx context.Context , clusterID , label string ) (* linodego.ObjectStorageBucketAccess , error ) {
172
+ func (c * Client ) GetObjectStorageBucketAccess (ctx context.Context , region , label string ) (* linodego.ObjectStorageBucketAccess , error ) {
173
173
if err := handleForcedFailure (ctx ); err != nil {
174
174
return nil , err
175
175
}
176
176
177
- key := fmt .Sprintf ("%s/%s" , clusterID , label )
177
+ key := fmt .Sprintf ("%s/%s" , region , label )
178
178
179
179
obj , ok := c .objectStorageBucketAccesses [key ]
180
180
if ok {
@@ -187,12 +187,12 @@ func (c *Client) GetObjectStorageBucketAccess(ctx context.Context, clusterID, la
187
187
}
188
188
189
189
// UpdateObjectStorageBucketAccess is a stub function that stubs the behavior of UpdateObjectStorageBucketAccess call from linodego.Client.
190
- func (c * Client ) UpdateObjectStorageBucketAccess (ctx context.Context , clusterID , label string , opt linodego.ObjectStorageBucketUpdateAccessOptions ) error {
190
+ func (c * Client ) UpdateObjectStorageBucketAccess (ctx context.Context , region , label string , opt linodego.ObjectStorageBucketUpdateAccessOptions ) error {
191
191
if err := handleForcedFailure (ctx ); err != nil {
192
192
return err
193
193
}
194
194
195
- key := fmt .Sprintf ("%s/%s" , clusterID , label )
195
+ key := fmt .Sprintf ("%s/%s" , region , label )
196
196
197
197
access , ok := c .objectStorageBucketAccesses [key ]
198
198
if ! ok {
0 commit comments