-
Notifications
You must be signed in to change notification settings - Fork 347
/
zgen_bind_mount_v0.go
59 lines (45 loc) · 1.35 KB
/
zgen_bind_mount_v0.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
// Code generated by gen.py. DO NOT EDIT.
package expconf
import (
"github.com/santhosh-tekuri/jsonschema/v2"
"github.com/determined-ai/determined/master/pkg/schemas"
)
func (b BindMountV0) HostPath() string {
return b.RawHostPath
}
func (b *BindMountV0) SetHostPath(val string) {
b.RawHostPath = val
}
func (b BindMountV0) ContainerPath() string {
return b.RawContainerPath
}
func (b *BindMountV0) SetContainerPath(val string) {
b.RawContainerPath = val
}
func (b BindMountV0) ReadOnly() bool {
if b.RawReadOnly == nil {
panic("You must call WithDefaults on BindMountV0 before .ReadOnly")
}
return *b.RawReadOnly
}
func (b *BindMountV0) SetReadOnly(val bool) {
b.RawReadOnly = &val
}
func (b BindMountV0) Propagation() string {
if b.RawPropagation == nil {
panic("You must call WithDefaults on BindMountV0 before .Propagation")
}
return *b.RawPropagation
}
func (b *BindMountV0) SetPropagation(val string) {
b.RawPropagation = &val
}
func (b BindMountV0) ParsedSchema() interface{} {
return schemas.ParsedBindMountV0()
}
func (b BindMountV0) SanityValidator() *jsonschema.Schema {
return schemas.GetSanityValidator("http://determined.ai/schemas/expconf/v0/bind-mount.json")
}
func (b BindMountV0) CompletenessValidator() *jsonschema.Schema {
return schemas.GetCompletenessValidator("http://determined.ai/schemas/expconf/v0/bind-mount.json")
}