mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Add config option annotation key for verdict names
This commit is contained in:
parent
141a95702c
commit
0c835dd6f7
1 changed files with 7 additions and 18 deletions
|
@ -4,21 +4,10 @@ package endpoints
|
|||
// list option. It's meant to be used with DisplayHintAnnotation.
|
||||
const DisplayHintEndpointList = "endpoint list"
|
||||
|
||||
// EndpointListAnnotation is the annotation identifier used in configuration
|
||||
// options to hint the UI on available endpoint list types. If configured, only
|
||||
// the specified set of entities is allowed to be used. The value is expected
|
||||
// to be a single string or []string. If this annotation is missing, all
|
||||
// values are expected to be allowed.
|
||||
const EndpointListAnnotation = "safing/portmaster:ui:endpoint-list"
|
||||
|
||||
// Allowed values for the EndpointListAnnotation.
|
||||
const (
|
||||
EndpointListIP = "ip"
|
||||
EndpointListAsn = "asn"
|
||||
EndpointListCountry = "country"
|
||||
EndpointListDomain = "domain"
|
||||
EndpointListIPRange = "iprange"
|
||||
EndpointListLists = "lists"
|
||||
EndpointListScopes = "scopes"
|
||||
EndpointListProtocolAndPorts = "protocol-port"
|
||||
)
|
||||
// EndpointListVerdictNamesAnnotation is the annotation identifier used in
|
||||
// configuration options to hint the UI on names to be used for endpoint list
|
||||
// verdicts.
|
||||
// If configured, it must be of type map[string]string, mapping the verdict
|
||||
// symbol to a name to be displayed in the UI.
|
||||
// May only used when config.DisplayHintAnnotation is set to DisplayHintEndpointList.
|
||||
const EndpointListVerdictNamesAnnotation = "safing/portmaster:ui:endpoint-list:verdict-names"
|
||||
|
|
Loading…
Add table
Reference in a new issue