forked from sarah-soo/go-xen-api-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsr_stat_gen.go
54 lines (46 loc) · 1.32 KB
/
sr_stat_gen.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// This file is generated. To change the content of this file, please do not
// apply the change to this file because it will get overwritten. Instead,
// change xenapi.go and execute 'go generate'.
//
package xenapi
import (
"fmt"
"github.com/amfranz/go-xmlrpc-client"
"reflect"
"strconv"
"time"
)
var _ = fmt.Errorf
var _ = xmlrpc.NewClient
var _ = reflect.TypeOf
var _ = strconv.Atoi
var _ = time.UTC
type SrHealth string
const (
// Storage is fully available
SrHealthHealthy SrHealth = "healthy"
// Storage is busy recovering, e.g. rebuilding mirrors.
SrHealthRecovering SrHealth = "recovering"
)
type SrStatRecord struct {
// Uuid that uniquely identifies this SR, if one is available.
UUID string
// Short, human-readable label for the SR.
NameLabel string
// Longer, human-readable description of the SR. Descriptions are generally only displayed by clients when the user is examining SRs in detail.
NameDescription string
// Number of bytes free on the backing storage (in bytes)
FreeSpace int
// Total physical size of the backing storage (in bytes)
TotalSpace int
// Indicates whether the SR uses clustered local storage.
Clustered bool
// The health status of the SR.
Health SrHealth
}
type SrStatRef string
// A set of high-level properties associated with an SR.
type SrStatClass struct {
client *Client
}