(bfp *management.BruteForceProtection)
| 104 | } |
| 105 | |
| 106 | func makeBruteForceProtectionView(bfp *management.BruteForceProtection) *bruteForceProtectionView { |
| 107 | return &bruteForceProtectionView{ |
| 108 | Enabled: boolean(bfp.GetEnabled()), |
| 109 | Shields: bfp.GetShields(), |
| 110 | AllowList: bfp.GetAllowList(), |
| 111 | Mode: bfp.GetMode(), |
| 112 | MaxAttempts: bfp.GetMaxAttempts(), |
| 113 | |
| 114 | raw: bfp, |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | type suspiciousIPThrottlingView struct { |
| 119 | Enabled string |
no test coverage detected