domainSpec

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const PathVariable common.PathVariable = "domains"

Variables

View Source
var SpecialDomain = regexp.MustCompile(`^[^.]+\.g\.tau\.link$`)
View Source
var TaubyteHooksDomain = regexp.MustCompile(`hooks.git.taubyte.com`)
View Source
var TaubyteServiceDomain = regexp.MustCompile(`^[^.]+\.taubyte\.com$`)
View Source
var WhiteListedDomains = []string{"nodes.taubyte.com", "nodes.taubyte.network"}

Functions

func ExtractHost

func ExtractHost(hostAndPort string) string

func Tns

func Tns() *tnsHelper

func ValidateDNS

func ValidateDNS(_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