gapps

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePackageParts

func ParsePackageParts(args []string) (Platform, Android, Variant, error)

ParsePackageParts helps to parse package info args into proper parts

Types

type Android

type Android uint

Android is an enum for different Android versions

const (
	Android44 Android = iota
	Android50
	Android51
	Android60
	Android70
	Android71
	Android80
	Android81
	Android90
	Android100
	Android110
)

Android consts

func AndroidString

func AndroidString(s string) (Android, error)

AndroidString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func AndroidValues

func AndroidValues() []Android

AndroidValues returns all values of the enum

func (Android) HumanString added in v1.1.0

func (a Android) HumanString() string

HumanString is required for human-readable Android version with . delimiter

func (Android) IsAAndroid

func (i Android) IsAAndroid() bool

IsAAndroid returns "true" if the value is listed in the enum definition. "false" otherwise

func (Android) MarshalJSON

func (i Android) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Android

func (Android) String

func (i Android) String() string

func (*Android) UnmarshalJSON

func (i *Android) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Android

type Platform

type Platform uint

Platform is an enum for different chip architectures

const (
	PlatformArm Platform = iota
	PlatformArm64
	PlatformX86
	PlatformX86_64
)

Platform consts

func PlatformString

func PlatformString(s string) (Platform, error)

PlatformString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func PlatformValues

func PlatformValues() []Platform

PlatformValues returns all values of the enum

func (Platform) IsAPlatform

func (i Platform) IsAPlatform() bool

IsAPlatform returns "true" if the value is listed in the enum definition. "false" otherwise

func (Platform) MarshalJSON

func (i Platform) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Platform

func (Platform) String

func (i Platform) String() string

func (*Platform) UnmarshalJSON

func (i *Platform) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Platform

type Variant

type Variant uint

Variant is an enum for different package variations

const (
	VariantTvstock Variant = iota
	VariantPico
	VariantNano
	VariantMicro
	VariantMini
	VariantFull
	VariantStock
	VariantSuper
	VariantAroma
	VariantTvmini
)

Variant consts

func VariantString

func VariantString(s string) (Variant, error)

VariantString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func VariantValues

func VariantValues() []Variant

VariantValues returns all values of the enum

func (Variant) IsAVariant

func (i Variant) IsAVariant() bool

IsAVariant returns "true" if the value is listed in the enum definition. "false" otherwise

func (Variant) MarshalJSON

func (i Variant) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Variant

func (Variant) String

func (i Variant) String() string

func (*Variant) UnmarshalJSON

func (i *Variant) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Variant

Jump to

Keyboard shortcuts

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