azurewaf

package
v0.0.0-...-95c9b66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName      = "azurewaf"
	DocTTL            = 1 * time.Hour
	IndentPipeHyphens = " |-----"
)

Variables

This section is empty.

Functions

func NewProviderClient

func NewProviderClient(c session.Session) (providers.ProviderClient, error)

Types

type Config

type Config struct {
	session.Session
	Host   netip.Addr
	APIKey string
	// contains filtered or unexported fields
}

type CustomRuleMatch

type CustomRuleMatch struct {
	RuleName string
	RuleType string
	Prefixes []netip.Prefix
	Negate   bool
	Action   string
	Priority int32
}

type HostSearchResult

type HostSearchResult struct {
	Raw           []byte
	PolicyMatches []PolicyMatch
	CreateDate    time.Time `json:"createDate"`
}

type PolicyMatch

type PolicyMatch struct {
	RID               config.ResourceID
	CustomRuleMatches []CustomRuleMatch
}

type PrefixMatch

type PrefixMatch struct {
	Prefix        string
	Negate        bool
	MatchVariable string
	Operator      string
}

type ProviderClient

type ProviderClient struct {
	session.Session
}

func (*ProviderClient) CreateTable

func (c *ProviderClient) CreateTable(data []byte) (*table.Writer, error)

func (*ProviderClient) Enabled

func (c *ProviderClient) Enabled() bool

func (*ProviderClient) ExtractThreatIndicators

func (c *ProviderClient) ExtractThreatIndicators(findRes []byte) (*providers.ThreatIndicators, error)

func (*ProviderClient) FindHost

func (c *ProviderClient) FindHost() ([]byte, error)

func (*ProviderClient) GetConfig

func (c *ProviderClient) GetConfig() *session.Session

func (*ProviderClient) Initialise

func (c *ProviderClient) Initialise() error

func (*ProviderClient) Priority

func (c *ProviderClient) Priority() *int32

func (*ProviderClient) RateHostData

func (c *ProviderClient) RateHostData(findRes []byte, ratingConfigJSON []byte) (providers.RateResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL