mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +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"`
|
||||
|
||||
// backend mode
|
||||
// Enum: [proxy web tcpTunnel udpTunnel caddy]
|
||||
// Enum: [proxy web tcpTunnel udpTunnel caddy drive]
|
||||
BackendMode string `json:"backendMode,omitempty"`
|
||||
|
||||
// backend proxy endpoint
|
||||
@ -114,7 +114,7 @@ var shareRequestTypeBackendModePropEnum []interface{}
|
||||
|
||||
func init() {
|
||||
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)
|
||||
}
|
||||
for _, v := range res {
|
||||
@ -138,6 +138,9 @@ const (
|
||||
|
||||
// ShareRequestBackendModeCaddy captures enum value "caddy"
|
||||
ShareRequestBackendModeCaddy string = "caddy"
|
||||
|
||||
// ShareRequestBackendModeDrive captures enum value "drive"
|
||||
ShareRequestBackendModeDrive string = "drive"
|
||||
)
|
||||
|
||||
// prop value enum
|
||||
|
@ -1472,7 +1472,8 @@ func init() {
|
||||
"web",
|
||||
"tcpTunnel",
|
||||
"udpTunnel",
|
||||
"caddy"
|
||||
"caddy",
|
||||
"drive"
|
||||
]
|
||||
},
|
||||
"backendProxyEndpoint": {
|
||||
@ -3088,7 +3089,8 @@ func init() {
|
||||
"web",
|
||||
"tcpTunnel",
|
||||
"udpTunnel",
|
||||
"caddy"
|
||||
"caddy",
|
||||
"drive"
|
||||
]
|
||||
},
|
||||
"backendProxyEndpoint": {
|
||||
|
@ -971,7 +971,7 @@ definitions:
|
||||
type: string
|
||||
backendMode:
|
||||
type: string
|
||||
enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy"]
|
||||
enum: ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive"]
|
||||
backendProxyEndpoint:
|
||||
type: string
|
||||
authScheme:
|
||||
|
Loading…
Reference in New Issue
Block a user