Documentation ¶
Index ¶
- func RegisterSGroupsTypesOntoPGX(ctx context.Context, c *pgx.Conn) (err error)
- type ChainDefaultAction
- type CidrSgRule
- type FQDN
- type ICMP
- type IcmpTypes
- type IpFamily
- type Network
- type PortMultirange
- type PortMultirangeArray
- type PortMumber
- type PortRange
- type Proto
- type RawRowsData
- type SG
- type SG2FQDNRule
- type SGRule
- type SgIcmpRule
- type SgRulePorts
- type SgRulePortsArray
- type SgSgIcmpRule
- type SyncStatus
- type SyncerOfCidrSgRules
- type SyncerOfNetworks
- type SyncerOfSecGroups
- type SyncerOfSg2FqdnRules
- type SyncerOfSgIcmpRules
- type SyncerOfSgRules
- type SyncerOfSgSgIcmpRules
- type Traffic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSGroupsTypesOntoPGX ¶
RegisterSGroupsTypesOntoPGX -
Types ¶
type CidrSgRule ¶
type CidrSgRule 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"` }
CidrSgRule -
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 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"` }
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"` }
SGRule -
type SgIcmpRule ¶
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"` }
SgSgImpRule -
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 SyncerOfCidrSgRules ¶
type SyncerOfCidrSgRules = syncObj[sgm.CidrSgRule, sgm.CidrSgRuleIdenity]
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]
SyncerOfSgIcmpRules -
Click to show internal directories.
Click to hide internal directories.