@ -1,6 +1,10 @@
package topology
import (
)
import ()
type DataCenterId uint32
type DataCenter struct {
Id DataCenterId
racks map[RackId]*Rack
ipRange IpRange
}
@ -0,0 +1,11 @@
type IpRange struct {
inclusives []string
exclusives []string
@ -1,9 +1,8 @@
type NodeId uint32
type VolumeId uint32
type VolumeInfo struct {
Id VolumeId
@ -1,10 +1,10 @@
type RackId uint32
type Rack struct {
nodes map[uint64]*Node
IpRanges []string
Id RackId
nodes map[NodeId]*Node
@ -0,0 +1,9 @@
type Topology struct {
datacenters map[DataCenterId]*DataCenter