Files
jpictl/pkg/cluster/types.go
T
2024-05-28 21:01:29 +00:00

25 lines
339 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 {
if z > 0 {
return strconv.Itoa(int(z))
}
return ""
}
func (n NodeID) String() string {
if n > 0 {
return strconv.Itoa(int(n))
}
return ""
}