MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / protectionConfigFromView

Function protectionConfigFromView

internal/httpapi/protection.go:95–108  ·  view source on GitHub ↗
(v ProtectionConfigView)

Source from the content-addressed store, hash-verified

93}
94
95func 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
110type getProtectionInput struct {
111 Address string `path:"email" doc:"The agent's full email address."`

Callers 1

handlePutProtectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected