Skip to content

Commit

Permalink
Enumerate service modes with constant values
Browse files Browse the repository at this point in the history
  • Loading branch information
da-cf committed Mar 27, 2023
1 parent 0a22443 commit b975968
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions devices_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ type DeviceClientCertificatesZone struct {
Result Enabled
}

type ServiceMode string

const (
oneDotOne ServiceMode = "1dot1"
warp ServiceMode = "warp"
proxy ServiceMode = "proxy"
postureOnly ServiceMode = "posture_only"
warpTunnelOnly ServiceMode = "warp_tunnel_only"
)

type ServiceModeV2 struct {
Mode string `json:"mode,omitempty"`
Port int `json:"port,omitempty"`
Mode ServiceMode `json:"mode,omitempty"`
Port int `json:"port,omitempty"`
}

type DeviceSettingsPolicy struct {
Expand Down

0 comments on commit b975968

Please sign in to comment.