Skip to content

Commit 0afe306

Browse files
authored
Merge branch 'master' into refactor/bbr-configuration
2 parents ffe51e8 + c184ea5 commit 0afe306

33 files changed

+1180
-102
lines changed

server/docs/docs.go

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,83 @@ const docTemplate = `{
131131
}
132132
}
133133
},
134+
"/fuse/mount": {
135+
"post": {
136+
"description": "Mounts the FUSE filesystem at the specified path",
137+
"consumes": [
138+
"application/json"
139+
],
140+
"produces": [
141+
"application/json"
142+
],
143+
"tags": [
144+
"FUSE"
145+
],
146+
"summary": "Mount FUSE filesystem",
147+
"parameters": [
148+
{
149+
"description": "Mount request",
150+
"name": "request",
151+
"in": "body",
152+
"required": true,
153+
"schema": {
154+
"$ref": "#/definitions/api.FuseMountRequest"
155+
}
156+
}
157+
],
158+
"responses": {
159+
"200": {
160+
"description": "OK",
161+
"schema": {
162+
"$ref": "#/definitions/fusefs.FuseStatus"
163+
}
164+
}
165+
}
166+
}
167+
},
168+
"/fuse/status": {
169+
"get": {
170+
"description": "Returns the current status of the FUSE filesystem mount",
171+
"produces": [
172+
"application/json"
173+
],
174+
"tags": [
175+
"FUSE"
176+
],
177+
"summary": "Get FUSE filesystem status",
178+
"responses": {
179+
"200": {
180+
"description": "OK",
181+
"schema": {
182+
"$ref": "#/definitions/fusefs.FuseStatus"
183+
}
184+
}
185+
}
186+
}
187+
},
188+
"/fuse/unmount": {
189+
"post": {
190+
"description": "Unmounts the FUSE filesystem",
191+
"consumes": [
192+
"application/json"
193+
],
194+
"produces": [
195+
"application/json"
196+
],
197+
"tags": [
198+
"FUSE"
199+
],
200+
"summary": "Unmount FUSE filesystem",
201+
"responses": {
202+
"200": {
203+
"description": "OK",
204+
"schema": {
205+
"$ref": "#/definitions/fusefs.FuseStatus"
206+
}
207+
}
208+
}
209+
}
210+
},
134211
"/magnets": {
135212
"get": {
136213
"description": "Get HTML of magnet links.",
@@ -551,6 +628,17 @@ const docTemplate = `{
551628
}
552629
},
553630
"definitions": {
631+
"api.FuseMountRequest": {
632+
"type": "object",
633+
"required": [
634+
"mount_path"
635+
],
636+
"properties": {
637+
"mount_path": {
638+
"type": "string"
639+
}
640+
}
641+
},
554642
"api.cacheReqJS": {
555643
"type": "object",
556644
"properties": {
@@ -616,6 +704,20 @@ const docTemplate = `{
616704
}
617705
}
618706
},
707+
"fusefs.FuseStatus": {
708+
"type": "object",
709+
"properties": {
710+
"enabled": {
711+
"type": "boolean"
712+
},
713+
"error": {
714+
"type": "string"
715+
},
716+
"mount_path": {
717+
"type": "string"
718+
}
719+
}
720+
},
619721
"models.TorrentDetails": {
620722
"type": "object",
621723
"properties": {
@@ -713,6 +815,10 @@ const docTemplate = `{
713815
"description": "debug logs",
714816
"type": "boolean"
715817
},
818+
"enableFUSE": {
819+
"description": "FUSE",
820+
"type": "boolean"
821+
},
716822
"enableIPv6": {
717823
"description": "BT Config",
718824
"type": "boolean"
@@ -728,6 +834,10 @@ const docTemplate = `{
728834
"friendlyName": {
729835
"type": "string"
730836
},
837+
"fusepath": {
838+
"description": "path where to mount FUSE filesystem",
839+
"type": "string"
840+
},
731841
"peersListenPort": {
732842
"type": "integer"
733843
},

server/docs/swagger.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,83 @@
124124
}
125125
}
126126
},
127+
"/fuse/mount": {
128+
"post": {
129+
"description": "Mounts the FUSE filesystem at the specified path",
130+
"consumes": [
131+
"application/json"
132+
],
133+
"produces": [
134+
"application/json"
135+
],
136+
"tags": [
137+
"FUSE"
138+
],
139+
"summary": "Mount FUSE filesystem",
140+
"parameters": [
141+
{
142+
"description": "Mount request",
143+
"name": "request",
144+
"in": "body",
145+
"required": true,
146+
"schema": {
147+
"$ref": "#/definitions/api.FuseMountRequest"
148+
}
149+
}
150+
],
151+
"responses": {
152+
"200": {
153+
"description": "OK",
154+
"schema": {
155+
"$ref": "#/definitions/fusefs.FuseStatus"
156+
}
157+
}
158+
}
159+
}
160+
},
161+
"/fuse/status": {
162+
"get": {
163+
"description": "Returns the current status of the FUSE filesystem mount",
164+
"produces": [
165+
"application/json"
166+
],
167+
"tags": [
168+
"FUSE"
169+
],
170+
"summary": "Get FUSE filesystem status",
171+
"responses": {
172+
"200": {
173+
"description": "OK",
174+
"schema": {
175+
"$ref": "#/definitions/fusefs.FuseStatus"
176+
}
177+
}
178+
}
179+
}
180+
},
181+
"/fuse/unmount": {
182+
"post": {
183+
"description": "Unmounts the FUSE filesystem",
184+
"consumes": [
185+
"application/json"
186+
],
187+
"produces": [
188+
"application/json"
189+
],
190+
"tags": [
191+
"FUSE"
192+
],
193+
"summary": "Unmount FUSE filesystem",
194+
"responses": {
195+
"200": {
196+
"description": "OK",
197+
"schema": {
198+
"$ref": "#/definitions/fusefs.FuseStatus"
199+
}
200+
}
201+
}
202+
}
203+
},
127204
"/magnets": {
128205
"get": {
129206
"description": "Get HTML of magnet links.",
@@ -544,6 +621,17 @@
544621
}
545622
},
546623
"definitions": {
624+
"api.FuseMountRequest": {
625+
"type": "object",
626+
"required": [
627+
"mount_path"
628+
],
629+
"properties": {
630+
"mount_path": {
631+
"type": "string"
632+
}
633+
}
634+
},
547635
"api.cacheReqJS": {
548636
"type": "object",
549637
"properties": {
@@ -609,6 +697,20 @@
609697
}
610698
}
611699
},
700+
"fusefs.FuseStatus": {
701+
"type": "object",
702+
"properties": {
703+
"enabled": {
704+
"type": "boolean"
705+
},
706+
"error": {
707+
"type": "string"
708+
},
709+
"mount_path": {
710+
"type": "string"
711+
}
712+
}
713+
},
612714
"models.TorrentDetails": {
613715
"type": "object",
614716
"properties": {
@@ -706,6 +808,10 @@
706808
"description": "debug logs",
707809
"type": "boolean"
708810
},
811+
"enableFUSE": {
812+
"description": "FUSE",
813+
"type": "boolean"
814+
},
709815
"enableIPv6": {
710816
"description": "BT Config",
711817
"type": "boolean"
@@ -721,6 +827,10 @@
721827
"friendlyName": {
722828
"type": "string"
723829
},
830+
"fusepath": {
831+
"description": "path where to mount FUSE filesystem",
832+
"type": "string"
833+
},
724834
"peersListenPort": {
725835
"type": "integer"
726836
},

server/docs/swagger.yaml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
basePath: /
22
definitions:
3+
api.FuseMountRequest:
4+
properties:
5+
mount_path:
6+
type: string
7+
required:
8+
- mount_path
9+
type: object
310
api.cacheReqJS:
411
properties:
512
action:
@@ -42,6 +49,15 @@ definitions:
4249
hash:
4350
type: string
4451
type: object
52+
fusefs.FuseStatus:
53+
properties:
54+
enabled:
55+
type: boolean
56+
error:
57+
type: string
58+
mount_path:
59+
type: string
60+
type: object
4561
models.TorrentDetails:
4662
properties:
4763
audioQuality:
@@ -108,6 +124,9 @@ definitions:
108124
enableDebug:
109125
description: debug logs
110126
type: boolean
127+
enableFUSE:
128+
description: FUSE
129+
type: boolean
111130
enableIPv6:
112131
description: BT Config
113132
type: boolean
@@ -119,6 +138,9 @@ definitions:
119138
type: boolean
120139
friendlyName:
121140
type: string
141+
fusepath:
142+
description: path where to mount FUSE filesystem
143+
type: string
122144
peersListenPort:
123145
type: integer
124146
preloadCache:
@@ -395,6 +417,56 @@ paths:
395417
summary: Gather informations using ffprobe
396418
tags:
397419
- API
420+
/fuse/mount:
421+
post:
422+
consumes:
423+
- application/json
424+
description: Mounts the FUSE filesystem at the specified path
425+
parameters:
426+
- description: Mount request
427+
in: body
428+
name: request
429+
required: true
430+
schema:
431+
$ref: '#/definitions/api.FuseMountRequest'
432+
produces:
433+
- application/json
434+
responses:
435+
"200":
436+
description: OK
437+
schema:
438+
$ref: '#/definitions/fusefs.FuseStatus'
439+
summary: Mount FUSE filesystem
440+
tags:
441+
- FUSE
442+
/fuse/status:
443+
get:
444+
description: Returns the current status of the FUSE filesystem mount
445+
produces:
446+
- application/json
447+
responses:
448+
"200":
449+
description: OK
450+
schema:
451+
$ref: '#/definitions/fusefs.FuseStatus'
452+
summary: Get FUSE filesystem status
453+
tags:
454+
- FUSE
455+
/fuse/unmount:
456+
post:
457+
consumes:
458+
- application/json
459+
description: Unmounts the FUSE filesystem
460+
produces:
461+
- application/json
462+
responses:
463+
"200":
464+
description: OK
465+
schema:
466+
$ref: '#/definitions/fusefs.FuseStatus'
467+
summary: Unmount FUSE filesystem
468+
tags:
469+
- FUSE
398470
/magnets:
399471
get:
400472
description: Get HTML of magnet links.

0 commit comments

Comments
 (0)