Documentation ¶
Index ¶
- func RegisterSGroupsTypesOntoPGX(ctx context.Context, c *pgx.Conn) (err error)
- type ChainDefaultAction
- type FQDN
- type ICMP
- type IECidrSgIcmpRule
- type IECidrSgRule
- type IESgSgIcmpRule
- type IESgSgRule
- type IcmpTypes
- type IpFamily
- type Network
- type PortMultirange
- type PortMultirangeArray
- type PortMumber
- type PortRange
- type Proto
- type RawRowsData
- type RuleAction
- type RulePriority
- type SG
- type SG2FQDNRule
- type SGRule
- type SgIcmpRule
- type SgRulePorts
- type SgRulePortsArray
- type SgSgIcmpRule
- type SyncStatus
- type SyncerOfCidrSgIcmpRules
- type SyncerOfCidrSgRules
- type SyncerOfIESgSgIcmpRules
- type SyncerOfNetworks
- type SyncerOfSecGroups
- type SyncerOfSg2FqdnRules
- type SyncerOfSgIcmpRules
- type SyncerOfSgRules
- type SyncerOfSgSgIcmpRules
- type SyncerOfSgSgRules
- type Traffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSGroupsTypesOntoPGX ¶
RegisterSGroupsTypesOntoPGX -
Types ¶
type IECidrSgIcmpRule ¶ added in v1.13.0
type IECidrSgIcmpRule struct { ICMP Traffic Traffic `db:"traffic"` CIDR net.IPNet `db:"cidr"` SG string `db:"sg"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
IECidrSgIcmpRule -
func (*IECidrSgIcmpRule) FromModel ¶ added in v1.13.0
func (o *IECidrSgIcmpRule) FromModel(m sgm.IECidrSgIcmpRule) error
FromModel -
func (IECidrSgIcmpRule) ToModel ¶ added in v1.13.0
func (o IECidrSgIcmpRule) ToModel() (ret sgm.IECidrSgIcmpRule, err error)
ToModel -
type IECidrSgRule ¶ added in v1.13.0
type IECidrSgRule struct { Proto Proto `db:"proto"` CIDR net.IPNet `db:"cidr"` SG string `db:"sg"` Traffic Traffic `db:"traffic"` Ports SgRulePortsArray `db:"ports"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
IECidrSgRule -
func (*IECidrSgRule) FromModel ¶ added in v1.13.0
func (o *IECidrSgRule) FromModel(m sgm.IECidrSgRule) error
FromModel -
func (IECidrSgRule) ToModel ¶ added in v1.13.0
func (o IECidrSgRule) ToModel() (ret sgm.IECidrSgRule, err error)
ToModel -
type IESgSgIcmpRule ¶ added in v1.11.0
type IESgSgIcmpRule struct { ICMP SgLocal string `db:"sg_local"` Sg string `db:"sg"` Traffic Traffic `db:"traffic"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
IESgSgIcmpRule -
func (*IESgSgIcmpRule) FromModel ¶ added in v1.11.0
func (o *IESgSgIcmpRule) FromModel(m sgm.IESgSgIcmpRule) error
FromModel -
func (IESgSgIcmpRule) ToModel ¶ added in v1.11.0
func (o IESgSgIcmpRule) ToModel() (ret sgm.IESgSgIcmpRule, err error)
ToModel -
type IESgSgRule ¶ added in v1.13.0
type IESgSgRule struct { Proto Proto `db:"proto"` SgLocal string `db:"sg_local"` Sg string `db:"sg"` Traffic Traffic `db:"traffic"` Ports SgRulePortsArray `db:"ports"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
IESgSgRule -
func (*IESgSgRule) FromModel ¶ added in v1.13.0
func (o *IESgSgRule) FromModel(m sgm.IESgSgRule) error
FromModel -
func (IESgSgRule) ToModel ¶ added in v1.13.0
func (o IESgSgRule) ToModel() (ret sgm.IESgSgRule, err error)
ToModel -
type PortMultirange ¶
type PortMultirange struct { pgtype.Multirange[PortRange] }
PortMultirange -
func (*PortMultirange) FromModel ¶
func (o *PortMultirange) FromModel(m sgm.PortRanges) error
FromModel -
type PortRange ¶
type PortRange struct { pgtype.Range[PortMumber] }
PortRange -
type RawRowsData ¶
type RawRowsData [][]any
RawRowsData -
func (RawRowsData) ToPgxCopySource ¶
func (dat RawRowsData) ToPgxCopySource(offs int64) pgx.CopyFromSource
ToPgxCopySource -
type RuleAction ¶ added in v1.14.0
type RuleAction string
RuleAction -
func (*RuleAction) FromModel ¶ added in v1.14.0
func (o *RuleAction) FromModel(m sgm.RuleAction) error
FromModel -
func (RuleAction) ToModel ¶ added in v1.14.0
func (o RuleAction) ToModel() (ret sgm.RuleAction, err error)
ToModel -
type RulePriority ¶ added in v1.14.0
RulePriority -
func (*RulePriority) FromModel ¶ added in v1.14.0
func (o *RulePriority) FromModel(m sgm.RulePriority)
FromModel -
func (RulePriority) ToModel ¶ added in v1.14.0
func (o RulePriority) ToModel() (ret sgm.RulePriority)
ToModel -
type SG ¶
type SG struct { Name string `db:"name"` Networks []string `db:"networks"` Logs bool `db:"logs"` Trace bool `db:"trace"` DefaultAction ChainDefaultAction `db:"default_action"` }
SG -
type SG2FQDNRule ¶
type SG2FQDNRule struct { SgFrom string `db:"sg_from"` FqndTo FQDN `db:"fqdn_to"` Proto Proto `db:"proto"` Ports SgRulePortsArray `db:"ports"` Logs bool `db:"logs"` NdpiProtocols []string `db:"ndpi_protocols"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
SG2FQDNRule -
type SGRule ¶
type SGRule struct { SgFrom string `db:"sg_from"` SgTo string `db:"sg_to"` Proto Proto `db:"proto"` Ports SgRulePortsArray `db:"ports"` Logs bool `db:"logs"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
SGRule -
type SgIcmpRule ¶
type SgIcmpRule struct { ICMP Sg string `db:"sg"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` }
SgIcmpRule -
type SgRulePorts ¶
type SgRulePorts struct { S PortMultirange D PortMultirange }
SgRulePorts -
func (*SgRulePorts) FromModel ¶
func (o *SgRulePorts) FromModel(m sgm.SGRulePorts) error
FromModel -
type SgRulePortsArray ¶
type SgRulePortsArray []SgRulePorts
SgRulePortsArray -
func (*SgRulePortsArray) FromModel ¶
func (o *SgRulePortsArray) FromModel(m []sgm.SGRulePorts) error
FromModel -
func (SgRulePortsArray) ToModel ¶
func (o SgRulePortsArray) ToModel() ([]sgm.SGRulePorts, error)
ToModel -
type SgSgIcmpRule ¶
type SgSgIcmpRule struct { ICMP SgFrom string `db:"sg_from"` SgTo string `db:"sg_to"` Logs bool `db:"logs"` Trace bool `db:"trace"` Action RuleAction `db:"action"` Priority RulePriority `db:"priority"` }
SgSgIcmpRule -
func (*SgSgIcmpRule) FromModel ¶
func (o *SgSgIcmpRule) FromModel(m sgm.SgSgIcmpRule) error
FromModel -
func (SgSgIcmpRule) ToModel ¶
func (o SgSgIcmpRule) ToModel() (ret sgm.SgSgIcmpRule, err error)
ToModel -
type SyncStatus ¶
type SyncStatus struct { Updtated time.Time `db:"updated_at"` TotalAffectedRows int64 `db:"total_affected_rows"` }
SyncStatus -
type SyncerOfCidrSgIcmpRules ¶ added in v1.13.0
type SyncerOfCidrSgIcmpRules = syncObj[sgm.IECidrSgIcmpRule, sgm.IECidrSgIcmpRuleID]
SyncerOfCidrSgIcmpRules -
type SyncerOfCidrSgRules ¶
type SyncerOfCidrSgRules = syncObj[sgm.IECidrSgRule, sgm.IECidrSgRuleIdenity]
SyncerOfCidrSgRules -
type SyncerOfIESgSgIcmpRules ¶ added in v1.11.0
type SyncerOfIESgSgIcmpRules = syncObj[sgm.IESgSgIcmpRule, sgm.IESgSgIcmpRuleID]
SyncerOfIESgSgIcmpRules -
type SyncerOfSecGroups ¶
type SyncerOfSecGroups = syncObj[sgm.SecurityGroup, string]
SyncerOfSecGroups -
type SyncerOfSg2FqdnRules ¶
type SyncerOfSg2FqdnRules = syncObj[sgm.FQDNRule, sgm.FQDNRuleIdentity]
SyncerOfSg2FqdnRules -
type SyncerOfSgIcmpRules ¶
type SyncerOfSgIcmpRules = syncObj[sgm.SgIcmpRule, sgm.SgIcmpRuleID]
SyncerOfSgIcmpRules -
type SyncerOfSgRules ¶
type SyncerOfSgRules = syncObj[sgm.SGRule, sgm.SGRuleIdentity]
SyncerOfSgRules -
type SyncerOfSgSgIcmpRules ¶
type SyncerOfSgSgIcmpRules = syncObj[sgm.SgSgIcmpRule, sgm.SgSgIcmpRuleID]
SyncerOfSgSgIcmpRules -
type SyncerOfSgSgRules ¶ added in v1.10.0
type SyncerOfSgSgRules = syncObj[sgm.IESgSgRule, sgm.IESgSgRuleIdentity]
SyncerOfSgSgRules -