GetTrustDomain returns the current trust domain. If the default is used the empty string is returned
()
| 293 | // GetTrustDomain returns the current trust domain. If the default is used |
| 294 | // the empty string is returned |
| 295 | func (c *LiveClient) GetTrustDomain() (string, error) { |
| 296 | u, err := safeurl.JoinPath(MetaPath) |
| 297 | if err != nil { |
| 298 | return "", err |
| 299 | } |
| 300 | return c.getTrustDomain(u) |
| 301 | } |
| 302 | |
| 303 | func (c *LiveClient) getTrustDomain(u safeurl.SafeURL) (string, error) { |
| 304 | var resp MetaResponse |