mirror of
https://github.com/gluster/glusterd2.git
synced 2026-02-06 06:45:35 +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>
14 lines
429 B
Go
14 lines
429 B
Go
package api
|
|
|
|
// SetLimitReq represents REST API request to Limit Usage/objects of a directory
|
|
type SetLimitReq struct {
|
|
Path string `json:"path"`
|
|
SizeUsageLimit int `json:"size-usage-limit,omitempty"`
|
|
ObjectCountLimit int `json:"object-count-limit,omitempty"`
|
|
}
|
|
|
|
// RemoveLimitReq represents REST API request to Remove Usage/objects of a directory
|
|
type RemoveLimitReq struct {
|
|
Path string `json:"path"`
|
|
}
|