package
1.65.4
Repository: https://github.com/untangle/golang-shared.git
Documentation: pkg.go.dev

# Functions

GetAllPolicyConfigs Returns a double map of policy plugin settings.
GetPolicyPluginSettings Returns a map of policy plugin settings for a given plugin.

# Constants

No description provided by the author
No description provided by the author
RuleTypes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConditionType,ConditionGroupType: type id strings, for the object and the group.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Configuration Types used for marshalling configs out of configuration sections.
No description provided by the author
GeoIPObjectGroupType/GeoIPListType are new-style type names for geoip objects and groups.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InterfaceType is a group type where all items are interface IDs (integers).
No description provided by the author
IPObjectType/IPAddressGroupType are the types for the new-style matchable object/group that relate to IPs.
No description provided by the author
No description provided by the author
No description provided by the author
Defines the name of the settings properties for policy manager.
No description provided by the author
Policy Type.
No description provided by the author
No description provided by the author
QuotaType string -- a quota type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServiceEndpointObjecttype and ServiceEndpointGroup are types for object/group in new schema, from cloud.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: implemented fully when the UserType diverges from IPObjectType.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ObjectMetaLookup is a map for retrieving additional metadata about objects.
SettingsMetaLookup is a map for retrieving metadata from a specific settings.

# Structs

Action struct is used for rule object types (Conditions + Action).
ApplicationObject holds an array of Ports and an array of IPSpecifiers a match occurs if any of the ports are matched and any of the IPs are matched.
Object is a way to generically re-use the idea of something that is identified by ID, with associated metadata of name and description, with possible accompanying Items.
ObjectDefaultFields is used to set some default type and enabled fields.
ObjectMetadata keeps track of a set of metadata for each enumeration value for object enumerations.
PolicyCondition contains policy condition configuration.
PolicySettings is the main data structure for Policy Management.
QuotaSettings are settings for a quota, the amount of bytes and the refresh interval.
ServiceEndpoint is a particular object type, a object may be identified by a list of these.
WANCriteriaType is a type of WAN criteria.
WANInterfaceType is a type of WAN interface.
WANPolicySettings are settings for a WAN policy.

# Type aliases

GroupType is the type of group that a Group is, used to demux the Items field.
ObjectParentType is a string used for representing the parent grouping of a specific object.
ObjectType is a string used to demux the actual type of an object when loading from JSON.
Policies are the root of our policy configurations.
No description provided by the author
Quota is an object with Type = QuotaType.
QuotaRefreshTime is a refresh time (time.Duration).
WANPolicy is an object with Type Object.