Skip to content

Commit f493165

Browse files
committed
Merge branch 'main' into feat/add_pagination
# Conflicts: # api/jiaozifs.gen.go # controller/branch_ctl.go # integrationtest/branch_test.go # models/branch_test.go
2 parents 9e4aa19 + b39bc97 commit f493165

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2539
-1384
lines changed

api/api_impl/server.go

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,21 @@ import (
55
"errors"
66
"net"
77
"net/http"
8-
9-
"github.com/jiaozifs/jiaozifs/auth"
10-
11-
"github.com/jiaozifs/jiaozifs/auth/crypt"
8+
"net/url"
129

1310
"github.com/MadAppGang/httplog"
14-
"github.com/rs/cors"
15-
1611
"github.com/flowchartsman/swaggerui"
17-
18-
"github.com/gorilla/sessions"
19-
20-
"github.com/jiaozifs/jiaozifs/models"
21-
22-
"net/url"
23-
2412
"github.com/getkin/kin-openapi/openapi3filter"
2513
"github.com/go-chi/chi/v5"
14+
"github.com/gorilla/sessions"
2615
logging "github.com/ipfs/go-log/v2"
2716
"github.com/jiaozifs/jiaozifs/api"
17+
"github.com/jiaozifs/jiaozifs/auth"
18+
"github.com/jiaozifs/jiaozifs/auth/crypt"
2819
"github.com/jiaozifs/jiaozifs/config"
20+
"github.com/jiaozifs/jiaozifs/models"
2921
middleware "github.com/oapi-codegen/nethttp-middleware"
22+
"github.com/rs/cors"
3023
"go.uber.org/fx"
3124
)
3225

api/custom_response.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"net/http"
77

88
"github.com/jiaozifs/jiaozifs/auth"
9-
109
"github.com/jiaozifs/jiaozifs/models"
1110
)
1211

api/jiaozifs.gen.go

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

api/swagger.yml

Lines changed: 93 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ components:
131131
type: string
132132
RefType:
133133
type: string
134-
enum: ["branch", "wip","tag", "test"]
134+
enum: ["branch", "wip","tag", "commit"]
135135
Branch:
136136
type: object
137137
required:
@@ -185,6 +185,10 @@ components:
185185
type: string
186186
Name:
187187
type: string
188+
BlockStoreConfig:
189+
description: block storage config url encoded json
190+
type: string
191+
188192
UpdateRepository:
189193
type: object
190194
properties:
@@ -492,7 +496,6 @@ components:
492496
type: object
493497
additionalProperties:
494498
type: string
495-
496499
ObjectStats:
497500
type: object
498501
required:
@@ -520,7 +523,6 @@ components:
520523
content_type:
521524
type: string
522525
description: Object media type
523-
524526
ObjectStatsList:
525527
type: object
526528
required:
@@ -533,7 +535,93 @@ components:
533535
type: array
534536
items:
535537
$ref: "#/components/schemas/ObjectStats"
536-
538+
BlockStoreConfig:
539+
type: object
540+
properties:
541+
Type:
542+
type: string
543+
description: type of support storage type
544+
enum: [ "local", "gs", "azure", "s3" ]
545+
DefaultNamespacePrefix:
546+
type: string
547+
Local:
548+
type: object
549+
required:
550+
- Path
551+
properties:
552+
Path:
553+
type: string
554+
Azure:
555+
type: object
556+
required:
557+
- StorageAccount
558+
- StorageAccessKey
559+
- TryTimeout
560+
properties:
561+
StorageAccessKey:
562+
type: string
563+
StorageAccount:
564+
type: string
565+
TryTimeout:
566+
type: integer
567+
format: int64
568+
GS:
569+
type: object
570+
required:
571+
- CredentialsJSON
572+
- S3Endpoint
573+
properties:
574+
CredentialsJSON:
575+
type: string
576+
S3Endpoint:
577+
type: string
578+
S3:
579+
type: object
580+
required:
581+
- Credentials
582+
- DiscoverBucketRegion
583+
- Region
584+
- Endpoint
585+
properties:
586+
Credentials:
587+
$ref: '#/components/schemas/Credential'
588+
WebIdentity:
589+
$ref: '#/components/schemas/WebIdentity'
590+
DiscoverBucketRegion:
591+
type: boolean
592+
Endpoint:
593+
type: string
594+
ForcePathStyle:
595+
type: boolean
596+
Region:
597+
type: string
598+
WebIdentity:
599+
properties:
600+
SessionDuration:
601+
type: integer
602+
format: int64
603+
SessionExpiryWindow:
604+
type: integer
605+
format: int64
606+
S3AuthInfo:
607+
type: object
608+
description: S3AuthInfo holds S3-style authentication.
609+
properties:
610+
Credentials:
611+
$ref: '#/components/schemas/Credential'
612+
CredentialsFile:
613+
type: string
614+
Credential:
615+
type: object
616+
properties:
617+
AccessKeyID:
618+
$ref: '#/components/schemas/SecureString'
619+
SecretAccessKey:
620+
$ref: '#/components/schemas/SecureString'
621+
SessionToken:
622+
$ref: '#/components/schemas/SecureString'
623+
SecureString:
624+
type: string
537625
Pagination:
538626
type: object
539627
required:
@@ -556,7 +644,6 @@ components:
556644
type: integer
557645
minimum: 0
558646
description: Maximal number of entries per page
559-
560647
Error:
561648
type: object
562649
required:
@@ -1015,7 +1102,7 @@ paths:
10151102
403:
10161103
description: Forbidden
10171104

1018-
/repos/{owner}/{repository}/contents/:
1105+
/repos/{owner}/{repository}/contents:
10191106
parameters:
10201107
- in: path
10211108
name: owner

0 commit comments

Comments
 (0)