Giter Club home page Giter Club logo

Comments (7)

benlemasurier avatar benlemasurier commented on July 23, 2024 1

Absolutely, we're happy to receive pull requests and you're on the right track. REMOTE_PROC_DOMAIN_GET_STATE = 212 is the correct call to receive domain state. You'll need to first make a call too lookup() to obtain the domain, and then pass it along with your call to ProcDomainGetState. Building libvirt with the wireshark libvirt dissector is very useful for debugging.

Good luck!

from go-libvirt.

mdlayher avatar mdlayher commented on July 23, 2024 1

@simar7 we just created #go-qemu on freenode if you're interested in joining us on IRC to discuss this more!

from go-libvirt.

mdlayher avatar mdlayher commented on July 23, 2024

Reopening this issue to track it, until a PR is merged. @simar7 , feel free to ping if you get stuck!

from go-libvirt.

simar7 avatar simar7 commented on July 23, 2024

Thanks guys, will look into this soon.

from go-libvirt.

nemca avatar nemca commented on July 23, 2024

Current state of the domen should be a part of struct Domain or separate method, like:

func (l *Libvirt) DomainState(dom string) (string, error)

?

from go-libvirt.

benlemasurier avatar benlemasurier commented on July 23, 2024

@nemca Yeah, the latter. The current convention is to have methods on the Libvirt type.

from go-libvirt.

nemca avatar nemca commented on July 23, 2024

This issue may be closed. merged PR

from go-libvirt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.