domains

package
v0.39.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 17 Imported by: 21

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 metav1.ObjectMeta, 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 GetAllDomainsAndTags added in v0.7.0

func GetAllDomainsAndTags(ctx context.Context, r *v1.Route, names []string, visibility map[string]netv1alpha1.IngressVisibility) (map[string]string, error)

GetAllDomainsAndTags returns all of the domains and tags(including subdomains) associated with a Route

func HostnameFromTemplate added in v0.7.0

func HostnameFromTemplate(ctx context.Context, name, tag string) (string, error)

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 added in v0.8.0

func IsClusterLocal(domain string) bool

IsClusterLocal checks if a domain is only visible with cluster.

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