mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
spec updated to include backend mode 'drive' (#218)
This commit is contained in:
parent
83e7263fde
commit
952dd3aff0
@ -28,7 +28,7 @@ type ShareRequest struct {
|
|||||||
AuthUsers []*AuthUser `json:"authUsers"`
|
AuthUsers []*AuthUser `json:"authUsers"`
|
||||||
|
|
||||||
// backend mode
|
// backend mode
|
||||||
// Enum: [proxy web tcpTunnel udpTunnel caddy]
|
// Enum: [proxy web tcpTunnel udpTunnel caddy drive]
|
||||||
BackendMode string `json:"backendMode,omitempty"`
|
BackendMode string `json:"backendMode,omitempty"`
|
||||||
|
|
||||||
// backend proxy endpoint
|
// backend proxy endpoint
|
||||||
@ -114,7 +114,7 @@ var shareRequestTypeBackendModePropEnum []interface{}
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
var res []string
|
var res []string
|
||||||
if err := json.Unmarshal([]byte(`["proxy","web","tcpTunnel","udpTunnel","caddy"]`), &res); err != nil {
|
if err := json.Unmarshal([]byte(`["proxy","web","tcpTunnel","udpTunnel","caddy","drive"]`), &res); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
for _, v := range res {
|
for _, v := range res {
|
||||||
@ -138,6 +138,9 @@ const (
|
|||||||
|
|
||||||
// ShareRequestBackendModeCaddy captures enum value "caddy"
|
// ShareRequestBackendModeCaddy captures enum value "caddy"
|
||||||
ShareRequestBackendModeCaddy string = "caddy"
|
ShareRequestBackendModeCaddy string = "caddy"
|
||||||
|
|
||||||
|
// ShareRequestBackendModeDrive captures enum value "drive"
|
||||||
|
ShareRequestBackendModeDrive string = "drive"
|
||||||
)
|
)
|
||||||
|
|
||||||
// prop value enum
|
// prop value enum
|
||||||
|
@ -1472,7 +1472,8 @@ func init() {
|
|||||||
"web",
|
"web",
|
||||||
"tcpTunnel",
|
"tcpTunnel",
|
||||||
"udpTunnel",
|
"udpTunnel",
|
||||||
"caddy"
|
"caddy",
|
||||||
|
"drive"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"backendProxyEndpoint": {
|
"backendProxyEndpoint": {
|
||||||
@ -3088,7 +3089,8 @@ func init() {
|
|||||||
"web",
|
"web",
|
||||||
"tcpTunnel",
|
"tcpTunnel",
|
||||||
"udpTunnel",
|
"udpTunnel",
|
||||||
"caddy"
|
"caddy",
|
||||||
|
"drive"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"backendProxyEndpoint": {
|
"backendProxyEndpoint": {
|
||||||
|
@ -971,7 +971,7 @@ definitions:
|
|||||||
type: string
|
type: string
|
||||||
backendMode:
|
backendMode:
|
||||||
type: string
|
type: string
|
||||||
enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy"]
|
enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive"]
|
||||||
backendProxyEndpoint:
|
backendProxyEndpoint:
|
||||||
type: string
|
type: string
|
||||||
authScheme:
|
authScheme:
|
||||||
|
Loading…
Reference in New Issue
Block a user