mirror of
https://github.com/minio/minio.git
synced 2025-11-26 12:36:13 -05:00
Add new admin API to return Accounting Usage (#8689)
This commit is contained in:
@@ -32,6 +32,11 @@ func (actionSet ActionSet) Add(action Action) {
|
||||
actionSet[action] = struct{}{}
|
||||
}
|
||||
|
||||
// IsEmpty - returns if the current action set is empty
|
||||
func (actionSet ActionSet) IsEmpty() bool {
|
||||
return len(actionSet) == 0
|
||||
}
|
||||
|
||||
// Match - matches object name with anyone of action pattern in action set.
|
||||
func (actionSet ActionSet) Match(action Action) bool {
|
||||
for r := range actionSet {
|
||||
|
||||
Reference in New Issue
Block a user