https://github.com/mrtc0/lxdexec
LXD exec API
https://github.com/mrtc0/lxdexec
go golang lxd
Last synced: 16 days ago
JSON representation
LXD exec API
- Host: GitHub
- URL: https://github.com/mrtc0/lxdexec
- Owner: mrtc0
- License: mit
- Created: 2017-02-12T10:34:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T07:18:36.000Z (almost 8 years ago)
- Last Synced: 2025-04-01T22:05:37.555Z (21 days ago)
- Topics: go, golang, lxd
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lxdexec
LXD Exec API wrapper
# Example
```
_, uuid := lxdexec.ContainerExec('container1', ["echo", "hello"])
lxdexec.Wait(uuid)
_, stdout, stderr := lxdexec.COntainerGetStd('container1', uuid)
fmt.Println(stdout) // => hello
```