mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Ensure data-race-free access to the daemon configuration without locking by mutating a deep copy of the config and atomically storing a pointer to the copy into the daemon-wide configStore value. Any operations which need to read from the daemon config must capture the configStore value only once and pass it around to guarantee a consistent view of the config. Signed-off-by: Cory Snider <csnider@mirantis.com>
17 lines
477 B
Go
17 lines
477 B
Go
// Code generated by "stringer -type=Location location.go"; DO NOT EDIT.
|
|
|
|
package reflectwalk
|
|
|
|
import "fmt"
|
|
|
|
const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc"
|
|
|
|
var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73}
|
|
|
|
func (i Location) String() string {
|
|
if i >= Location(len(_Location_index)-1) {
|
|
return fmt.Sprintf("Location(%d)", i)
|
|
}
|
|
return _Location_name[_Location_index[i]:_Location_index[i+1]]
|
|
}
|