Add docstrings to mdm_integration

This commit is contained in:
riccardom
2026-06-09 19:45:47 +02:00
parent d7f00b3beb
commit bd9fed41ad
13 changed files with 129 additions and 31 deletions
+1 -1
View File
@@ -719,7 +719,7 @@ func (config *Config) applyMDMPolicy(policy *mdm.Policy) {
// parseURL parses and validates the URL for the named service.
// It requires the URL to use the http or https scheme and, if no port is present,
// appends ":443" for https or ":80" for http. On success it returns the parsed
// *url.URL; on failure it returns a non-nil error.
// ":80" is appended. The `serviceName` is used to contextualize error messages.
func parseURL(serviceName, serviceURL string) (*url.URL, error) {
parsedMgmtURL, err := url.ParseRequestURI(serviceURL)
if err != nil {