Documentation
¶
Index ¶
- func GetCappConfig(ctx context.Context, k8sClient client.Client) (*cappv1alpha1.CappConfig, error)
- func IsDomainNameTaken(ctx context.Context, domainName string) (bool, error)
- func ValidateDomainName(domainName string, allowedPatterns []cappv1alpha1.HostnamePattern) (errs *apis.FieldError)
- func ValidateURI(uri *apis.URL) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCappConfig ¶
func GetCappConfig(ctx context.Context, k8sClient client.Client) (*cappv1alpha1.CappConfig, error)
GetCappConfig returns an instance of Capp Config.
func IsDomainNameTaken ¶ added in v0.5.3
IsDomainNameTaken checks if the given hostname is already in use.
func ValidateDomainName ¶
func ValidateDomainName(domainName string, allowedPatterns []cappv1alpha1.HostnamePattern) (errs *apis.FieldError)
ValidateDomainName checks if the hostname is valid domain name and not part of the cluster's domain. It returns aggregated error if any of the validations failed.
func ValidateURI ¶ added in v0.9.0
ValidateURI checks if the provided URI is valid and is a relative path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.