Documentation ¶
Index ¶
- Constants
- func SetupRoutes(e *echo.Group, db *storm.DB)
- type DevicesAPI
- type PackagesAPI
- type RolloutsAPI
- func (api *RolloutsAPI) CreateRollout(c echo.Context) error
- func (api *RolloutsAPI) GetAllRollouts(c echo.Context) error
- func (api *RolloutsAPI) GetRollout(c echo.Context) error
- func (api *RolloutsAPI) GetRolloutDevices(c echo.Context) error
- func (api *RolloutsAPI) GetRolloutStatistics(c echo.Context) error
- func (api *RolloutsAPI) StopRollout(c echo.Context) error
Constants ¶
View Source
const ( GetAllDevicesUrl = "/devices" GetDeviceUrl = "/devices/:uid" GetDeviceRolloutReportsUrl = "/devices/:uid/rollouts/:id/reports" )
View Source
const ( GetAllPackagesUrl = "/packages" GetPackageUrl = "/packages/:uid" UploadPackageUrl = "/packages" DeletePackageUrl = "/packages/:uid/delete" )
View Source
const ( GetAllRolloutsUrl = "/rollouts" GetRolloutUrl = "/rollouts/:id" GetRolloutStatisticsUrl = "/rollouts/:id/statistics" GetRolloutDevicesUrl = "/rollouts/:id/devices" CreateRolloutUrl = "/rollouts" StopRolloutUrl = "/rollouts/:id/stop" )
Variables ¶
This section is empty.
Functions ¶
func SetupRoutes ¶
Types ¶
type DevicesAPI ¶
type DevicesAPI struct {
// contains filtered or unexported fields
}
func NewDevicesAPI ¶
func NewDevicesAPI(db *storm.DB) *DevicesAPI
func (*DevicesAPI) GetAllDevices ¶
func (api *DevicesAPI) GetAllDevices(c echo.Context) error
func (*DevicesAPI) GetDevice ¶
func (api *DevicesAPI) GetDevice(c echo.Context) error
func (*DevicesAPI) GetDeviceRolloutReports ¶
func (api *DevicesAPI) GetDeviceRolloutReports(c echo.Context) error
type PackagesAPI ¶
type PackagesAPI struct {
// contains filtered or unexported fields
}
func NewPackagesAPI ¶
func NewPackagesAPI(db *storm.DB, dir string) *PackagesAPI
func (*PackagesAPI) DeletePackage ¶
func (api *PackagesAPI) DeletePackage(c echo.Context) error
func (*PackagesAPI) GetAllPackages ¶
func (api *PackagesAPI) GetAllPackages(c echo.Context) error
func (*PackagesAPI) GetPackage ¶
func (api *PackagesAPI) GetPackage(c echo.Context) error
func (*PackagesAPI) UploadPackage ¶
func (api *PackagesAPI) UploadPackage(c echo.Context) error
type RolloutsAPI ¶
type RolloutsAPI struct {
// contains filtered or unexported fields
}
func NewRolloutsAPI ¶
func NewRolloutsAPI(db *storm.DB) *RolloutsAPI
func (*RolloutsAPI) CreateRollout ¶
func (api *RolloutsAPI) CreateRollout(c echo.Context) error
func (*RolloutsAPI) GetAllRollouts ¶
func (api *RolloutsAPI) GetAllRollouts(c echo.Context) error
func (*RolloutsAPI) GetRollout ¶
func (api *RolloutsAPI) GetRollout(c echo.Context) error
func (*RolloutsAPI) GetRolloutDevices ¶
func (api *RolloutsAPI) GetRolloutDevices(c echo.Context) error
func (*RolloutsAPI) GetRolloutStatistics ¶
func (api *RolloutsAPI) GetRolloutStatistics(c echo.Context) error
func (*RolloutsAPI) StopRollout ¶
func (api *RolloutsAPI) StopRollout(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.