Skip to content

Commit

Permalink
feat: add type documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yasminvalim committed Aug 30, 2023
1 parent 586a029 commit 6e31b30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 4 additions & 5 deletions config/fcos/v1_6_exp/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ type Config struct {
base.Config `yaml:",inline"`
BootDevice BootDevice `yaml:"boot_device"`
Grub Grub `yaml:"grub"`
Selinux Selinux `yaml:"selinux"`
}

type BootDevice struct {
Layout *string `yaml:"layout"`
Luks BootDeviceLuks `yaml:"luks"`
Mirror BootDeviceMirror `yaml:"mirror"`
Selinux Selinux `yaml:"selinux"`
Layout *string `yaml:"layout"`
Luks BootDeviceLuks `yaml:"luks"`
Mirror BootDeviceMirror `yaml:"mirror"`
}

type BootDeviceLuks struct {
Expand All @@ -54,5 +54,4 @@ type GrubUser struct {
type Selinux struct {
State *string `yaml:"state"`
Mode *string `yaml:"mode"`
Path *string `yaml:"path"`
}
3 changes: 3 additions & 0 deletions docs/config-fcos-v1_6-exp.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,6 @@ The Fedora CoreOS configuration is a YAML document conforming to the following s
* **_users_** (list of objects): the list of GRUB superusers.
* **name** (string): the user name.
* **password_hash** (string): the PBKDF2 password hash, generated with `grub2-mkpasswd-pbkdf2`.
* **_selinux_** (object): describes the security framework with precise access controls
* **state** (boolean): wheter or not SElinux should be enabled.
* **mode** (boolean): when enabled, SElinux have two modes: `enforcing`, which enforce security policies or `permissive`, which just logs policy violations.

0 comments on commit 6e31b30

Please sign in to comment.