Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ponytail: single-request uploads stay capped; add resumable object-store uploads before raising this ceiling. MaxArchiveBytes = int64(512 << 20) TargetPrefix = "uploaded-source/sha256/" )
Variables ¶
This section is empty.
Functions ¶
func ArchiveExtension ¶
func BaseFilename ¶
func DigestFromTarget ¶
func ValidFilename ¶
Types ¶
type Package ¶
type Package struct {
VersionID shared.ID `json:"version_id,omitempty"`
ReusedFromVersionID shared.ID `json:"reused_from_version_id,omitempty"`
AssociatedBy string `json:"associated_by,omitempty"`
AssociatedAt time.Time `json:"associated_at,omitempty"`
TenantID shared.ID `json:"tenant_id"`
EngagementID shared.ID `json:"engagement_id"`
Filename string `json:"filename"`
Size int64 `json:"size"`
SHA256 string `json:"sha256"`
CreatedBy string `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
Locator string `json:"-"`
ObjectKey string `json:"-"`
}
func (Package) ValidateVersion ¶
Click to show internal directories.
Click to hide internal directories.