core-command-go's People
core-command-go's Issues
The Command Path in DeviceService cannot be composed correctly if the Command is read-only (get only)
In device.go, commandByDeviceID function, line 62:
url := d.Service.Addressable.GetBaseURL() + strings.Replace(c.Put.Action.Path, DEVICEIDURLPARAM, d.Id.Hex(), -1)
That will be an issue if the command doesn't have a Put method. If the command is read-only, the path should come from c.Get.Action.Path
Unable to build
AFter a git clone repository and glide install, go install is failing.
$ go install
# github.com/edgexfoundry/core-command-go
./StartCommand.go:51: not enough arguments in call to consulclient.CheckKeyValuePairs
have (*ConfigurationStruct)
want (interface {}, string, []string)
./device.go:29: not enough arguments in call to metadataclients.NewDeviceClient
have ()
want (string)
./device.go:38: d.IsLocked undefined (type models.Device has no field or method IsLocked)
./device.go:44: not enough arguments in call to metadataclients.NewCommandClient
have ()
want (string)
./device.go:53: undefined: issueCommand
./device.go:60: undefined: issueCommand
./device.go:68: not enough arguments in call to metadataclients.NewDeviceClient
have ()
want (string)
./device.go:69: assignment count mismatch: 2 = 1
./device.go:78: not enough arguments in call to metadataclients.NewDeviceClient
have ()
want (string)
./device.go:79: assignment count mismatch: 2 = 1
./device.go:79: too many errors
Go Command using Consul
For California Release - get Go core command configuration into config-seed and have Go command use Consul on initialization
Device Rest Endpoints for Command use models.Device instead of CommandResponse
Command Service outputs tuned Device objects (in the form of CommandResponse objects).
Diff from Device to CommandResponse:
-addressable
, -service
, -profile
+commands as profile.commands
@bullapse
imports context: unrecognized import path "context"
Hi,
I tried to get it with go get command and this error is triggered :
root@seo:/develop/core-command-go# go get github.com/edgexfoundry/core-command-go
package github.com/edgexfoundry/core-command-go
imports github.com/edgexfoundry/consul-client-go
imports github.com/hashicorp/consul/api
imports context: unrecognized import path "context"
my go version is "go1.9.2"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.