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"` 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

View File

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

View File

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