Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Forward hyperstart response to clients#83

Merged
dlespiau merged 5 commits intoclearcontainers:masterfrom
dlespiau:20170531-hyperstart-response
Jun 26, 2017
Merged

Forward hyperstart response to clients#83
dlespiau merged 5 commits intoclearcontainers:masterfrom
dlespiau:20170531-hyperstart-response

Conversation

@dlespiau
Copy link
Copy Markdown
Contributor

Until now, hyperstart was never sending data along with the response to commands we cared about. Julio wants to add a ps message that will send some data back though, so let's support that.

We can probably do nice things in the new agent with this as well

Damien Lespiau added 5 commits June 24, 2017 19:35
This comment if from a time this type was prefixed with "proto", this is
not the case any more.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Until now, we could only return JSON payloads and AddResult only allowed
to key (key, JSON snippet) pairs.

SetData can now be used to specify the full payload to send back to the
client.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
We didn't have the need for response data until now. We were only
receiving Ok/NotOk messages back from the agent.

We'll need this for the new PS command Julio wants to implement.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
We can now receive data as part of the hyperstart response and we
forward it to clients.

Fixes: clearcontainers#72
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
It seems that gofmt now removes the space before this string
concatenation. So be it.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 24, 2017

Coverage Status

Coverage increased (+0.3%) to 75.135% when pulling 5a4ea04 on dlespiau:20170531-hyperstart-response into 5f49b59 on clearcontainers:master.

@jodh-intel
Copy link
Copy Markdown

jodh-intel commented Jun 26, 2017

lgtm

Approved with PullApprove

@sameo
Copy link
Copy Markdown

sameo commented Jun 26, 2017

LGTM

Approved with PullApprove Approved with PullApprove

@jodh-intel
Copy link
Copy Markdown

Related: clearcontainers/runtime#95

@dlespiau dlespiau merged commit 61f151b into clearcontainers:master Jun 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants