Documentation ¶
Overview ¶
Package domain collects structures and functions around the domains the client works with.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppDefaultRoute ¶ added in v0.0.23
AppDefaultRoute constructs and returns an application's default route constructed from the main domain, and the name of the application.
func MainDomain ¶
MainDomain determines the name of the main domain of the currently accessed epinio installation. The result is cached in-memory (see variable mainDomain). The function preferably returns cached data, and queries the cluster ingresses only the first time the data is asked for. This is especially useful for long running commands. In other other words, epinio's API server.
Types ¶
type DomainMap ¶ added in v1.1.0
domainMap is the internal type for the map from domain patterns to the names of the secrets holding the TLS certs serving them.
func MatchMapLoad ¶ added in v1.1.0
MatchMapLoad queries the cluster for TLS secrets which are marked for use by epinio, via the routingSelector label. It returns a map from the domains the secrets are serving, to the serving secret.