QuotaUsedSize

com.worxbend.codeberg4s.users.account.QuotaUsedSize
See theQuotaUsedSize companion object
final case class QuotaUsedSize

The size breakdown of what an account is storing, in bytes.

Every field is an Option because docs/HAZARDS.md §1 measured that the spec declares nothing required, and because the distinction matters here more than usual: Some(0) is "this instance measured nothing under this heading", while None is "this instance did not report this heading at all" — which is what an older Forgejo, or one with a storage backend that cannot be measured, looks like. Summing the two together would invent a number.

Value parameters

artifacts

the size of the account's Actions artifacts

gitLfs

the size of the account's Git LFS objects. Note the wire key is the upper-case LFS, not lfs

issueAttachments

the size of attachments on the account's issues and comments

packages

the size of the account's published packages

privateRepositories

the size of the account's private repositories

publicRepositories

the size of the account's public repositories

releaseAttachments

the size of attachments on the account's releases

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def reportedTotal: Long

Everything the instance did report, added up.

Everything the instance did report, added up.

Headings the instance did not report contribute nothing, which means this is a lower bound on what the account is storing and not an authoritative total — the API publishes no total of its own. A caller displaying a figure should say so.

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product