Documentation
¶
Index ¶
- func RegisterSGroupsTypesOntoPGX(ctx context.Context, c *pgx.Conn) (err error)
- type ChainDefaultAction
- type CidrSgRule
- type FQDN
- type ICMP
- type IESgSgIcmpRule
- 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 SgSgRule
- type SyncStatus
- 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 ¶
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 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"`
}
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 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"`
}
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 SgSgRule ¶ added in v1.10.0
type SgSgRule 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"`
}
SgSgRule -
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]
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.SgSgRule, sgm.SgSgRuleIdentity]
SyncerOfSgSgRules -
Click to show internal directories.
Click to hide internal directories.