Versions in this module Expand all Collapse all v0 v0.3.1 Mar 15, 2026 v0.3.0 Mar 15, 2026 Changes in this version + func BuildPackage(opts PackageOptions) error + type InstallOptions struct + InstallDir string + PublishedFileId string + ValidateRuleset bool + ZipData []byte + type InstallResult struct + AlreadyCurrent bool + ItemDir string + Manifest *WorkshopManifest + func Install(opts InstallOptions) (InstallResult, error) + type ItemType string + const ItemTypeCardPack + const ItemTypeGameMode + const ItemTypeRuleset + type ModCheckOptions struct + AllowedStepTypes []string + PackageDir string + type ModCheckResult struct + Passed bool + Violations []string + Warnings []string + func RunModCheck(opts ModCheckOptions) (ModCheckResult, error) + type PackageOptions struct + MaxPreviewBytes int64 + MaxTotalBytes int64 + OutputPath string + SourceDir string + type ValidationResult struct + Errors []string + Manifest *WorkshopManifest + Valid bool + func ValidatePackage(packageDir string, strictMode bool) (ValidationResult, error) + type VersionDB struct + func NewVersionDB(dbPath string) *VersionDB + func (db *VersionDB) Get(publishedFileId string) (VersionRecord, bool) + func (db *VersionDB) ListAll() ([]VersionRecord, error) + func (db *VersionDB) Remove(publishedFileId string) error + func (db *VersionDB) Set(r VersionRecord) error + type VersionRecord struct + InstalledAt time.Time + ItemDir string + LastUpdatedAt time.Time + PublishedFileId string + Version string + type WorkshopManifest struct + Author string + Description string + GameTypes []string + ItemType ItemType + MaxPlayers int + MinPlayers int + PreviewImagePath string + SchemaVersion int + Tags []string + Title string + Version string + func (m *WorkshopManifest) Validate() error