forked from thecodeteam/libstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbox.go
28 lines (23 loc) · 824 Bytes
/
vbox.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package vbox
import "github.com/akutz/gofig"
const (
// Name is the provider's name.
Name = "virtualbox"
)
func init() {
registerConfig()
}
func registerConfig() {
r := gofig.NewRegistration("VirtualBox")
r.Key(gofig.String, "", "", "", "virtualbox.username")
r.Key(gofig.String, "", "", "", "virtualbox.password")
r.Key(gofig.String, "", "http://10.0.2.2:18083", "", "virtualbox.endpoint")
r.Key(gofig.String, "", "", "", "virtualbox.volumePath")
r.Key(gofig.String, "", "", "", "virtualbox.localMachineNameOrId")
r.Key(gofig.Bool, "", false, "", "virtualbox.tls")
r.Key(gofig.String, "", "SATA", "", "virtualbox.controllerName")
r.Key(gofig.String, "", "/dev/disk/by-id", "", "virtualbox.diskIDPath")
r.Key(gofig.String,
"", "/sys/class/scsi_host/", "", "virtualbox.scsiHostPath")
gofig.Register(r)
}