manager

package
v12.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 License: MIT Imports: 13 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(consumer *state.Consumer, installFolder string, runtime *Runtime) (*configurator.Verdict, error)

Types

type ClassificationAction

type ClassificationAction string
const (
	ClassificationActionOpen   ClassificationAction = "open"
	ClassificationActionLaunch ClassificationAction = "launch"
)

type NarrowDownUploadsResult

type NarrowDownUploadsResult struct {
	InitialUploads []*itchio.Upload
	Uploads        []*itchio.Upload
	HadWrongFormat bool
	HadWrongArch   bool
}

func NarrowDownUploads

func NarrowDownUploads(uploads []*itchio.Upload, game *itchio.Game, runtime *Runtime) *NarrowDownUploadsResult

type Platforms

type Platforms struct {
	Linux   bool
	Windows bool
	OSX     bool
	Android bool
}

func PlatformsForGame

func PlatformsForGame(game *itchio.Game) *Platforms

func PlatformsForUpload

func PlatformsForUpload(upload *itchio.Upload) *Platforms

func (*Platforms) ExclusivityScore

func (p *Platforms) ExclusivityScore(rt *Runtime) int64

UploadExclusivityScore returns a higher value the closest an upload is to being *only for this platform*

func (*Platforms) IsCompatible

func (p *Platforms) IsCompatible(rt *Runtime) bool

type Runtime

type Runtime struct {
	Platform butlerd.ItchPlatform `json:"platform"`
	Is64     bool                 `json:"is64"`
}

Runtime describes an os-arch combo in a convenient way

func CurrentRuntime

func CurrentRuntime() *Runtime

func (*Runtime) Arch

func (r *Runtime) Arch() string

Arch returns the architecture in GOARCH format

func (*Runtime) OS

func (r *Runtime) OS() string

OS returns the operating system in GOOS format

func (*Runtime) String

func (r *Runtime) String() string

Jump to

Keyboard shortcuts

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