domainSpec

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: BSD-3-Clause Imports: 10 Imported by: 8

Documentation

Index

Constants

View Source
const PathVariable common.PathVariable = "domains"

Variables

This section is empty.

Functions

func ExtractHost

func ExtractHost(hostAndPort string) string

func Tns

func Tns() *tnsHelper

func ValidateDNS

func ValidateDNS(generatedRegex *regexp.Regexp, _project, host string, dev bool, options ...dv.Option) error

TODO move to github.com/taubyte/domain-validation

Types

type DomainMatcher

type DomainMatcher interface {
	MatchString(string) bool
}

type MatchableDomains

type MatchableDomains []DomainMatcher

func (MatchableDomains) MatchString

func (p MatchableDomains) MatchString(s string) bool

type PrefixMatcher

type PrefixMatcher string

func (PrefixMatcher) MatchString

func (p PrefixMatcher) MatchString(s string) bool

type SuffixMatcher

type SuffixMatcher string

func (SuffixMatcher) MatchString

func (p SuffixMatcher) MatchString(s string) bool

Jump to

Keyboard shortcuts

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