-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Software is the more generic term. Also gooseBit works in combination with SWUpdate - which has "software" in its name. Issue: #74
- Loading branch information
Showing
44 changed files
with
373 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ The default login credentials for testing are `[email protected]`, `admin`. | |
|
||
## Current Feature Set | ||
|
||
### Firmware repository | ||
### Software repository | ||
|
||
Uploading firmware images through frontend. All files should follow the format `{model}_{revision}_{version}`, where | ||
Uploading software images through frontend. All files should follow the format `{model}_{revision}_{version}`, where | ||
`version` is either a semantic version or a datetime version in the format `YYYYMMDD-HHmmSS`. | ||
|
||
### Automatic device registration | ||
|
@@ -32,25 +32,25 @@ First time a new device connects, its configuration data is requested. `hw_model | |
the configuration data (both fall back to `default` if not provided) which allows to distinguish different device | ||
types and their revisions. | ||
|
||
### Automatically update device to newest firmware | ||
### Automatically update device to newest software | ||
|
||
Once a device is registered it will get the newest available firmware from the repository based on model and revision. | ||
Once a device is registered it will get the newest available software from the repository based on model and revision. | ||
|
||
### Manually update device to specific firmware | ||
### Manually update device to specific software | ||
|
||
Frontend allows to assign specific firmware to be rolled out. | ||
Frontend allows to assign specific software to be rolled out. | ||
|
||
### Firmware rollout | ||
### Software rollout | ||
|
||
Rollouts allow a fine-grained assignment of firmwares to devices. The reported device model and revision is combined | ||
Rollouts allow a fine-grained assignment of software to devices. The reported device model and revision is combined | ||
with the manually set feed value on a device to determine a matching rollout. | ||
|
||
The feed is meant to model either different environments (like: dev, qa, live) or update channels (like. candidate, | ||
fast, stable). | ||
|
||
### Pause updates | ||
|
||
Device can be pinned to its current firmware. | ||
Device can be pinned to its current software. | ||
|
||
### Realtime update logs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ The default login credentials for testing are `[email protected]`, `admin`. | |
|
||
## Current Feature Set | ||
|
||
### Firmware repository | ||
### Software repository | ||
|
||
Uploading firmware images through frontend. All files should follow the format `{model}_{revision}_{version}`, where | ||
Uploading software images through frontend. All files should follow the format `{model}_{revision}_{version}`, where | ||
`version` is either a semantic version or a datetime version in the format `YYYYMMDD-HHmmSS`. | ||
|
||
### Automatic device registration | ||
|
@@ -32,25 +32,25 @@ First time a new device connects, its configuration data is requested. `hw_model | |
the configuration data (both fall back to `default` if not provided) which allows to distinguish different device | ||
types and their revisions. | ||
|
||
### Automatically update device to newest firmware | ||
### Automatically update device to newest software | ||
|
||
Once a device is registered it will get the newest available firmware from the repository based on model and revision. | ||
Once a device is registered it will get the newest available software from the repository based on model and revision. | ||
|
||
### Manually update device to specific firmware | ||
### Manually update device to specific software | ||
|
||
Frontend allows to assign specific firmware to be rolled out. | ||
Frontend allows to assign specific software to be rolled out. | ||
|
||
### Firmware rollout | ||
### Software rollout | ||
|
||
Rollouts allow a fine-grained assignment of firmwares to devices. The reported device model and revision is combined | ||
Rollouts allow a fine-grained assignment of software to devices. The reported device model and revision is combined | ||
with the manually set feed value on a device to determine a matching rollout. | ||
|
||
The feed is meant to model either different environments (like: dev, qa, live) or update channels (like. candidate, | ||
fast, stable). | ||
|
||
### Pause updates | ||
|
||
Device can be pinned to its current firmware. | ||
Device can be pinned to its current software. | ||
|
||
### Realtime update logs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from fastapi import APIRouter | ||
|
||
from . import devices, download, firmware, rollouts | ||
from . import devices, download, rollouts, software | ||
|
||
router = APIRouter(prefix="/v1") | ||
router.include_router(firmware.router) | ||
router.include_router(software.router) | ||
router.include_router(devices.router) | ||
router.include_router(rollouts.router) | ||
router.include_router(download.router) |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
goosebit/api/v1/firmware/requests.py → goosebit/api/v1/software/requests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from pydantic import BaseModel | ||
|
||
|
||
class FirmwareDeleteRequest(BaseModel): | ||
class SoftwareDeleteRequest(BaseModel): | ||
files: list[int] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
import asyncio | ||
|
||
from pydantic import BaseModel | ||
|
||
from goosebit.models import Software | ||
from goosebit.schema.software import SoftwareSchema | ||
|
||
|
||
class SoftwareResponse(BaseModel): | ||
software: list[SoftwareSchema] | ||
|
||
@classmethod | ||
async def convert(cls, software: list[Software]): | ||
return cls(software=await asyncio.gather(*[SoftwareSchema.convert(f) for f in software])) |
Oops, something went wrong.