update

package
v2.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFqdnHostnameNotValid = errors.New("fqdn hostname is not valid")
)

Functions

This section is empty.

Types

type Settings

type Settings struct {
	// FqdnHostnames is a list of fully qualified domain names
	// to filter out.
	FqdnHostnames []string
	// IPs is a list of IP addresses to filter out.
	IPs []netip.Addr
	// IPPrefixes is a list of IP prefixes to filter out.
	IPPrefixes []netip.Prefix
}

func (*Settings) BlockHostnames

func (s *Settings) BlockHostnames(hostnames []string)

BlockHostnames transforms the slice of hostnames given to FQDN hostnames and sets these to the settings.

func (*Settings) SetDefaults

func (s *Settings) SetDefaults()

func (*Settings) String

func (s *Settings) String() string

func (*Settings) ToLinesNode

func (s *Settings) ToLinesNode() (node *gotree.Node)

func (Settings) Validate

func (s Settings) Validate() (err error)

Jump to

Keyboard shortcuts

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