Alejandro Mery
|
0c21d74c15
|
rings: make unsafe address factories public
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
4 months ago |
Alejandro Mery
|
bcb20ab1e6
|
rings: introduce ring-specific decoders
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
5 months ago |
Alejandro Mery
|
96c59dfe8a
|
rings: introduce a generic DecodeAddress() for all four rings
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
5 months ago |
Alejandro Mery
|
169a1e9602
|
rings: introduce RingID and its values
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
5 months ago |
Alejandro Mery
|
6d89e0ea3c
|
rings: fix NodeZeroMax/NodeMax to not accept .255
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
5 months ago |
Alejandro Mery
|
ff8f2c6ea1
|
rings: add String() to RegionID, ZoneID, NodeID
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
5 months ago |
Alejandro Mery
|
72a2468a10
|
rings: RingTwoPrefix()
Ring 2 is the service network shared by all kubernetes clusters.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
6142d0f7f0
|
rings: RingThreePrefix()
Ring 3 corresponds to the pods of the kubernetes cluster of a region
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
0f177acf57
|
rings: RingZeroPrefix()/RingZeroAddress()
Ring zero corresponds to the backbone that connects all zones.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
394a84c3ab
|
rings: RingOnePrefix()/RingOneAddress()
Ring one designates the (virtual) local network of a zone
within a region.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
52e1195139
|
rings: introduce generic ErrOutOfRange() factory
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
378bab2f96
|
rings: introduce RegionID, ZoneID and NodeID
and a Valid() method to check if their value is within the
valid range.
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
3e90c7a30b
|
rings: introduce PrefixToRange()
returning the beginning and end of a subnet
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
50436a320c
|
rings: introduce AddrToU32() and AddrFromU32() helpers
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |
Alejandro Mery
|
ac5827898b
|
rings: introduce subpackage to deal with Ring addresses
Signed-off-by: Alejandro Mery <amery@jpi.io>
|
6 months ago |