lxd/config/map.go
func (m *Map) Dump() map[string]interface{} {
	values := map[string]interface{}{}

	for name, key := range m.schema {
		value := m.GetRaw(name)
		if value != key.Default {
			if key.Hidden {
				values[name] = true
			} else {
				values[name] = value
			}
		}
	}

	return values
}
func (m *Map) Dump() map[string]interface{} {
	values := map[string]interface{}{}

	for name, key := range m.schema {
		value := m.GetRaw(name)
		if value != key.Default {
			if key.Hidden {
				values[name] = true
			} else {
				values[name] = value
			}
		}
	}

	return values
}
// Dump the current configuration held by this Map.
//
// Keys that match their default value will not be included in the dump. Also,
// if a Key has its Hidden attribute set to true, it will be rendered as
// "true", for obfuscating the actual value.