utils

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 109

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fqdn

func Fqdn(name string) string

Fqdn ensures that the name is a fqdn adding a trailing dot if necessary.

func FqdnFromTemplate

func FqdnFromTemplate(template, serviceName, stackName, environmentName, rootDomainName string) string

func StateFqdn

func StateFqdn(environmentUUID, rootDomainName string) string

func UnFqdn

func UnFqdn(name string) string

UnFqdn converts the fqdn into a name removing the trailing dot.

Types

type DnsRecord

type DnsRecord struct {
	Fqdn    string
	Records []string
	Type    string
	TTL     int
}

DnsRecord represents a provider DNS record

func StateRecord

func StateRecord(fqdn string, ttl int, entries map[string]struct{}) DnsRecord

type MetadataDnsRecord added in v0.7.0

type MetadataDnsRecord struct {
	ServiceName string
	StackName   string
	DnsRecord   DnsRecord
}

MetadataDnsRecord is a wrapper around a DnsRecord that holds information about the service and stack the record belongs to

Jump to

Keyboard shortcuts

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