func (c *Client) GetDomainName() (string, error) {
	out, err := c.Get(c.Endpoint("domain"), url.Values{})
	if err != nil {
		return "", trace.Wrap(err)
	}
	var domain string
	if err := json.Unmarshal(out.Bytes(), &domain); err != nil {
		return "", trace.Wrap(err)
	}
	return domain, nil
}
// GetDomainName returns local auth domain of the current auth server
GetDomainName returns local auth domain of the current auth server
// GetDomainName returns local auth domain of the current auth server
func (c *Client) GetDomainName() (string, error) {
	out, err := c.Get(c.Endpoint("domain"), url.Values{})
	if err != nil {
		return "", trace.Wrap(err)
	}
	var domain string
	if err := json.Unmarshal(out.Bytes(), &domain); err != nil {
		return "", trace.Wrap(err)
	}
	return domain, nil
}
func ( c * Client ) GetDomainName ( ) ( string , error ) { out , err := c . Get ( c . Endpoint ( " " ) , url . Values { } ) if err != nil { return " " , trace . Wrap ( err ) } var domain string if err := json . Unmarshal ( out . Bytes ( ) , & domain ) ; err != nil { return " " , trace . Wrap ( err ) } return domain , nil }
GetDomainName returns local auth domain of the current auth server
GetDomainName returns local auth domain of the current auth server