functions

package
v0.30.20 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomFunctions

func CustomFunctions[K any]() map[string]ottl.Factory[K]

func NewCidrMatchFactory

func NewCidrMatchFactory[K any]() ottl.Factory[K]

NewCidrMatchFactory Factory function to create a new instance of cidrMatch

func NewDbQueryScrubFactory added in v0.14.1

func NewDbQueryScrubFactory[K any]() ottl.Factory[K]

func NewExistsFactory

func NewExistsFactory[K any]() ottl.Factory[K]

func NewIpLocationFactory

func NewIpLocationFactory[K any]() ottl.Factory[K]

NewIpLocationFactory Create the factory for the iplocation function

func NewIsInFactory

func NewIsInFactory[K any]() ottl.Factory[K]

func NewLookupFactory

func NewLookupFactory[K any]() ottl.Factory[K]

func NewUrlScrubFactory added in v0.8.0

func NewUrlScrubFactory[K any]() ottl.Factory[K]

func ScrubWord added in v0.14.6

func ScrubWord(word string) string

Types

type CidrMatchArguments

type CidrMatchArguments[K any] struct {
	Subnet ottl.StringGetter[K]
	IP     ottl.StringGetter[K]
}

CidrMatchArguments Define the arguments struct for the cidrMatch function

type DBQueryScrubArguments added in v0.14.1

type DBQueryScrubArguments[K any] struct {
	Query ottl.StringGetter[K]
}

type IPLocationLookup added in v0.24.23

type IPLocationLookup struct {
	Country struct {
		ISOCode string            `maxminddb:"iso_code"`
		Names   map[string]string `maxminddb:"names"`
	} `maxminddb:"country"`
	City struct {
		Names map[string]string `maxminddb:"names"`
	} `maxminddb:"city"`
	Location struct {
		Latitude  float64 `maxminddb:"latitude"`
		Longitude float64 `maxminddb:"longitude"`
	} `maxminddb:"location"`
	Postal struct {
		Code string `maxminddb:"code"`
	} `maxminddb:"postal"`
}

type IpLocationArguments

type IpLocationArguments[K any] struct {
	Target ottl.StringGetter[K] // Target is the IP address to locate
}

IpLocationArguments holds the target IP

type IsInArguments

type IsInArguments[K any] struct {
	Target ottl.StringGetter[K]
	List   []string
}

type LookupArguments

type LookupArguments[K any] struct {
	LookupKey ottl.StringGetter[K]
	Lookup    []string // Array in [key1, value1, key2, value2, ...] format
	DefaultTo string
}

type UrlScrubArguments added in v0.8.0

type UrlScrubArguments[K any] struct {
	Url ottl.StringGetter[K]
}

Jump to

Keyboard shortcuts

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