Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCodenames = []Codename{ Flame, Coral, Sunfish, Bramble, Redfin, Barbet, Oriole, Raven, }
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 ¶
Types ¶
type DownloadType ¶
type DownloadType uint8
const ( Factory DownloadType = iota // factory OTA // OTA )
func (DownloadType) String ¶
func (i DownloadType) 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()
Click to show internal directories.
Click to hide internal directories.