Documentation ¶
Overview ¶
Package domains holds simple functions for generating domains.
Index ¶
- Constants
- func DomainNameFromTemplate(ctx context.Context, r v1.ObjectMeta, name string) (string, error)
- func GetAllDomainsAndTags(ctx context.Context, r *v1alpha1.Route, names []string, ...) (map[string]string, error)
- func HostnameFromTemplate(ctx context.Context, name string, tag string) (string, error)
- func IsClusterLocal(domain string) bool
- func URL(scheme, fqdn string) *apis.URL
Constants ¶
const HTTPScheme string = "http"
HTTPScheme is the string representation of http.
Variables ¶
This section is empty.
Functions ¶
func DomainNameFromTemplate ¶
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 GetAllDomainsAndTags ¶
func GetAllDomainsAndTags(ctx context.Context, r *v1alpha1.Route, names []string, localServiceNames sets.String) (map[string]string, error)
GetAllDomainsAndTags returns all of the domains and tags(including subdomains) associated with a Route
func HostnameFromTemplate ¶
HostnameFromTemplate 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 IsClusterLocal ¶
IsClusterLocal checks if a domain is only visible with cluster.
Types ¶
This section is empty.