-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproperties.go
79 lines (69 loc) · 2.05 KB
/
properties.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package zfs
type PropertySource string
type PropertySources []PropertySource
func (ps PropertySources) StringSlice() []string {
strs := make([]string, len(ps))
for i, p := range ps {
strs[i] = string(p)
}
return strs
}
const (
PropertySourceLocal PropertySource = "local"
PropertySourceInherited PropertySource = "inherited"
PropertySourceTemporary PropertySource = "temporary"
PropertySourceReceived PropertySource = "received"
PropertySourceDefault PropertySource = "default"
)
const (
PropertyAvailable = "available"
PropertyCanMount = "canmount"
PropertyCompression = "compression"
PropertyEncryption = "encryption"
PropertyEncryptionRoot = "encryptionroot"
PropertyFilesystemCount = "filesystem_count"
PropertyKeyFormat = "keyformat"
PropertyKeyStatus = "keystatus"
PropertyKeyLocation = "keylocation"
PropertyLogicalUsed = "logicalused"
PropertyMounted = "mounted"
PropertyMountPoint = "mountpoint"
PropertyName = "name"
PropertyOrigin = "origin"
PropertyQuota = "quota"
PropertyReferenced = "referenced"
PropertyRefQuota = "refquota"
PropertyReadOnly = "readonly"
PropertyReceiveResumeToken = "receive_resume_token"
PropertyType = "type"
PropertyUsed = "used"
PropertyUsedByDataset = "usedbydataset"
PropertyVolSize = "volsize"
PropertyWritten = "written"
)
const (
ValueYes = "yes"
ValueOn = "on"
ValueNo = "no"
ValueOff = "off"
ValueNone = "none"
ValueUnset = "-"
)
const (
EncryptionAES128CCM = "aes-128-ccm"
EncryptionAES192CCM = "aes-192-ccm"
EncryptionAES256CCM = "aes-256-ccm"
EncryptionAES128GCM = "aes-128-gcm"
EncryptionAES192GCM = "aes-192-gcm"
EncryptionAES256GCM = "aes-256-gcm"
)
const (
KeyFormatHex = "hex"
KeyFormatPassphrase = "passphrase"
KeyFormatRaw = "raw"
)
const (
KeyLocationPrompt = "prompt"
KeyStatusAvailable = "available"
)
const CanMountNoAuto = "noauto"