| 93 | } |
| 94 | |
| 95 | func protectionConfigFromView(v ProtectionConfigView) identity.ProtectionConfig { |
| 96 | return identity.ProtectionConfig{ |
| 97 | InboundGatePolicy: v.Inbound.Gate.Policy, |
| 98 | InboundAllowlist: v.Inbound.Gate.Allowlist, |
| 99 | InboundGateAction: v.Inbound.Gate.Action, |
| 100 | InboundScanSensitivity: v.Inbound.Scan.Sensitivity, |
| 101 | OutboundGatePolicy: v.Outbound.Gate.Policy, |
| 102 | OutboundAllowlist: v.Outbound.Gate.Allowlist, |
| 103 | OutboundGateAction: v.Outbound.Gate.Action, |
| 104 | OutboundScanSensitivity: v.Outbound.Scan.Sensitivity, |
| 105 | HITLTTLSeconds: v.Holds.TTLSeconds, |
| 106 | HITLExpirationAction: v.Holds.OnExpiry, |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | type getProtectionInput struct { |
| 111 | Address string `path:"email" doc:"The agent's full email address."` |