Skip to content

Commit d012afa

Browse files
authored
Merge pull request digitalocean#137 from digitalocean/mdl-mv-qemu
qemu: move to go-qemu/qemu, update documentation
2 parents 35c517f + ecb0f4a commit d012afa

File tree

14 files changed

+27
-8
lines changed

14 files changed

+27
-8
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
qemu [![GoDoc](http://godoc.org/github.com/digitalocean/go-qemu?status.svg)](http://godoc.org/github.com/digitalocean/go-qemu) [![Build Status](https://travis-ci.org/digitalocean/go-qemu.svg?branch=master)](https://travis-ci.org/digitalocean/go-qemu) [![Report Card](https://goreportcard.com/badge/github.com/digitalocean/go-qemu)](https://goreportcard.com/report/github.com/digitalocean/go-qemu)
2-
====
1+
go-qemu [![GoDoc](http://godoc.org/github.com/digitalocean/go-qemu?status.svg)](http://godoc.org/github.com/digitalocean/go-qemu) [![Build Status](https://travis-ci.org/digitalocean/go-qemu.svg?branch=master)](https://travis-ci.org/digitalocean/go-qemu) [![Report Card](https://goreportcard.com/badge/github.com/digitalocean/go-qemu)](https://goreportcard.com/report/github.com/digitalocean/go-qemu)
2+
=======
33

4-
Package `qemu` provides an interface for interacting with running QEMU instances.
4+
`go-qemu` is a collection of Go packages for interacting with running QEMU
5+
instances. Apache 2.0 Licensed.
56

67
Feel free to join us in [`#go-qemu` on freenode](https://webchat.freenode.net/)
78
if you'd like to discuss the project.
89

10+
Overview
11+
--------
12+
13+
Here is a quick overview of each top-level package, and what they can be used for:
14+
15+
- `hypervisor`: Package hypervisor provides management facilities for one or
16+
more QEMU virtual machines on a hypervisor.
17+
- Provides easier access for managing groups of VMs than the `qemu` package.
18+
- Provides access to individual `qemu.Domain` types.
19+
- `qemu`: Package qemu provides an interface for interacting with running QEMU instances.
20+
- Typically used for managing a single VM.
21+
- Good for quick experiments.
22+
- `qmp`: Package qmp enables interaction with QEMU instances via the QEMU Machine
23+
Protocol (QMP).
24+
- Typically not used by consumers outside of this repository.
25+
- Wraps code-generated types with friendlier APIs.
26+
927
Details
1028
-------
1129

examples/domain_details/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"net"
2222
"time"
2323

24-
qemu "github.com/digitalocean/go-qemu"
24+
"github.com/digitalocean/go-qemu/qemu"
2525
"github.com/digitalocean/go-qemu/qmp"
2626
)
2727

hypervisor/hypervisor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package hypervisor
1919
import (
2020
"fmt"
2121

22-
"github.com/digitalocean/go-qemu"
22+
"github.com/digitalocean/go-qemu/qemu"
2323
"github.com/digitalocean/go-qemu/qmp"
2424
)
2525

File renamed without changes.
File renamed without changes.
File renamed without changes.

domain.go renamed to qemu/domain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package qemu
1717

1818
//go:generate stringer -type=Status -output=string.gen.go
19-
//go:generate ./scripts/prependlicense.sh string.gen.go
19+
//go:generate ../scripts/prependlicense.sh string.gen.go
2020

2121
import (
2222
"encoding/json"
File renamed without changes.

example_test.go renamed to qemu/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"fmt"
1919
"log"
2020

21-
"github.com/digitalocean/go-qemu"
21+
"github.com/digitalocean/go-qemu/qemu"
2222
"github.com/digitalocean/go-qemu/qmp"
2323
"github.com/digitalocean/go-qemu/qmp/qmptest"
2424
)
File renamed without changes.

0 commit comments

Comments
 (0)