lxd/node/config.go
func HTTPSAddress(node *db.Node) (string, error) {
	var config *Config
	err := node.Transaction(func(tx *db.NodeTx) error {
		var err error
		config, err = ConfigLoad(tx)
		return err
	})
	if err != nil {
		return "", err
	}

	return config.HTTPSAddress(), nil
}
func HTTPSAddress(node *db.Node) (string, error) {
	var config *Config
	err := node.Transaction(func(tx *db.NodeTx) error {
		var err error
		config, err = ConfigLoad(tx)
		return err
	})
	if err != nil {
		return "", err
	}

	return config.HTTPSAddress(), nil
}
func HTTPSAddress ( node * db . Node ) ( string , error ) { var config * Config err := node . Transaction ( func ( tx * db . NodeTx ) error { var err error config , err = ConfigLoad ( tx ) return err } ) if err != nil { return " " , err } return config . HTTPSAddress ( ) , nil }
// HTTPSAddress is a convenience for loading the node configuration and
// returning the value of core.https_address.
HTTPSAddress is a convenience for loading the node configuration and returning the value of core . https_address .