support

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const MaxHandlerInstances int = 100

Variables

This section is empty.

Functions

func AppendToDBQueue

func AppendToDBQueue(callback func())

func AssetMonitoredWithinTTL

func AssetMonitoredWithinTTL(session et.Session, asset, src *dbt.Asset, since time.Time) bool

func EmailToOAMEmailAddress

func EmailToOAMEmailAddress(e string) *contact.EmailAddress

func FullNameToPerson

func FullNameToPerson(raw string) *people.Person

func GetAPI

func GetAPI(name string, e *et.Event) (string, error)

func GetSource

func GetSource(session et.Session, psrc *source.Source) *dbt.Asset

func IPToNetblock

func IPToNetblock(session et.Session, ip *oamnet.IPAddress) (*oamnet.Netblock, error)

func IPToNetblockWithAttempts

func IPToNetblockWithAttempts(session et.Session, ip *oamnet.IPAddress, num int, d time.Duration) (*oamnet.Netblock, error)

func IsAddressInScope

func IsAddressInScope(session et.Session, ip *oamnet.IPAddress) bool

func IsCNAME

func IsCNAME(session et.Session, name *domain.FQDN) (*domain.FQDN, bool)

func MarkAssetMonitored

func MarkAssetMonitored(session et.Session, asset, src *dbt.Asset)

func NameIPAddresses

func NameIPAddresses(session et.Session, name *domain.FQDN) []*oamnet.IPAddress

func NameResolved

func NameResolved(session et.Session, name *domain.FQDN) bool

func NumResolvers

func NumResolvers() int

func PerformQuery

func PerformQuery(name string, qtype uint16) ([]*resolve.ExtractedAnswer, error)

func PhoneToOAMPhone

func PhoneToOAMPhone(phone, ext, country string) *contact.Phone

func ProcessAssetsWithSource added in v0.0.2

func ProcessAssetsWithSource(e *et.Event, findings []*Finding, src *dbt.Asset, pname, hname string)

func ProcessEmailsWithSource

func ProcessEmailsWithSource(e *et.Event, assets []*dbt.Asset, src *dbt.Asset)

func ProcessFQDNsWithSource

func ProcessFQDNsWithSource(e *et.Event, assets []*dbt.Asset, src *dbt.Asset)

func RawURLToOAM

func RawURLToOAM(raw string) *oamurl.URL

func ScrapeSubdomainNames

func ScrapeSubdomainNames(s string) []string

func Shutdown

func Shutdown()

func SourceToAssetsWithinTTL

func SourceToAssetsWithinTTL(session et.Session, name, atype string, src *dbt.Asset, since time.Time) []*dbt.Asset

func StoreEmailsWithSource

func StoreEmailsWithSource(session et.Session, emails []string, src *dbt.Asset, plugin, handler string) []*dbt.Asset

func StoreFQDNsWithSource

func StoreFQDNsWithSource(session et.Session, names []string, src *dbt.Asset, plugin, handler string) []*dbt.Asset

func StreetAddressToLocation

func StreetAddressToLocation(address string) *contact.Location

func TTLStartTime

func TTLStartTime(c *config.Config, from, to, plugin string) (time.Time, error)

func TimeToJSONString

func TimeToJSONString(t *time.Time) string

Types

type FQDNFilter

type FQDNFilter map[string]interface{}

func NewFQDNFilter

func NewFQDNFilter() FQDNFilter

func (FQDNFilter) Close

func (r FQDNFilter) Close()

func (FQDNFilter) Insert

func (r FQDNFilter) Insert(fqdn string)

func (FQDNFilter) Prune

func (r FQDNFilter) Prune(limit int)

func (FQDNFilter) Slice

func (r FQDNFilter) Slice() []string

type Finding added in v0.0.2

type Finding struct {
	From     *dbt.Asset
	FromName string
	To       *dbt.Asset
	ToName   string
	Rel      string
}

Jump to

Keyboard shortcuts

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