domainLib

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeprecatedGeneratedFqdnSuffix = ".g.tau.link"

TODO: Move to specs for future references

View Source
var GeneratedFqdnSuffix = ".gtau.link"

Functions

func Delete

func Delete(name string) error

func FetchCustomNetworkGeneratedFqdn

func FetchCustomNetworkGeneratedFqdn(fqdn string) (string, error)

TODO: Move to specs

func IsAGeneratedFQDN

func IsAGeneratedFQDN(fqdn string) (bool, error)

func List

func List() ([]string, error)

func ListResources

func ListResources() ([]*structureSpec.Domain, error)

func NewGeneratedFQDN

func NewGeneratedFQDN(prefix string) (string, error)

func ProjectDomainCount

func ProjectDomainCount(project project.Project) (domainCount int)

func ValidateCertificateKeyPairAndHostname

func ValidateCertificateKeyPairAndHostname(domain *structureSpec.Domain) ([]byte, []byte, error)

Types

type Validator

type Validator interface {
	ValidateFQDN(fqdn string) (response client.DomainResponse, err error)
}

func New

func New(domain *structureSpec.Domain) (validator Validator, err error)

func NewValidator

func NewValidator(name string) (Validator, error)

func Set

func Set(domain *structureSpec.Domain) (validator Validator, err error)

Jump to

Keyboard shortcuts

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