sourcepackage

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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 ArchiveExtension(filename string) string

func BaseFilename

func BaseFilename(filename string) string

func DigestFromTarget

func DigestFromTarget(target string) string

func ValidFilename

func ValidFilename(filename string) bool

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) Target

func (p Package) Target() string

func (Package) Validate

func (p Package) Validate() error

func (Package) ValidateVersion

func (p Package) ValidateVersion() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL