Skip to content

Commit b0aad6f

Browse files
committed
chore: tweak resource payload
1 parent 0c251f9 commit b0aad6f

File tree

11 files changed

+237
-204
lines changed

11 files changed

+237
-204
lines changed

docs/apidocs.swagger.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,6 +1850,20 @@ definitions:
18501850
expiresAt:
18511851
type: string
18521852
format: date-time
1853+
WorkspaceStorageSettingS3Config:
1854+
type: object
1855+
properties:
1856+
accessKeyId:
1857+
type: string
1858+
accessKeySecret:
1859+
type: string
1860+
endpoint:
1861+
type: string
1862+
region:
1863+
type: string
1864+
bucket:
1865+
type: string
1866+
title: 'Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/'
18531867
apiHttpBody:
18541868
type: object
18551869
properties:
@@ -2086,22 +2100,8 @@ definitions:
20862100
format: int64
20872101
description: The max upload size in megabytes.
20882102
s3Config:
2089-
$ref: '#/definitions/apiv1WorkspaceStorageSettingS3Config'
2103+
$ref: '#/definitions/WorkspaceStorageSettingS3Config'
20902104
description: The S3 config.
2091-
apiv1WorkspaceStorageSettingS3Config:
2092-
type: object
2093-
properties:
2094-
accessKeyId:
2095-
type: string
2096-
accessKeySecret:
2097-
type: string
2098-
endpoint:
2099-
type: string
2100-
region:
2101-
type: string
2102-
bucket:
2103-
type: string
2104-
title: 'Reference: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-go/'
21052105
apiv1WorkspaceStorageSettingStorageType:
21062106
type: string
21072107
enum:

plugin/storage/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Client struct {
2020
Bucket *string
2121
}
2222

23-
func NewClient(ctx context.Context, s3Config *storepb.WorkspaceStorageSetting_S3Config) (*Client, error) {
23+
func NewClient(ctx context.Context, s3Config *storepb.StorageS3Config) (*Client, error) {
2424
resolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...any) (aws.Endpoint, error) {
2525
return aws.Endpoint{
2626
URL: s3Config.Endpoint,

proto/gen/store/resource.pb.go

Lines changed: 55 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)