webapi

package
v0.0.0-...-b374e21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

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

func SetupRoutes(e *echo.Group, db *storm.DB)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL