Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateServiceAccount(account *svcAccountTY.ServiceAccount) (*svcAccountTY.CreateAccountResponse, error)
- func (c *Client) DeleteBackup(items ...string) error
- func (c *Client) DeleteDataRepository(nodes ...string) error
- func (c *Client) DeleteField(nodes ...string) error
- func (c *Client) DeleteFirmware(nodes ...string) error
- func (c *Client) DeleteForwardPayload(items ...string) error
- func (c *Client) DeleteGateway(items ...string) error
- func (c *Client) DeleteHandler(items ...string) error
- func (c *Client) DeleteNode(nodes ...string) error
- func (c *Client) DeletePolicy(items ...string) error
- func (c *Client) DeleteSchedule(items ...string) error
- func (c *Client) DeleteServiceAccount(items ...string) error
- func (c *Client) DeleteSource(nodes ...string) error
- func (c *Client) DeleteTask(items ...string) error
- func (c *Client) DeleteUser(items ...string) error
- func (c *Client) DeleteVirtualAssistant(items ...string) error
- func (c *Client) DeleteVirtualDevice(items ...string) error
- func (c *Client) DisableGateway(items ...string) error
- func (c *Client) DisableHandler(items ...string) error
- func (c *Client) DisableSchedule(items ...string) error
- func (c *Client) DisableTask(items ...string) error
- func (c *Client) DisableUser(selectors ...string) error
- func (c *Client) DisableVirtualAssistant(items ...string) error
- func (c *Client) DisableVirtualDevice(items ...string) error
- func (c *Client) EnableGateway(items ...string) error
- func (c *Client) EnableHandler(items ...string) error
- func (c *Client) EnableSchedule(items ...string) error
- func (c *Client) EnableTask(items ...string) error
- func (c *Client) EnableUser(selectors ...string) error
- func (c *Client) EnableVirtualAssistant(items ...string) error
- func (c *Client) EnableVirtualDevice(items ...string) error
- func (c *Client) ExecuteAction(actions []webHandlerTY.ActionConfig) error
- func (c *Client) ExecuteGatewayAction(action string, ids []string) error
- func (c *Client) ExecuteNodeAction(action string, ids []string) error
- func (c *Client) FindDataRepository(id string) (*dataRepoTY.Config, error)
- func (c *Client) FindField(id, gatewayID, nodeID, sourceID, fieldID string) (*fieldTY.Field, error)
- func (c *Client) FindFirmware(id string) (*firmwareTY.Firmware, error)
- func (c *Client) FindGateway(id string) (*gwTY.Config, error)
- func (c *Client) FindNode(id, gatewayID, nodeID string) (*nodeTY.Node, error)
- func (c *Client) FindPolicy(id string) (*policyTY.Policy, error)
- func (c *Client) FindServiceAccount(id, name, userRef string) (*svcAccountTY.ServiceAccount, error)
- func (c *Client) FindServiceAccounts(name, userRef string) ([]svcAccountTY.ServiceAccount, error)
- func (c *Client) FindSource(id, gatewayID, nodeID, sourceID string) (*sourceTY.Source, error)
- func (c *Client) FindUser(id, username string) (*userTY.User, error)
- func (c *Client) GetField(id string) (*fieldTY.Field, error)
- func (c *Client) GetNode(id string) (*nodeTY.Node, error)
- func (c *Client) GetProfile() (*userTY.User, error)
- func (c *Client) GetServerVersion() (*version.Version, error)
- func (c *Client) GetSource(id string) (*sourceTY.Source, error)
- func (c *Client) GetSystemSettings() (*settingsTY.Settings, error)
- func (c *Client) ListBackup(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListDataRepository(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListField(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListFirmware(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListForwardPayload(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListGateway(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListHandler(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListNode(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListPolicy(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListSchedule(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListServiceAccount(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListSource(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListTask(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListUser(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListVirtualAssistant(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) ListVirtualDevice(queryParams map[string]interface{}) (*storageTY.Result, error)
- func (c *Client) Login(username, password, token, expiresIn string) (*handlerTY.JwtTokenResponse, error)
- func (c *Client) MergeSystemSettings(overlay map[string]interface{}) error
- func (c *Client) ReloadGateway(items ...string) error
- func (c *Client) ReloadVirtualAssistant(items ...string) error
- func (c *Client) ResolveGatewayIDs(selectors []string, requireEnabled bool) ([]string, error)
- func (c *Client) ResolveNodeIDs(selectors []string) ([]string, error)
- func (c *Client) ResolveServiceAccountIDs(selectors []string, userRef string) ([]string, error)
- func (c *Client) ResolveUserIDs(selectors []string) ([]string, error)
- func (c *Client) SaveDataRepository(item *dataRepoTY.Config) error
- func (c *Client) SaveField(field *fieldTY.Field) error
- func (c *Client) SaveFirmware(firmware *firmwareTY.Firmware) error
- func (c *Client) SaveGateway(gateway *gwTY.Config) error
- func (c *Client) SaveNode(node *nodeTY.Node) error
- func (c *Client) SavePolicy(policy *policyTY.Policy) error
- func (c *Client) SaveSource(source *sourceTY.Source) error
- func (c *Client) SaveUser(update *userTY.UserAdminUpdate) error
- func (c *Client) SetResourcePath(kind, selector, keyPath, value string, rawText bool) error
- func (c *Client) SetSystemSettingsPath(keyPath, value string, rawText bool) error
- func (c *Client) UpdateServiceAccount(account *svcAccountTY.ServiceAccount) error
- func (c *Client) UpdateSettings(settings *settingsTY.Settings) error
- func (c *Client) UploadFirmware(id, filename string) error
Constants ¶
View Source
const ( API_LOGIN = "/api/user/login" API_VERSION = "/api/version" API_STATUS = "/api/status" API_GATEWAY_LIST = "/api/gateway" API_GATEWAY_ENABLE = "/api/gateway/enable" API_GATEWAY_DISABLE = "/api/gateway/disable" API_GATEWAY_RELOAD = "/api/gateway/reload" API_GATEWAY_DELETE = "/api/gateway" API_NODE_LIST = "/api/node" API_NODE_DELETE = "/api/node" API_ACTION = "/api/action" API_ACTION_NODE = "/api/action/node" API_ACTION_GATEWAY = "/api/action/gateway" API_FIELD_LIST = "/api/field" API_FIELD_DELETE = "/api/field" API_SOURCE_LIST = "/api/source" API_SOURCE_DELETE = "/api/source" API_FIRMWARE_LIST = "/api/firmware" API_FIRMWARE_DELETE = "/api/firmware" API_FIRMWARE_UPLOAD = "/api/firmware/upload" API_DATA_REPOSITORY_LIST = "/api/datarepository" API_DATA_REPOSITORY_DELETE = "/api/datarepository" API_VIRTUAL_DEVICE_LIST = "/api/virtualdevice" API_VIRTUAL_DEVICE_ENABLE = "/api/virtualdevice/enable" API_VIRTUAL_DEVICE_DISABLE = "/api/virtualdevice/disable" API_VIRTUAL_DEVICE_DELETE = "/api/virtualdevice" API_VIRTUAL_ASSISTANT_LIST = "/api/virtualassistant" API_VIRTUAL_ASSISTANT_ENABLE = "/api/virtualassistant/enable" API_VIRTUAL_ASSISTANT_DISABLE = "/api/virtualassistant/disable" API_VIRTUAL_ASSISTANT_RELOAD = "/api/virtualassistant/reload" API_VIRTUAL_ASSISTANT_DELETE = "/api/virtualassistant" API_TASK_LIST = "/api/task" API_TASK_ENABLE = "/api/task/enable" API_TASK_DISABLE = "/api/task/disable" API_TASK_DELETE = "/api/task" API_SCHEDULE_LIST = "/api/schedule" API_SCHEDULE_ENABLE = "/api/schedule/enable" API_SCHEDULE_DISABLE = "/api/schedule/disable" API_SCHEDULE_DELETE = "/api/schedule" API_HANDLER_LIST = "/api/handler" API_HANDLER_ENABLE = "/api/handler/enable" API_HANDLER_DISABLE = "/api/handler/disable" API_HANDLER_DELETE = "/api/handler" API_FORWARD_PAYLOAD_LIST = "/api/forwardpayload" API_FORWARD_PAYLOAD_DELETE = "/api/forwardpayload" API_BACKUP_LIST = "/api/backup" API_BACKUP_DELETE = "/api/backup" API_SETTINGS = "/api/settings" API_SETTINGS_SYSTEM = "/api/settings/system" API_USER_LIST = "/api/user" API_USER_DELETE = "/api/user" API_USER_PROFILE = "/api/user/profile" API_POLICY_LIST = "/api/policy" API_POLICY_DELETE = "/api/policy" API_SERVICE_ACCOUNT_LIST = "/api/serviceaccount" API_SERVICE_ACCOUNT_CREATE = "/api/serviceaccount/create" API_SERVICE_ACCOUNT_UPDATE = "/api/serviceaccount/update" API_SERVICE_ACCOUNT_DELETE = "/api/serviceaccount" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateServiceAccount ¶ added in v2.2.0
func (c *Client) CreateServiceAccount(account *svcAccountTY.ServiceAccount) (*svcAccountTY.CreateAccountResponse, error)
func (*Client) DeleteBackup ¶
func (*Client) DeleteDataRepository ¶
func (*Client) DeleteField ¶
func (*Client) DeleteFirmware ¶
func (*Client) DeleteForwardPayload ¶
func (*Client) DeleteGateway ¶
func (*Client) DeleteHandler ¶
func (*Client) DeleteNode ¶
func (*Client) DeletePolicy ¶ added in v2.2.0
func (*Client) DeleteSchedule ¶
func (*Client) DeleteServiceAccount ¶ added in v2.2.0
func (*Client) DeleteSource ¶
func (*Client) DeleteTask ¶
func (*Client) DeleteUser ¶ added in v2.2.0
func (*Client) DeleteVirtualAssistant ¶
func (*Client) DeleteVirtualDevice ¶
func (*Client) DisableGateway ¶
func (*Client) DisableHandler ¶
func (*Client) DisableSchedule ¶
func (*Client) DisableTask ¶
func (*Client) DisableUser ¶ added in v2.2.0
func (*Client) DisableVirtualAssistant ¶
func (*Client) DisableVirtualDevice ¶
func (*Client) EnableGateway ¶
func (*Client) EnableHandler ¶
func (*Client) EnableSchedule ¶
func (*Client) EnableTask ¶
func (*Client) EnableUser ¶ added in v2.2.0
func (*Client) EnableVirtualAssistant ¶
func (*Client) EnableVirtualDevice ¶
func (*Client) ExecuteAction ¶
func (c *Client) ExecuteAction(actions []webHandlerTY.ActionConfig) error
func (*Client) ExecuteGatewayAction ¶ added in v2.2.0
func (*Client) ExecuteNodeAction ¶
func (*Client) FindDataRepository ¶ added in v2.2.0
func (c *Client) FindDataRepository(id string) (*dataRepoTY.Config, error)
func (*Client) FindFirmware ¶ added in v2.2.0
func (c *Client) FindFirmware(id string) (*firmwareTY.Firmware, error)
func (*Client) FindGateway ¶ added in v2.2.0
func (*Client) FindPolicy ¶ added in v2.2.0
func (*Client) FindServiceAccount ¶ added in v2.2.0
func (c *Client) FindServiceAccount(id, name, userRef string) (*svcAccountTY.ServiceAccount, error)
func (*Client) FindServiceAccounts ¶ added in v2.2.0
func (c *Client) FindServiceAccounts(name, userRef string) ([]svcAccountTY.ServiceAccount, error)
func (*Client) FindSource ¶ added in v2.2.0
func (*Client) GetSystemSettings ¶ added in v2.2.0
func (c *Client) GetSystemSettings() (*settingsTY.Settings, error)
func (*Client) ListBackup ¶
func (*Client) ListDataRepository ¶
func (*Client) ListFirmware ¶
func (*Client) ListForwardPayload ¶
func (*Client) ListGateway ¶
func (*Client) ListHandler ¶
func (*Client) ListPolicy ¶ added in v2.2.0
func (*Client) ListSchedule ¶
func (*Client) ListServiceAccount ¶ added in v2.2.0
func (*Client) ListSource ¶
func (*Client) ListVirtualAssistant ¶
func (*Client) ListVirtualDevice ¶
func (*Client) Login ¶
func (c *Client) Login(username, password, token, expiresIn string) (*handlerTY.JwtTokenResponse, error)
func (*Client) MergeSystemSettings ¶ added in v2.2.0
func (*Client) ReloadGateway ¶
func (*Client) ReloadVirtualAssistant ¶
func (*Client) ResolveGatewayIDs ¶ added in v2.2.0
func (*Client) ResolveNodeIDs ¶ added in v2.2.0
func (*Client) ResolveServiceAccountIDs ¶ added in v2.2.0
func (*Client) ResolveUserIDs ¶ added in v2.2.0
func (*Client) SaveDataRepository ¶ added in v2.2.0
func (c *Client) SaveDataRepository(item *dataRepoTY.Config) error
func (*Client) SaveFirmware ¶ added in v2.2.0
func (c *Client) SaveFirmware(firmware *firmwareTY.Firmware) error
func (*Client) SaveGateway ¶ added in v2.2.0
func (*Client) SavePolicy ¶ added in v2.2.0
func (*Client) SaveSource ¶ added in v2.2.0
func (*Client) SaveUser ¶ added in v2.2.0
func (c *Client) SaveUser(update *userTY.UserAdminUpdate) error
func (*Client) SetResourcePath ¶ added in v2.2.0
SetResourcePath loads a resource, sets a dotted JSON path, and saves it.
func (*Client) SetSystemSettingsPath ¶ added in v2.2.0
func (*Client) UpdateServiceAccount ¶ added in v2.2.0
func (c *Client) UpdateServiceAccount(account *svcAccountTY.ServiceAccount) error
func (*Client) UpdateSettings ¶ added in v2.2.0
func (c *Client) UpdateSettings(settings *settingsTY.Settings) error
func (*Client) UploadFirmware ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.