Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
osprepare: be more explicit for go vet
Browse files Browse the repository at this point in the history
Go vet wants field keys.  It is nice in that it's more obviously
self-documenting code.  To that end I also add a comment to
ciao-scheduler/deps.go to inline note no known dep's.

Signed-off-by: Tim Pepper <[email protected]>
  • Loading branch information
Tim Pepper committed Aug 26, 2016
1 parent 143e19f commit 6b115b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
6 changes: 3 additions & 3 deletions ciao-controller/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import "github.com/01org/ciao/osprepare"
var controllerDeps = osprepare.PackageRequirements{
/* sqlite3 is not strictly required, but useful for debug */
"clearlinux": {
{"/usr/bin/sqlite3", "cloud-control"},
{BinaryName: "/usr/bin/sqlite3", PackageName: "cloud-control"},
},
"fedora": {
{"/usr/bin/sqlite3", "sqlite"},
{BinaryName: "/usr/bin/sqlite3", PackageName: "sqlite"},
},
"ubuntu": {
{"/usr/bin/sqlite3", "sqlite3"},
{BinaryName: "/usr/bin/sqlite3", PackageName: "sqlite3"},
},
}
18 changes: 9 additions & 9 deletions ciao-launcher/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ import "github.com/01org/ciao/osprepare"
// fuser for qemu instance pid

var launcherClearLinuxCommonDeps = []osprepare.PackageRequirement{
{"/usr/bin/qemu-system-x86_64", "cloud-control"},
{"/usr/bin/xorriso", "cloud-control"},
{"/usr/sbin/fuser", "cloud-control"},
{BinaryName: "/usr/bin/qemu-system-x86_64", PackageName: "cloud-control"},
{BinaryName: "/usr/bin/xorriso", PackageName: "cloud-control"},
{BinaryName: "/usr/sbin/fuser", PackageName: "cloud-control"},
}

var launcherFedoraCommonDeps = []osprepare.PackageRequirement{
{"/usr/bin/qemu-system-x86_64", "qemu-system-x86"},
{"/usr/bin/xorriso", "xorriso"},
{"/usr/sbin/fuser", "psmisc"},
{BinaryName: "/usr/bin/qemu-system-x86_64", PackageName: "qemu-system-x86"},
{BinaryName: "/usr/bin/xorriso", PackageName: "xorriso"},
{BinaryName: "/usr/sbin/fuser", PackageName: "psmisc"},
}

var launcherUbuntuCommonDeps = []osprepare.PackageRequirement{
{"/usr/bin/qemu-system-x86_64", "qemu-system-x86"},
{"/usr/bin/xorriso", "xorriso"},
{"/bin/fuser", "psmisc"},
{BinaryName: "/usr/bin/qemu-system-x86_64", PackageName: "qemu-system-x86"},
{BinaryName: "/usr/bin/xorriso", PackageName: "xorriso"},
{BinaryName: "/bin/fuser", PackageName: "psmisc"},
}

var launcherNetNodeDeps = map[string][]osprepare.PackageRequirement{
Expand Down
7 changes: 4 additions & 3 deletions ciao-scheduler/deps.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ package main
import "github.com/01org/ciao/osprepare"

var schedDeps = osprepare.PackageRequirements{
// no known dependencies
"clearlinux": {
{"", ""},
{BinaryName: "", PackageName: ""},
},
"fedora": {
{"", ""},
{BinaryName: "", PackageName: ""},
},
"ubuntu": {
{"", ""},
{BinaryName: "", PackageName: ""},
},
}

0 comments on commit 6b115b8

Please sign in to comment.