1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00
Files
glusterd2/pkg/api/bricktype.go
Aravinda VK 45d8d420b4 Intelligent Volume Provisioning
Updates: #466
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-05-31 19:42:40 +05:30

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"
}
}