pixelimagedl

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllDeviceNames = []string{
	Pixel4.String(),
	Pixel4XL.String(),
	Pixel4a.String(),
	Pixel4a5G.String(),
	Pixel5.String(),
	Pixel5a.String(),
	Pixel6.String(),
	Pixel6Pro.String(),
	Flame.String(),
	Coral.String(),
	Sunfish.String(),
	Bramble.String(),
	Redfin.String(),
	Barbet.String(),
	Oriole.String(),
	Raven.String(),
}

Functions

func DownloadLatest

func DownloadLatest(ctx context.Context, device Pixel, downloadType DownloadType, outDir string) error

Types

type Codename

type Codename uint
const (
	UnknownCodename Codename = iota // unknown
	Flame                           // flame
	Coral                           // coral
	Sunfish                         // sunfish
	Bramble                         // bramble
	Redfin                          // redfin
	Barbet                          // barbet
	Oriole                          // oriole
	Raven                           // raven
)

func (Codename) String

func (i Codename) String() string

type DownloadType

type DownloadType uint8
const (
	Factory DownloadType = iota // factory
	OTA                         // OTA
)

func (DownloadType) String

func (i DownloadType) String() string

type Pixel

type Pixel uint
const (
	UnknownDevice Pixel = iota // unknown
	Pixel4                     // Pixel 4
	Pixel4XL                   // Pixel 4 XL
	Pixel4a                    // Pixel 4a
	Pixel4a5G                  // Pixel 4a 5G
	Pixel5                     // Pixel 5
	Pixel5a                    // Pixel 5a
	Pixel6                     // Pixel 6
	Pixel6Pro                  // Pixel 6 Pro
)

func DeviceFromCodename

func DeviceFromCodename(c Codename) Pixel

func (Pixel) String

func (i Pixel) String() string

type PixelImage

type PixelImage struct {
	Version      string `json:"version" yaml:"version" pp:"version"`
	BuildNumber  string `json:"build_number" yaml:"build_number" pp:"build_number"`
	BuildDate    string `json:"build_date" yaml:"build_date" pp:"build_date"`
	BuildComment string `json:"build_comment,omitempty" yaml:"build_comment,omitempty" pp:"build_comment,omitempty"`
	DownloadURI  string `json:"download_uri" yaml:"download_uri" pp:"download_uri"`
	SHA256Sum    string `json:"sha256_sum" yaml:"sha256_sum" pp:"sha256_sum"`
}

func ListDeviceImages

func ListDeviceImages(ctx context.Context, device Pixel, downloadType DownloadType) ([]PixelImage, error)

func (PixelImage) PrettyPrint

func (f PixelImage) PrettyPrint()

Jump to

Keyboard shortcuts

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