domains

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package domains holds simple functions for generating domains.

Index

Constants

View Source
const HTTPScheme string = "http"

HTTPScheme is the string representation of http.

Variables

This section is empty.

Functions

func DomainNameFromTemplate

func DomainNameFromTemplate(ctx context.Context, r *v1alpha1.Route, name string) (string, error)

DomainNameFromTemplate generates domain name base on the template specified in the `config-network` ConfigMap. name is the "subdomain" which will be referred as the "name" in the template

func GetAllDomains

func GetAllDomains(ctx context.Context, r *v1alpha1.Route, names []string) ([]string, error)

GetAllDomains returns all of the domains (including subdomains) associated with a Route

func SubdomainName

func SubdomainName(r *v1alpha1.Route, suffix string) string

SubdomainName generates a name which represents the subdomain of a route

func URL

func URL(scheme, fqdn string) *apis.URL

URL generates the a string representation of a URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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