Skip to content

add bidirectional console RPC support - #291

Merged
connorkuehl merged 2 commits into
mainfrom
mpontillo/bidirectional-console
Jun 9, 2026
Merged

add bidirectional console RPC support#291
connorkuehl merged 2 commits into
mainfrom
mpontillo/bidirectional-console

Conversation

@mpontillo

Copy link
Copy Markdown
Contributor

Because the DomainOpenConsole() RPC is only annotated only with @readstream, go-libvirt does not generate a an io.Writer for callers to use. Add a special case which results in a DomainOpenConsoleBidirectional to also be written.

mpontillo added 2 commits June 9, 2026 10:17
The DomainOpenConsole RPC method is generated only with a read stream,
even though it actually supports writing.

Add a special case to allow go-libvirt users to utilize the write
stream. Continue to generate the existing method as-is to avoid breaking
API compatibility.
@mpontillo
mpontillo requested a review from a team as a code owner June 9, 2026 14:23

@DulioCagg DulioCagg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I don't understand very well this code, but it LGTM

@connorkuehl
connorkuehl merged commit 6254771 into main Jun 9, 2026
5 checks passed
@mpontillo
mpontillo deleted the mpontillo/bidirectional-console branch June 9, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants