@ -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,18 +1,17 @@
type NodeId uint32
type VolumeId uint32
type VolumeInfo struct {
Id VolumeId
Size int64
type Node struct {
volumes map[VolumeId]VolumeInfo
volumeLimit int
Ip string
Port int
PublicUrl string
@ -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