rpcCheckUpdateComponents checks the update status for the given components
(params updateParams, includePreRelease bool)
| 168 | |
| 169 | // rpcCheckUpdateComponents checks the update status for the given components |
| 170 | func rpcCheckUpdateComponents(params updateParams, includePreRelease bool) (*ota.UpdateStatus, error) { |
| 171 | updateParams := ota.UpdateParams{ |
| 172 | DeviceID: GetDeviceID(), |
| 173 | SKU: GetDeviceSKU(), |
| 174 | IncludePreRelease: includePreRelease, |
| 175 | Components: params.Components, |
| 176 | } |
| 177 | info, err := otaState.GetUpdateStatus(context.Background(), updateParams) |
| 178 | if err != nil { |
| 179 | return nil, fmt.Errorf("failed to check update: %w", err) |
| 180 | } |
| 181 | return info, nil |
| 182 | } |
| 183 | |
| 184 | func rpcTryUpdateComponents(params updateParams, includePreRelease bool, resetConfig bool) error { |
| 185 | updateParams := ota.UpdateParams{ |
nothing calls this directly
no test coverage detected