1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-06 06:45:35 +01:00
Files
glusterd2/plugins/quota/api/req.go
Prashanth Pai 4f7c8135bf plugins: Create 'api' package for each plugin
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>
2018-07-26 11:53:42 +05:30

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