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