remotecheck

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when an app is not found
	ErrNotFound = errors.New("app not found")
)

Functions

func Init

func Init() error

Init loads the list of reported app Arm from Does it ARM.

Types

type AppInfo

type AppInfo struct {
	Website    string
	ArmSupport Support
}

AppInfo represents the basic information of an app obtained from remote sources

func GetInfo

func GetInfo(name string) (AppInfo, error)

GetInfo returns the info of an app from remote sources

type Support

type Support uint

Support represents the Arm support status of an app

const (
	// SupportUndefined is the zero value of Support type
	SupportUndefined Support = iota // zero value
	// SupportNative means an app have native Apple Silicon support
	SupportNative
	// SupportTransition means an app is supported vis Rosetta 2 or Virtual Environment
	SupportTransition
	// SupportInDevelopment means an app does not support Apple Silicon yet but the support is in development
	SupportInDevelopment
	// SupportNotYet means an app does not support Apple Silicon
	SupportNotYet
	// SupportUnknown means it's not known if an app supports Apple Silicon
	SupportUnknown
)

func (*Support) Parse

func (s *Support) Parse(str string) Support

Parse parses support information from string.

func (Support) String

func (s Support) String() string

Jump to

Keyboard shortcuts

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