-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
options.go
75 lines (67 loc) · 2.9 KB
/
options.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
package cobblerclient
// BuildisoOptions is a struct which describes the options one can set for the buildiso action of Cobbler.
type BuildisoOptions struct {
Iso string `mapstructure:"iso"`
Profiles []string `mapstructure:"profiles"`
Systems []string `mapstructure:"systems"`
BuildisoDir string `mapstructure:"buildisodir"`
Distro string `mapstructure:"distro"`
Standalone bool `mapstructure:"standalone"`
Airgapped bool `mapstructure:"airgapped"`
Source string `mapstructure:"source"`
ExcludeDns bool `mapstructure:"exclude_dns"`
XorrisofsOpts string `mapstructure:"xorrisofs_opts"`
}
// AclSetupOptions is a struct which describes the options one can set for the actlsetup action of Cobbler.
type AclSetupOptions struct {
AddUser string `mapstructure:"adduser"`
AddGroup string `mapstructure:"addgroup"`
RemoveUser string `mapstructure:"removeuser"`
RemoveGroup string `mapstructure:"removegroup"`
}
// ReplicateOptions is a struct which descibres the options one can set for the replicate action of Cobbler.
type ReplicateOptions struct {
Master string `mapstructure:"master"`
Port string `mapstructure:"port"`
DistroPatterns string `mapstructure:"distro_patterns"`
ProfilePatterns string `mapstructure:"profile_patterns"`
SystemPatterns string `mapstructure:"system_patterns"`
RepoPatterns string `mapstructure:"repo_patterns"`
Imagepatterns string `mapstructure:"image_patterns"`
MgmtclassPatterns string `mapstructure:"mgmtclass_patterns"`
PackagePatterns string `mapstructure:"package_patterns"`
FilePatterns string `mapstructure:"file_patterns"`
Prune bool `mapstructure:"prune"`
OmitData bool `mapstructure:"omit_data"`
SyncAll bool `mapstructure:"sync_all"`
UseSsl bool `mapstructure:"use_ssl"`
}
type BackgroundSyncOptions struct {
Dhcp bool `mapstructure:"dhcp"`
Dns bool `mapstructure:"dns"`
Verbose bool `mapstructure:"verbose"`
}
type BackgroundSyncSystemsOptions struct {
Systems []string `mapstructure:"systems"`
Verbose bool `mapstructure:"verbose"`
}
type BackgroundImportOptions struct {
Path string `mapstructure:"path"`
Name string `mapstructure:"name"`
AvailableAs string `mapstructure:"available_as"`
AutoinstallFile string `mapstructure:"autoinstall_file"`
RsyncFlags string `mapstructure:"rsync_flags"`
Arch string `mapstructure:"arch"`
Breed string `mapstructure:"breed"`
OsVersion string `mapstructure:"os_version"`
}
type BackgroundReposyncOptions struct {
Repos []string `mapstructure:"repos"`
Only string `mapstructure:"only"`
Nofail bool `mapstructure:"nofail"`
Tries int `mapstructure:"tries"`
}
type BackgroundPowerSystemOptions struct {
Systems []string `mapstructure:"systems"`
Power string `mapstructure:"power"`
}