diff options
Diffstat (limited to 'internal/configuration/schema/access_control.go')
| -rw-r--r-- | internal/configuration/schema/access_control.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/internal/configuration/schema/access_control.go b/internal/configuration/schema/access_control.go index e2d5bbc74..b251e85ed 100644 --- a/internal/configuration/schema/access_control.go +++ b/internal/configuration/schema/access_control.go @@ -2,25 +2,25 @@ package schema // AccessControlConfiguration represents the configuration related to ACLs. type AccessControlConfiguration struct { - DefaultPolicy string `mapstructure:"default_policy"` - Networks []ACLNetwork `mapstructure:"networks"` - Rules []ACLRule `mapstructure:"rules"` + DefaultPolicy string `koanf:"default_policy"` + Networks []ACLNetwork `koanf:"networks"` + Rules []ACLRule `koanf:"rules"` } // ACLNetwork represents one ACL network group entry; "weak" coerces a single value into slice. type ACLNetwork struct { - Name string `mapstructure:"name"` - Networks []string `mapstructure:"networks"` + Name string `koanf:"name"` + Networks []string `koanf:"networks"` } // ACLRule represents one ACL rule entry; "weak" coerces a single value into slice. type ACLRule struct { - Domains []string `mapstructure:"domain,weak"` - Policy string `mapstructure:"policy"` - Subjects [][]string `mapstructure:"subject,weak"` - Networks []string `mapstructure:"networks"` - Resources []string `mapstructure:"resources"` - Methods []string `mapstructure:"methods"` + Domains []string `koanf:"domain"` + Policy string `koanf:"policy"` + Subjects [][]string `koanf:"subject"` + Networks []string `koanf:"networks"` + Resources []string `koanf:"resources"` + Methods []string `koanf:"methods"` } // DefaultACLNetwork represents the default configuration related to access control network group configuration. |
