Documentation ¶
Index ¶
- type Acl
- type Decisions
- type IPSetManager
- func (im *IPSetManager) AddIp(ip string, decisionType string)
- func (im *IPSetManager) Commit() error
- func (im *IPSetManager) DeleteEmptySets()
- func (im *IPSetManager) DeleteIp(ip string, decisionType string)
- func (im *IPSetManager) DeleteSets()
- func (im *IPSetManager) FindAvailableSet(ipType string, decisionType string) (*WAFIpSet, error)
- type IpSet
- type RuleGroup
- type WAF
- func (w *WAF) AddRuleGroupToACL(acl *wafv2.WebACL, token *string) error
- func (w *WAF) Cleanup() error
- func (w *WAF) CleanupAcl(acl *wafv2.WebACL, token *string) error
- func (w *WAF) CreateRuleGroup(ruleGroupName string) error
- func (w *WAF) DeleteRuleGroup(ruleGroupName string, token string, id string) error
- func (w *WAF) Dump()
- func (w *WAF) GetRuleGroup(ruleGroupname string) (string, wafv2.RuleGroup, error)
- func (w *WAF) GetWebACL(aclName string, id string) (*wafv2.WebACL, *string, error)
- func (w *WAF) Init() error
- func (w *WAF) ListIpSet() (map[string]IpSet, error)
- func (w *WAF) ListResources() (map[string]Acl, map[string]IpSet, map[string]RuleGroup, error)
- func (w *WAF) ListRuleGroups() (map[string]RuleGroup, error)
- func (w *WAF) ListWebACL() (map[string]Acl, error)
- func (w *WAF) Process() error
- func (w *WAF) RemoveRuleGroupFromACL(acl *wafv2.WebACL, token *string) error
- func (w *WAF) UpdateGeoSet(d Decisions) error
- func (w *WAF) UpdateRuleGroup() error
- func (w *WAF) UpdateSetsContent(d Decisions) error
- type WAFIpSet
- func (w *WAFIpSet) Add(ip string)
- func (w *WAFIpSet) Commit() error
- func (w *WAFIpSet) Contains(ip string) bool
- func (w *WAFIpSet) ContainsAll(ips []string) bool
- func (w *WAFIpSet) DeleteIpSet() error
- func (w *WAFIpSet) GetDecisionType() string
- func (w *WAFIpSet) GetIPs() []string
- func (w *WAFIpSet) GetName() string
- func (w *WAFIpSet) GetType() string
- func (w *WAFIpSet) IsStale() bool
- func (w *WAFIpSet) Remove(ip string)
- func (w *WAFIpSet) RemoveAll()
- func (w *WAFIpSet) Size() int
- func (w *WAFIpSet) ToStatement(ipHeader string, ipHeaderPosition string) *wafv2.IPSetReferenceStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPSetManager ¶
type IPSetManager struct { IPSets []*WAFIpSet // contains filtered or unexported fields }
func NewIPSetManager ¶
func (*IPSetManager) AddIp ¶
func (im *IPSetManager) AddIp(ip string, decisionType string)
func (*IPSetManager) Commit ¶
func (im *IPSetManager) Commit() error
func (*IPSetManager) DeleteEmptySets ¶
func (im *IPSetManager) DeleteEmptySets()
func (*IPSetManager) DeleteIp ¶
func (im *IPSetManager) DeleteIp(ip string, decisionType string)
func (*IPSetManager) DeleteSets ¶
func (im *IPSetManager) DeleteSets()
func (*IPSetManager) FindAvailableSet ¶
func (im *IPSetManager) FindAvailableSet(ipType string, decisionType string) (*WAFIpSet, error)
type WAF ¶
type WAF struct { Logger *log.Entry DecisionsChan chan Decisions T *tomb.Tomb // contains filtered or unexported fields }
func (*WAF) AddRuleGroupToACL ¶
func (*WAF) CreateRuleGroup ¶
func (*WAF) DeleteRuleGroup ¶
func (*WAF) GetRuleGroup ¶
func (*WAF) ListResources ¶
func (*WAF) RemoveRuleGroupFromACL ¶
func (*WAF) UpdateGeoSet ¶
func (*WAF) UpdateRuleGroup ¶
func (*WAF) UpdateSetsContent ¶
type WAFIpSet ¶
type WAFIpSet struct {
// contains filtered or unexported fields
}
func (*WAFIpSet) ContainsAll ¶
func (*WAFIpSet) DeleteIpSet ¶
func (*WAFIpSet) GetDecisionType ¶
func (*WAFIpSet) ToStatement ¶
func (w *WAFIpSet) ToStatement(ipHeader string, ipHeaderPosition string) *wafv2.IPSetReferenceStatement
Click to show internal directories.
Click to hide internal directories.