mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 00:11:42 +02:00
chore(swagger): update swagger regarding new docker config structure
This commit is contained in:
@@ -2458,8 +2458,8 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
"docker_host": {
|
"docker_cfg": {
|
||||||
"type": "string",
|
"$ref": "#/definitions/DockerProviderConfig",
|
||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
@@ -2715,7 +2715,7 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"container_id",
|
"container_id",
|
||||||
"container_name",
|
"container_name",
|
||||||
"docker_host"
|
"docker_cfg"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"container_id": {
|
"container_id": {
|
||||||
@@ -2728,7 +2728,24 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
"docker_host": {
|
"docker_cfg": {
|
||||||
|
"$ref": "#/definitions/DockerProviderConfig",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
|
"DockerProviderConfig": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"tls": {
|
||||||
|
"$ref": "#/definitions/DockerTLSConfig",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
@@ -2737,6 +2754,27 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
|
"DockerTLSConfig": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"ca_file"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"ca_file": {
|
||||||
|
"type": "string",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
|
"cert_file": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"key_file": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"ErrorResponse": {
|
"ErrorResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@@ -3430,6 +3468,11 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
|
"no_loading_page": {
|
||||||
|
"type": "boolean",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"proxmox": {
|
"proxmox": {
|
||||||
"$ref": "#/definitions/ProxmoxConfig",
|
"$ref": "#/definitions/ProxmoxConfig",
|
||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
@@ -4234,6 +4277,12 @@
|
|||||||
],
|
],
|
||||||
"x-nullable": true
|
"x-nullable": true
|
||||||
},
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "Index file to serve for single-page app mode",
|
||||||
|
"type": "string",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"load_balance": {
|
"load_balance": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@@ -4315,6 +4364,12 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
|
"spa": {
|
||||||
|
"description": "Single-page app mode: serves index for non-existent paths",
|
||||||
|
"type": "boolean",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"ssl_certificate": {
|
"ssl_certificate": {
|
||||||
"description": "Path to client certificate",
|
"description": "Path to client certificate",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -5354,6 +5409,12 @@
|
|||||||
],
|
],
|
||||||
"x-nullable": true
|
"x-nullable": true
|
||||||
},
|
},
|
||||||
|
"index": {
|
||||||
|
"description": "Index file to serve for single-page app mode",
|
||||||
|
"type": "string",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"load_balance": {
|
"load_balance": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@@ -5435,6 +5496,12 @@
|
|||||||
"x-nullable": false,
|
"x-nullable": false,
|
||||||
"x-omitempty": false
|
"x-omitempty": false
|
||||||
},
|
},
|
||||||
|
"spa": {
|
||||||
|
"description": "Single-page app mode: serves index for non-existent paths",
|
||||||
|
"type": "boolean",
|
||||||
|
"x-nullable": false,
|
||||||
|
"x-omitempty": false
|
||||||
|
},
|
||||||
"ssl_certificate": {
|
"ssl_certificate": {
|
||||||
"description": "Path to client certificate",
|
"description": "Path to client certificate",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
container_name:
|
container_name:
|
||||||
type: string
|
type: string
|
||||||
docker_host:
|
docker_cfg:
|
||||||
type: string
|
$ref: '#/definitions/DockerProviderConfig'
|
||||||
errors:
|
errors:
|
||||||
type: string
|
type: string
|
||||||
idlewatcher_config:
|
idlewatcher_config:
|
||||||
@@ -192,12 +192,30 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
container_name:
|
container_name:
|
||||||
type: string
|
type: string
|
||||||
docker_host:
|
docker_cfg:
|
||||||
type: string
|
$ref: '#/definitions/DockerProviderConfig'
|
||||||
required:
|
required:
|
||||||
- container_id
|
- container_id
|
||||||
- container_name
|
- container_name
|
||||||
- docker_host
|
- docker_cfg
|
||||||
|
type: object
|
||||||
|
DockerProviderConfig:
|
||||||
|
properties:
|
||||||
|
tls:
|
||||||
|
$ref: '#/definitions/DockerTLSConfig'
|
||||||
|
url:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
DockerTLSConfig:
|
||||||
|
properties:
|
||||||
|
ca_file:
|
||||||
|
type: string
|
||||||
|
cert_file:
|
||||||
|
type: string
|
||||||
|
key_file:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- ca_file
|
||||||
type: object
|
type: object
|
||||||
ErrorResponse:
|
ErrorResponse:
|
||||||
properties:
|
properties:
|
||||||
@@ -517,6 +535,8 @@ definitions:
|
|||||||
description: "0: no idle watcher.\nPositive: idle watcher with idle timeout.\nNegative:
|
description: "0: no idle watcher.\nPositive: idle watcher with idle timeout.\nNegative:
|
||||||
idle watcher as a dependency.\tIdleTimeout time.Duration `json:\"idle_timeout\"
|
idle watcher as a dependency.\tIdleTimeout time.Duration `json:\"idle_timeout\"
|
||||||
json_ext:\"duration\"`"
|
json_ext:\"duration\"`"
|
||||||
|
no_loading_page:
|
||||||
|
type: boolean
|
||||||
proxmox:
|
proxmox:
|
||||||
$ref: '#/definitions/ProxmoxConfig'
|
$ref: '#/definitions/ProxmoxConfig'
|
||||||
start_endpoint:
|
start_endpoint:
|
||||||
@@ -897,6 +917,9 @@ definitions:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/definitions/IdlewatcherConfig'
|
- $ref: '#/definitions/IdlewatcherConfig'
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
index:
|
||||||
|
description: Index file to serve for single-page app mode
|
||||||
|
type: string
|
||||||
load_balance:
|
load_balance:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/definitions/LoadBalancerConfig'
|
- $ref: '#/definitions/LoadBalancerConfig'
|
||||||
@@ -944,6 +967,9 @@ definitions:
|
|||||||
- udp
|
- udp
|
||||||
- fileserver
|
- fileserver
|
||||||
type: string
|
type: string
|
||||||
|
spa:
|
||||||
|
description: 'Single-page app mode: serves index for non-existent paths'
|
||||||
|
type: boolean
|
||||||
ssl_certificate:
|
ssl_certificate:
|
||||||
description: Path to client certificate
|
description: Path to client certificate
|
||||||
type: string
|
type: string
|
||||||
@@ -1504,6 +1530,9 @@ definitions:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/definitions/IdlewatcherConfig'
|
- $ref: '#/definitions/IdlewatcherConfig'
|
||||||
x-nullable: true
|
x-nullable: true
|
||||||
|
index:
|
||||||
|
description: Index file to serve for single-page app mode
|
||||||
|
type: string
|
||||||
load_balance:
|
load_balance:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/definitions/LoadBalancerConfig'
|
- $ref: '#/definitions/LoadBalancerConfig'
|
||||||
@@ -1551,6 +1580,9 @@ definitions:
|
|||||||
- udp
|
- udp
|
||||||
- fileserver
|
- fileserver
|
||||||
type: string
|
type: string
|
||||||
|
spa:
|
||||||
|
description: 'Single-page app mode: serves index for non-existent paths'
|
||||||
|
type: boolean
|
||||||
ssl_certificate:
|
ssl_certificate:
|
||||||
description: Path to client certificate
|
description: Path to client certificate
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
Reference in New Issue
Block a user