mirror of
				https://github.com/datarhei/core.git
				synced 2025-10-31 03:16:21 +08:00 
			
		
		
		
	Merge branch 'dev' into cluster
This commit is contained in:
		
							
								
								
									
										22
									
								
								docs/docs.go
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								docs/docs.go
									
									
									
									
									
								
							| @@ -546,7 +546,7 @@ const docTemplate = `{ | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|         "/api/v3/fs/disk/": { |         "/api/v3/fs/disk": { | ||||||
|             "get": { |             "get": { | ||||||
|                 "security": [ |                 "security": [ | ||||||
|                     { |                     { | ||||||
| @@ -731,7 +731,7 @@ const docTemplate = `{ | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|         "/api/v3/fs/mem/": { |         "/api/v3/fs/mem": { | ||||||
|             "get": { |             "get": { | ||||||
|                 "security": [ |                 "security": [ | ||||||
|                     { |                     { | ||||||
| @@ -1141,21 +1141,33 @@ const docTemplate = `{ | |||||||
|                 "parameters": [ |                 "parameters": [ | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Comma separated list of fields (config, state, report, metadata) that will be part of the output. If empty, all fields will be part of the output", |                         "description": "Comma separated list of fields (config, state, report, metadata) that will be part of the output. If empty, all fields will be part of the output.", | ||||||
|                         "name": "filter", |                         "name": "filter", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|                     }, |                     }, | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Return only these process that have this reference value. Overrides a list of IDs. If empty, the reference will be ignored", |                         "description": "Return only these process that have this reference value. If empty, the reference will be ignored.", | ||||||
|                         "name": "reference", |                         "name": "reference", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|                     }, |                     }, | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Comma separated list of process ids to list", |                         "description": "Comma separated list of process ids to list. Overrides the reference. If empty all IDs will be returned.", | ||||||
|                         "name": "id", |                         "name": "id", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         "type": "string", | ||||||
|  |                         "description": "Glob pattern for process IDs. If empty all IDs will be returned. Intersected with results from refpattern.", | ||||||
|  |                         "name": "idpattern", | ||||||
|  |                         "in": "query" | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         "type": "string", | ||||||
|  |                         "description": "Glob pattern for process references. If empty all IDs will be returned. Intersected with results from idpattern.", | ||||||
|  |                         "name": "refpattern", | ||||||
|  |                         "in": "query" | ||||||
|                     } |                     } | ||||||
|                 ], |                 ], | ||||||
|                 "responses": { |                 "responses": { | ||||||
|   | |||||||
| @@ -538,7 +538,7 @@ | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|         "/api/v3/fs/disk/": { |         "/api/v3/fs/disk": { | ||||||
|             "get": { |             "get": { | ||||||
|                 "security": [ |                 "security": [ | ||||||
|                     { |                     { | ||||||
| @@ -723,7 +723,7 @@ | |||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|         "/api/v3/fs/mem/": { |         "/api/v3/fs/mem": { | ||||||
|             "get": { |             "get": { | ||||||
|                 "security": [ |                 "security": [ | ||||||
|                     { |                     { | ||||||
| @@ -1133,21 +1133,33 @@ | |||||||
|                 "parameters": [ |                 "parameters": [ | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Comma separated list of fields (config, state, report, metadata) that will be part of the output. If empty, all fields will be part of the output", |                         "description": "Comma separated list of fields (config, state, report, metadata) that will be part of the output. If empty, all fields will be part of the output.", | ||||||
|                         "name": "filter", |                         "name": "filter", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|                     }, |                     }, | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Return only these process that have this reference value. Overrides a list of IDs. If empty, the reference will be ignored", |                         "description": "Return only these process that have this reference value. If empty, the reference will be ignored.", | ||||||
|                         "name": "reference", |                         "name": "reference", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|                     }, |                     }, | ||||||
|                     { |                     { | ||||||
|                         "type": "string", |                         "type": "string", | ||||||
|                         "description": "Comma separated list of process ids to list", |                         "description": "Comma separated list of process ids to list. Overrides the reference. If empty all IDs will be returned.", | ||||||
|                         "name": "id", |                         "name": "id", | ||||||
|                         "in": "query" |                         "in": "query" | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         "type": "string", | ||||||
|  |                         "description": "Glob pattern for process IDs. If empty all IDs will be returned. Intersected with results from refpattern.", | ||||||
|  |                         "name": "idpattern", | ||||||
|  |                         "in": "query" | ||||||
|  |                     }, | ||||||
|  |                     { | ||||||
|  |                         "type": "string", | ||||||
|  |                         "description": "Glob pattern for process references. If empty all IDs will be returned. Intersected with results from idpattern.", | ||||||
|  |                         "name": "refpattern", | ||||||
|  |                         "in": "query" | ||||||
|                     } |                     } | ||||||
|                 ], |                 ], | ||||||
|                 "responses": { |                 "responses": { | ||||||
|   | |||||||
| @@ -2084,7 +2084,7 @@ paths: | |||||||
|       security: |       security: | ||||||
|       - ApiKeyAuth: [] |       - ApiKeyAuth: [] | ||||||
|       summary: Reload the currently active configuration |       summary: Reload the currently active configuration | ||||||
|   /api/v3/fs/disk/: |   /api/v3/fs/disk: | ||||||
|     get: |     get: | ||||||
|       description: List all files on the filesystem. The listing can be ordered by |       description: List all files on the filesystem. The listing can be ordered by | ||||||
|         name, size, or date of last modification in ascending or descending order. |         name, size, or date of last modification in ascending or descending order. | ||||||
| @@ -2205,7 +2205,7 @@ paths: | |||||||
|       security: |       security: | ||||||
|       - ApiKeyAuth: [] |       - ApiKeyAuth: [] | ||||||
|       summary: Add a file to the filesystem |       summary: Add a file to the filesystem | ||||||
|   /api/v3/fs/mem/: |   /api/v3/fs/mem: | ||||||
|     get: |     get: | ||||||
|       description: List all files on the memory filesystem. The listing can be ordered |       description: List all files on the memory filesystem. The listing can be ordered | ||||||
|         by name, size, or date of last modification in ascending or descending order. |         by name, size, or date of last modification in ascending or descending order. | ||||||
| @@ -2471,19 +2471,30 @@ paths: | |||||||
|       parameters: |       parameters: | ||||||
|       - description: Comma separated list of fields (config, state, report, metadata) |       - description: Comma separated list of fields (config, state, report, metadata) | ||||||
|           that will be part of the output. If empty, all fields will be part of the |           that will be part of the output. If empty, all fields will be part of the | ||||||
|           output |           output. | ||||||
|         in: query |         in: query | ||||||
|         name: filter |         name: filter | ||||||
|         type: string |         type: string | ||||||
|       - description: Return only these process that have this reference value. Overrides |       - description: Return only these process that have this reference value. If | ||||||
|           a list of IDs. If empty, the reference will be ignored |           empty, the reference will be ignored. | ||||||
|         in: query |         in: query | ||||||
|         name: reference |         name: reference | ||||||
|         type: string |         type: string | ||||||
|       - description: Comma separated list of process ids to list |       - description: Comma separated list of process ids to list. Overrides the reference. | ||||||
|  |           If empty all IDs will be returned. | ||||||
|         in: query |         in: query | ||||||
|         name: id |         name: id | ||||||
|         type: string |         type: string | ||||||
|  |       - description: Glob pattern for process IDs. If empty all IDs will be returned. | ||||||
|  |           Intersected with results from refpattern. | ||||||
|  |         in: query | ||||||
|  |         name: idpattern | ||||||
|  |         type: string | ||||||
|  |       - description: Glob pattern for process references. If empty all IDs will be | ||||||
|  |           returned. Intersected with results from idpattern. | ||||||
|  |         in: query | ||||||
|  |         name: refpattern | ||||||
|  |         type: string | ||||||
|       produces: |       produces: | ||||||
|       - application/json |       - application/json | ||||||
|       responses: |       responses: | ||||||
|   | |||||||
| @@ -160,7 +160,7 @@ func (h *DiskFSHandler) DeleteFile(c echo.Context) error { | |||||||
| // @Param order query string false "asc, desc" | // @Param order query string false "asc, desc" | ||||||
| // @Success 200 {array} api.FileInfo | // @Success 200 {array} api.FileInfo | ||||||
| // @Security ApiKeyAuth | // @Security ApiKeyAuth | ||||||
| // @Router /api/v3/fs/disk/ [get] | // @Router /api/v3/fs/disk [get] | ||||||
| func (h *DiskFSHandler) ListFiles(c echo.Context) error { | func (h *DiskFSHandler) ListFiles(c echo.Context) error { | ||||||
| 	pattern := util.DefaultQuery(c, "glob", "") | 	pattern := util.DefaultQuery(c, "glob", "") | ||||||
| 	sortby := util.DefaultQuery(c, "sort", "none") | 	sortby := util.DefaultQuery(c, "sort", "none") | ||||||
|   | |||||||
| @@ -125,7 +125,7 @@ func (h *MemFSHandler) PatchFile(c echo.Context) error { | |||||||
| // @Param order query string false "asc, desc" | // @Param order query string false "asc, desc" | ||||||
| // @Success 200 {array} api.FileInfo | // @Success 200 {array} api.FileInfo | ||||||
| // @Security ApiKeyAuth | // @Security ApiKeyAuth | ||||||
| // @Router /api/v3/fs/mem/ [get] | // @Router /api/v3/fs/mem [get] | ||||||
| func (h *MemFSHandler) ListFiles(c echo.Context) error { | func (h *MemFSHandler) ListFiles(c echo.Context) error { | ||||||
| 	pattern := util.DefaultQuery(c, "glob", "") | 	pattern := util.DefaultQuery(c, "glob", "") | ||||||
| 	sortby := util.DefaultQuery(c, "sort", "none") | 	sortby := util.DefaultQuery(c, "sort", "none") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ingo Oppermann
					Ingo Oppermann