Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRecord ¶
type APIRecord struct {
VariantList []string `json:"variants"`
}
APIRecord holds all of the gapps Variants
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application holds all the services and config
type ArchRecord ¶
ArchRecord holds the list of gapps Variants per API and its date
type DownloadResponse ¶
type DownloadResponse struct { ZIP string `json:"zip,omitempty"` ZIPMirrors string `json:"zip_mirrors,omitempty"` MD5 string `json:"md5,omitempty"` VersionInfo string `json:"version_info,omitempty"` SourceReport string `json:"source_report,omitempty"` Error string `json:"error,omitempty"` // contains filtered or unexported fields }
DownloadResponse is used for the /download endpoint
func (*DownloadResponse) HasCriticalError ¶
func (r *DownloadResponse) HasCriticalError() bool
HasCriticalError reports if we had an error which lead to the missing link
func (*DownloadResponse) SetField ¶
func (r *DownloadResponse) SetField(field, value string)
SetField safely sets the field value
func (*DownloadResponse) ToJSON ¶
func (r *DownloadResponse) ToJSON() []byte
ToJSON forms JSON body from a struct, ignoring Marshal error
type LatestRelease ¶
type LatestRelease struct { Arch string `json:"arch"` Date string `json:"date"` Assets []ReleaseAsset `json:"assets"` }
LatestRelease describes the latest gapps release
type ListResponse ¶
type ListResponse struct { ArchList map[string]ArchRecord `json:"archs,omitempty"` Error string `json:"error,omitempty"` // contains filtered or unexported fields }
ListResponse is used for the /list endpoint
func (*ListResponse) AddPackage ¶
AddPackage safely adds the package to the ListResponse
func (*ListResponse) ToJSON ¶
func (r *ListResponse) ToJSON() []byte
ToJSON forms JSON body from a struct, ignoring Marshal error
type ReleaseAsset ¶
ReleaseAsset describes the gapps release for API and its available variants