handlers

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SymphonyNetworks             = "symphony"
	BaseNetworksPath             = obsidian.V1Root + SymphonyNetworks
	ManageNetworkPath            = BaseNetworksPath + obsidian.UrlSep + ":network_id"
	ManageNetworkNamePath        = ManageNetworkPath + obsidian.UrlSep + "name"
	ManageNetworkDescriptionPath = ManageNetworkPath + obsidian.UrlSep + "description"
	ManageNetworkFeaturesPath    = ManageNetworkPath + obsidian.UrlSep + "features"

	AgentID                       = "agent_id"
	BaseAgentsPath                = ManageNetworkPath + obsidian.UrlSep + "agents"
	ManageAgentPath               = BaseAgentsPath + obsidian.UrlSep + ":agent_id"
	ManageAgentNamePath           = ManageAgentPath + obsidian.UrlSep + "name"
	ManageAgentDescriptionPath    = ManageAgentPath + obsidian.UrlSep + "description"
	ManageAgentConfigPath         = ManageAgentPath + obsidian.UrlSep + "magmad"
	ManageAgentDevicePath         = ManageAgentPath + obsidian.UrlSep + "device"
	ManageAgentStatePath          = ManageAgentPath + obsidian.UrlSep + "status"
	ManageAgentTierPath           = ManageAgentPath + obsidian.UrlSep + "tier"
	ManageAgentManagedDevicesPath = ManageAgentPath + obsidian.UrlSep + "managed_devices"

	DeviceID               = "device_id"
	BaseDevicesPath        = ManageNetworkPath + obsidian.UrlSep + "devices"
	ManageDevicePath       = BaseDevicesPath + obsidian.UrlSep + ":device_id"
	ManageDeviceNamePath   = ManageDevicePath + obsidian.UrlSep + "name"
	ManageDeviceConfigPath = ManageDevicePath + obsidian.UrlSep + "config"
	ManageDeviceAgent      = ManageDevicePath + obsidian.UrlSep + "managing_agent"
	GetDeviceStatePath     = ManageDevicePath + obsidian.UrlSep + "state"
)

Variables

This section is empty.

Functions

func GetAgentDeviceHandlers

func GetAgentDeviceHandlers(path string) []obsidian.Handler

GetAgentDeviceHandlers returns GET and PUT handlers to read and update the device attached to the Agent.

func GetDeviceState

func GetDeviceState(c echo.Context) error

func GetHandlers

func GetHandlers() []obsidian.Handler

GetHandlers returns all obsidian handlers for Symphony

func GetNetworkAndAgentIDs

func GetNetworkAndAgentIDs(c echo.Context) (string, string, *echo.HTTPError)

func GetNetworkAndDeviceIDs

func GetNetworkAndDeviceIDs(c echo.Context) (string, string, *echo.HTTPError)

func GetReadAgentDeviceHandler

func GetReadAgentDeviceHandler(path string) obsidian.Handler

GetReadAgentDeviceHandler returns a GET handler to read the Agent record of the Agent.

func GetUpdateAgentDeviceHandler

func GetUpdateAgentDeviceHandler(path string) obsidian.Handler

GetUpdateAgentDeviceHandler returns a PUT handler to update the Agent record of the Agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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