skydive icon indicating copy to clipboard operation
skydive copied to clipboard

Go client for skydive APIs

Open adrianlzt opened this issue 5 years ago • 5 comments

I am trying to use the skydive lib as the client to connect to the APIs, as do the python skydive-client.

The go get command fails to download skydive:

✦ ➜ go mod init test.com/skydive
go: creating new go.mod: module test.com/skydive
✦ ➜ go get github.com/skydive-project/skydive
go: github.com/skydive-project/skydive upgrade => v0.26.0
go get: github.com/skydive-project/[email protected] requires
        k8s.io/[email protected]: reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

Once this working. Which client should be used?

Websocket?

API REST client? This one looks appropiate, but it is not clear where to put the config.

adrianlzt avatar May 07 '20 08:05 adrianlzt

Is it possible to modify the topology using the REST API?

adrianlzt avatar May 07 '20 09:05 adrianlzt

It's now possible thanks to this PR : https://github.com/skydive-project/skydive/pull/2139

You should be able to use PUT on /api/node and /api/edge

lebauce avatar May 14 '20 16:05 lebauce

We do not really use the REST API from Go in Skydive (we mostly use WebSocket) except in our tests : https://github.com/skydive-project/skydive/blob/master/tests/tests.go#L487

lebauce avatar May 14 '20 16:05 lebauce

Ok great. I leave the issue open as it is still not possible to use github.com/skydive-project/skydive as a module

adrianlzt avatar May 18 '20 15:05 adrianlzt

Now that graffiti is completely separated into its own go module with its own go.mod, you should be able to go get it. If so, could we close this one ?

lebauce avatar Dec 27 '20 10:12 lebauce