storj/satellite/console/projectusagelimits.go

21 lines
629 B
Go
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package console
import "storj.io/common/memory"
// 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"`
}
// UserProjectLimits holds a users storage and bandwidth limits for new projects.
type UserProjectLimits struct {
BandwidthLimit memory.Size `json:"bandwidthLimit"`
StorageLimit memory.Size `json:"storageUsed"`
}