agentapi

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: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetRolloutForDeviceUrl  = "/upgrades"
	ReportDeviceStateUrl    = "/report"
	GetObjectFromPackageUrl = "/products/:product/packages/:package/objects/:object"
)

Variables

This section is empty.

Functions

func SetupRoutes

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

Types

type AgentAPI

type AgentAPI struct {
	// contains filtered or unexported fields
}

func NewAgentAPI

func NewAgentAPI(db *storm.DB) *AgentAPI

func (*AgentAPI) GetObjectFromPackage

func (api *AgentAPI) GetObjectFromPackage(c echo.Context) error

func (*AgentAPI) GetRolloutForDevice

func (api *AgentAPI) GetRolloutForDevice(c echo.Context) error

func (*AgentAPI) ReportDeviceState

func (api *AgentAPI) ReportDeviceState(c echo.Context) error

Jump to

Keyboard shortcuts

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