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