Documentation ¶
Index ¶
- func FetchModChecksums(ctx context.Context, modVersions map[string]string) (map[string]*common.ChecksumPack, error)
- func FilterUnsupportedPackages(ctx context.Context, pkgs []*common.Package) []*common.Package
- func GetEngineForMod(ctx context.Context, mod *common.Release) (*common.Release, error)
- func GetFlagsForEngine(ctx context.Context, engine *common.Release) (map[string]*client.FlagInfo_Flag, error)
- func GetFlagsForMod(ctx context.Context, mod *common.Release) (map[string]*client.FlagInfo_Flag, error)
- func GetModDependents(ctx context.Context, mods storage.ModProvider, modID, version string) ([][2]string, error)
- func GetModFolder(ctx context.Context, rel *common.Release) (string, error)
- func ImportMods(ctx context.Context, modFiles []string) error
- func InstallMod(ctx context.Context, req *client.InstallModRequest) error
- func LaunchMod(ctx context.Context, mod *common.Release, settings *client.UserSettings, ...) error
- func SaveLocalMod(ctx context.Context, mod *common.ModMeta) error
- func SaveLocalModRelease(ctx context.Context, rel *common.Release) error
- func UpdateRemoteModIndex(ctx context.Context) error
- func VerifyModIntegrity(ctx context.Context, rel *common.Release) error
- type DependencySnapshot
- type KnArchive
- type KnChecksum
- type KnDep
- type KnExe
- type KnFile
- type KnMod
- type KnPackage
- type ModInstallStep
- type ModMissing
- type PackageMissing
- type UserModSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchModChecksums ¶
func GetEngineForMod ¶
func GetFlagsForEngine ¶
func GetFlagsForMod ¶
func GetModDependents ¶
func InstallMod ¶
func InstallMod(ctx context.Context, req *client.InstallModRequest) error
func UpdateRemoteModIndex ¶
Types ¶
type DependencySnapshot ¶
func GetDependencySnapshot ¶
func GetDependencySnapshot(ctx context.Context, mods storage.ModProvider, release *common.Release) (DependencySnapshot, error)
type KnArchive ¶
type KnArchive struct { Checksum KnChecksum Filename string Dest string URLs []string FileSize int }
type KnChecksum ¶
type KnChecksum [2]string
type KnFile ¶
type KnFile struct { Filename string Archive string OrigName string Checksum KnChecksum }
type KnMod ¶
type KnMod struct { LocalPath string Title string Version string Parent string Stability string Description string Logo string Tile string Banner string ReleaseThread string `json:"release_thread"` Type string ID string Notes string Folder string FirstRelease string `json:"first_release"` LastUpdate string `json:"last_update"` Cmdline string ModFlag []string `json:"mod_flag"` DevMode bool `json:"dev_mode"` Screenshots []string Packages []KnPackage Videos []string }
type ModInstallStep ¶
type ModInstallStep struct {
// contains filtered or unexported fields
}
type ModMissing ¶
func (ModMissing) Error ¶
func (e ModMissing) Error() string
type PackageMissing ¶
func (PackageMissing) Error ¶
func (e PackageMissing) Error() string
Click to show internal directories.
Click to hide internal directories.