spec updated to include backend mode 'drive' (#218)

This commit is contained in:
Michael Quigley 2023-10-17 13:05:55 -04:00
parent 83e7263fde
commit 952dd3aff0
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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": {

View File

@ -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: