forked from thecodeteam/libstorage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbox.go
28 lines (24 loc) · 908 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
// +build !libstorage_storage_driver libstorage_storage_driver_vbox
package vbox
import (
gofigCore "github.com/akutz/gofig"
gofig "github.com/akutz/gofig/types"
)
const (
// Name is the provider's name.
Name = "virtualbox"
)
func init() {
r := gofigCore.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")
gofigCore.Register(r)
}