Files
jpictl/pkg/cluster/types.go
T
2024-05-28 19:42:48 +00:00

19 lines
285 B
Go

package cluster
import "strconv"
type (
// ZoneID is the identifier of a [Zone]
ZoneID int
// NodeID is the identifier of a [Machine]
NodeID int
)
func (z ZoneID) String() string {
return strconv.Itoa(int(z))
}
func (n NodeID) String() string {
return strconv.Itoa(int(n))
}