Documentation
¶
Index ¶
- Constants
- func ExportCacheFileInfo(ctx context.Context, src, dst *dbc.Queries, domain string, modID int64) error
- func ExportCacheFileUpdates(ctx context.Context, src, dst *dbc.Queries, domain string, modID int64) error
- func ExportCacheModInfo(ctx context.Context, src, dst *dbc.Queries, domain string, modID int64) error
- func Full(ctx context.Context, db *sql.DB, q *dbq.Queries, bs blobstore.Store, ...) error
- func Game(ctx context.Context, db *sql.DB, q *dbq.Queries, bs blobstore.Store, ...) error
- func Slugify(s string) string
- type ExportKind
- type Manifest
- type ManifestCounts
- type ManifestGame
- type Options
Constants ¶
View Source
const DatabaseFilename = "modctl.db"
View Source
const ExportFormatVersion = 1
Variables ¶
This section is empty.
Functions ¶
func ExportCacheFileInfo ¶ added in v0.7.0
func ExportCacheFileUpdates ¶ added in v0.7.0
func ExportCacheModInfo ¶ added in v0.7.0
func Full ¶
func Full( ctx context.Context, db *sql.DB, q *dbq.Queries, bs blobstore.Store, opts Options, ) error
Full performs a full export of the entire modctl state.
Types ¶
type ExportKind ¶
type ExportKind string
const ( ExportKindFull ExportKind = "full" ExportKindGame ExportKind = "game" )
type Manifest ¶
type Manifest struct {
ExportFormatVersion int `json:"export_format_version"`
ExportKind ExportKind `json:"export_kind"`
ExportedAt time.Time `json:"exported_at"`
ModctlVersion string `json:"modctl_version"`
SchemaVersion int64 `json:"schema_version"`
DBSha256 string `json:"db_sha256"`
NexusCacheSha256 string `json:"nexus_cache_sha256"`
Counts ManifestCounts `json:"counts"`
Game *ManifestGame `json:"game,omitempty"`
}
type ManifestCounts ¶
type ManifestGame ¶
type Options ¶
type Options struct {
// ModctlVersion is injected from rootCmd.Version
ModctlVersion string
// SkipInventory omits archive_inventory_entries from game-scoped exports
SkipInventory bool
// OutputPath is the destination file
OutputPath string
// NoVerify skips rehashing blobs before export
NoVerify bool
// CacheDBPath is the full path to the nexus_cache.db
CacheDBPath string
}
Click to show internal directories.
Click to hide internal directories.