utils

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

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