Documentation ¶
Overview ¶
Package syecl implements the loading and management of the container execution control list feature. This code uses the TOML config file standard to extract the structured configuration for activating or disabling the list and for the implementation of the execution groups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EclConfig ¶
type EclConfig struct { Activated bool `toml:"activated"` // toggle the activation of the ECL rules ExecGroups []execgroup `toml:"execgroup"` // Slice of all execution groups }
EclConfig describes the structure of an execution control list configuration file
func LoadConfig ¶
LoadConfig opens an ECL config file and unmarshals it into structures
func (*EclConfig) ShouldRun ¶
ShouldRun determines if a container should run according to its execgroup rules
func (*EclConfig) ShouldRunFp ¶
ShouldRunFp determines if an already opened container should run according to its execgroup rules
func (*EclConfig) ValidateConfig ¶
ValidateConfig makes sure paths from configs are fully resolved and that values from an execgroup are logically correct.