mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-05 12:45:38 +01:00
24 lines
396 B
Go
24 lines
396 B
Go
package api
|
|
|
|
// BrickType is the type of Brick
|
|
//go:generate jsonenums -type=BrickType
|
|
type BrickType uint16
|
|
|
|
const (
|
|
// Brick represents default type of brick
|
|
Brick BrickType = iota
|
|
// Arbiter represents Arbiter brick type
|
|
Arbiter
|
|
)
|
|
|
|
func (t BrickType) String() string {
|
|
switch t {
|
|
case Brick:
|
|
return "Brick"
|
|
case Arbiter:
|
|
return "Arbiter"
|
|
default:
|
|
return "invalid BrickType"
|
|
}
|
|
}
|