Skip to content

Go Client: client.AttachConfig has ExecSession field but no way to get it #1301

@futurist

Description

@futurist

What happened?

Want to attach to an exec session like below:

err := c.AttachContainer(ctx, &client.AttachConfig{
			ID:         ID,
			SocketPath: sockPath,
			ExecSession: execSessionID,
})

Here the execSessionID currently cannot get anywhere.

What did you expect to happen?

some public API way to get the execSessionID

How can we reproduce it (as minimally and precisely as possible)?

as question

Anything else we need to know?

No response

conmon-rs version

$ conmonrs --version
# paste output here
version: 0.5.1
tag: none
commit: b90bcd665b5d5b48d925a4c7413e24de295333d3
build: 2023-04-24 06:48:10 +00:00
target: x86_64-unknown-linux-gnu
rustc 1.69.0 (84c898d65 2023-04-16)
cargo 1.69.0 (6e9a83356 2023-04-12)

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

$ uname -a
# paste output here
Linux n227-026-119 4.19.117.bsk.6-amd64 #4.19.117.bsk.6 SMP Debian 4.19.117.bsk.6 Mon Jan 4 07:25:51 UTC x86_64 GNU/Linux

Additional environment details (AWS, VirtualBox, physical, etc.)

physical

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions