mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-06 15:46:00 +01:00
In Go, every directory is a distinct package. There is no such thing as a subpackage. Having `api` is a separate package as a subdirectory in each plugin ensures that we will not run into cyclic dependency issues. Signed-off-by: Prashanth Pai <ppai@redhat.com>
21 lines
375 B
Go
21 lines
375 B
Go
package api
|
|
|
|
const (
|
|
// DeviceEnabled represents enabled
|
|
DeviceEnabled = "enabled"
|
|
|
|
// DeviceDisabled represents disabled
|
|
DeviceDisabled = "disabled"
|
|
)
|
|
|
|
// AddDeviceReq structure
|
|
type AddDeviceReq struct {
|
|
Device string `json:"device"`
|
|
}
|
|
|
|
// EditDeviceReq structure
|
|
type EditDeviceReq struct {
|
|
DeviceName string `json:"device-name"`
|
|
State string `json:"state"`
|
|
}
|