delegation

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package delegation implements immutable RRset selector semantics.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSelector = errors.New("delegation: invalid selector")

ErrInvalidSelector reports a malformed or out-of-zone selector.

Functions

This section is empty.

Types

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

Selector is a validated canonical exact or glob selector.

func CompileSelector

func CompileSelector(kind SelectorKind, pattern string, zone dnsname.Name) (Selector, error)

CompileSelector validates and canonicalizes one selector for zone.

func (Selector) Kind

func (s Selector) Kind() SelectorKind

Kind returns the selector's immutable kind.

func (Selector) Matches

func (s Selector) Matches(owner dnsname.Name) bool

Matches reports whether the complete canonical owner name is selected.

func (Selector) Pattern

func (s Selector) Pattern() string

Pattern returns the canonical absolute selector pattern.

func (Selector) SQLLike

func (s Selector) SQLLike() string

SQLLike returns the creation-time SQL LIKE pattern using backslash as ESCAPE.

type SelectorKind

type SelectorKind string

SelectorKind identifies how a selector interprets its pattern.

const (
	SelectorExact SelectorKind = "exact"
	SelectorGlob  SelectorKind = "glob"
)

Jump to

Keyboard shortcuts

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