utils

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 6 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
}

func StateRecord

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

type ServiceDnsRecord

type ServiceDnsRecord struct {
	Fqdn        string
	ServiceName string
	StackName   string
}

func ConvertToServiceDnsRecord

func ConvertToServiceDnsRecord(dnsRecord DnsRecord) ServiceDnsRecord

Jump to

Keyboard shortcuts

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