Documentation ¶
Overview ¶
Package r2modman contains utilities for interacting with r2modman/thunderstore
Index ¶
Constants ¶
View Source
const ValheimPackagesAPIUrl = "https://valheim.thunderstore.io/api/v1/package/"
Variables ¶
This section is empty.
Functions ¶
func GetPackagesMetadata ¶
func GetPackagesMetadata(ctx context.Context) (packages map[string]*APIPackageResponse, err error)
Types ¶
type APIPackageResponse ¶
type ExportParser ¶
type ExportR2x ¶
type ExportR2x struct { ProfileName string `yaml:"profileName"` Mods []ExportR2xMod }
type ExportR2xMod ¶
type ExportR2xMod struct { Name string Version ExportR2xModVersion Enabled bool }
func (*ExportR2xMod) DownloadUrl ¶
func (e *ExportR2xMod) DownloadUrl(cdnHost string) string
func (ExportR2xMod) Filename ¶
func (e ExportR2xMod) Filename() string
func (*ExportR2xMod) ThunderstoreKey ¶
func (e *ExportR2xMod) ThunderstoreKey() string
func (*ExportR2xMod) ThunderstoreModVersion ¶
func (e *ExportR2xMod) ThunderstoreModVersion() string
type ExportR2xModVersion ¶
type ModPackagingType ¶
type ModPackagingType int
const ( // ModPackagingTypeUnknown is the default packaging type. This means the packaging is unrecognized ModPackagingTypeUnknown ModPackagingType = iota ModPackagingTypeRoot ModPackagingTypePlugin ModPackagingTypeRootDLL )
func DeterminePackagingType ¶
func DeterminePackagingType(modZipFilename string) (modType ModPackagingType, prefixToStrip string, err error)
func (ModPackagingType) Directory ¶
func (d ModPackagingType) Directory() string
func (ModPackagingType) String ¶
func (d ModPackagingType) String() string
type ModUtil ¶
type ModUtil interface {
Download(mod ExportR2xMod, metadata *APIPackageResponse) error
}
Click to show internal directories.
Click to hide internal directories.