Documentation
¶
Index ¶
- type ContainedIn
- type QuotaGroup
- type QuotaInfo
- type QuotaRuleInfo
- type QuotaUsed
- type QuotaUsedArtifact
- type QuotaUsedAttachment
- type QuotaUsedPackage
- type QuotaUsedSize
- type QuotaUsedSizeAssets
- type QuotaUsedSizeAssetsAttachments
- type QuotaUsedSizeAssetsPackages
- type QuotaUsedSizeGit
- type QuotaUsedSizeRepos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainedIn ¶
type ContainedIn struct {
// API URL for the object that contains this attachment
APIURL string `json:"api_url,omitempty"`
// HTML URL for the object that contains this attachment
HTMLURL string `json:"html_url,omitempty"`
}
ContainedIn Context for the attachment: URLs to the containing object
type QuotaGroup ¶
type QuotaGroup struct {
Name string `json:"name,omitempty"`
Rules []QuotaRuleInfo `json:"rules"`
}
QuotaGroup represents a quota group
type QuotaInfo ¶
type QuotaInfo struct {
Groups []QuotaGroup `json:"groups,omitempty"`
Used QuotaUsed `json:"used"`
}
QuotaInfo represents information about a user's quota
type QuotaRuleInfo ¶
type QuotaRuleInfo struct {
// Name of the rule (only shown to admins)
Name string `json:"name,omitempty"`
Limit int64 `json:"limit,omitempty"`
Subjects []string `json:"subjects,omitempty"`
}
QuotaRuleInfo contains information about a quota rule
type QuotaUsed ¶
type QuotaUsed struct {
Size QuotaUsedSize `json:"size"`
}
QuotaUsed represents the quota usage of a user
type QuotaUsedArtifact ¶
type QuotaUsedArtifact struct {
// HTML URL to the action run containing the artifact
HTMLURL string `json:"html_url,omitempty"`
// Name of the artifact
Name string `json:"name,omitempty"`
// Size of the artifact (compressed)
Size int64 `json:"size,omitempty"`
}
QuotaUsedArtifact represents an artifact counting towards a user's quota
type QuotaUsedAttachment ¶
type QuotaUsedAttachment struct {
// API URL for the attachment
APIURL string `json:"api_url,omitempty"`
// Filename of the attachment
Name string `json:"name,omitempty"`
// Size of the attachment (in bytes)
Size int64 `json:"size,omitempty"`
// contained in
ContainedIn *ContainedIn `json:"contained_in,omitempty"`
}
QuotaUsedAttachment represents an attachment counting towards a user's quota ContainedIn describes the issue or release this attachment belongs to. It is nil if the attachment is not contained in any issue or release.
type QuotaUsedPackage ¶
type QuotaUsedPackage struct {
// HTML URL to the package version
HTMLURL string `json:"html_url,omitempty"`
// Name of the package
Name string `json:"name,omitempty"`
// Size of the package version
Size int64 `json:"size,omitempty"`
// Type of the package
Type string `json:"type,omitempty"`
// Version of the package
Version string `json:"version,omitempty"`
}
QuotaUsedPackage represents a package counting towards a user's quota
type QuotaUsedSize ¶
type QuotaUsedSize struct {
Assets QuotaUsedSizeAssets `json:"assets"`
Git QuotaUsedSizeGit `json:"git"`
Repos QuotaUsedSizeRepos `json:"repos"`
}
QuotaUsedSize represents the size-based quota usage of a user
type QuotaUsedSizeAssets ¶
type QuotaUsedSizeAssets struct {
// Storage size used for the user's artifacts
Artifacts int64 `json:"artifacts,omitempty"`
Attachments QuotaUsedSizeAssetsAttachments `json:"attachments"`
Packages QuotaUsedSizeAssetsPackages `json:"packages"`
}
QuotaUsedSizeAssets represents the size-based asset usage of a user
type QuotaUsedSizeAssetsAttachments ¶
type QuotaUsedSizeAssetsAttachments struct {
// Storage size used for the user's issue & comment attachments
Issues int64 `json:"issues,omitempty"`
// Storage size used for the user's release attachments
Releases int64 `json:"releases,omitempty"`
}
QuotaUsedSizeAssetsAttachments represents the size-based attachment quota usage of a user
type QuotaUsedSizeAssetsPackages ¶
type QuotaUsedSizeAssetsPackages struct {
// Storage size used for the user's packages
All int64 `json:"all,omitempty"`
}
QuotaUsedSizeAssetsPackages represents the size-based package quota usage of a user
type QuotaUsedSizeGit ¶
type QuotaUsedSizeGit struct {
// Storage size of the user's Git LFS objects
LFS int64 `json:"LFS,omitempty"`
}
QuotaUsedSizeGit represents the size-based git (lfs) quota usage of a user
type QuotaUsedSizeRepos ¶
type QuotaUsedSizeRepos struct {
// Storage size of the user's private repositories
Private int64 `json:"private,omitempty"`
// Storage size of the user's public repositories
Public int64 `json:"public,omitempty"`
}
QuotaUsedSizeRepos represents the size-based repository quota usage of a user