2019-12-12 12:58:15 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package console
|
|
|
|
|
2021-11-01 15:27:32 +00:00
|
|
|
import "storj.io/common/memory"
|
|
|
|
|
2019-12-12 12:58:15 +00:00
|
|
|
// ProjectUsageLimits holds project usage limits and current usage.
|
|
|
|
type ProjectUsageLimits struct {
|
|
|
|
StorageLimit int64 `json:"storageLimit"`
|
|
|
|
BandwidthLimit int64 `json:"bandwidthLimit"`
|
|
|
|
StorageUsed int64 `json:"storageUsed"`
|
|
|
|
BandwidthUsed int64 `json:"bandwidthUsed"`
|
2021-11-17 15:32:34 +00:00
|
|
|
ObjectCount int64 `json:"objectCount"`
|
|
|
|
SegmentCount int64 `json:"segmentCount"`
|
2019-12-12 12:58:15 +00:00
|
|
|
}
|
2021-11-01 15:27:32 +00:00
|
|
|
|
2021-12-06 19:06:50 +00:00
|
|
|
// UserProjectLimits holds a users storage, bandwidth, and segment limits for new projects.
|
2021-11-01 15:27:32 +00:00
|
|
|
type UserProjectLimits struct {
|
|
|
|
BandwidthLimit memory.Size `json:"bandwidthLimit"`
|
|
|
|
StorageLimit memory.Size `json:"storageUsed"`
|
2021-12-06 19:06:50 +00:00
|
|
|
SegmentLimit int64 `json:"segmentLimit"`
|
2021-11-01 15:27:32 +00:00
|
|
|
}
|