// Validate is the main entry point for library configuration validation.
Validate is the main entry point for library configuration validation.
// Validate is the main entry point for library configuration validation .
func (c *Config) Validate() error {
	if err := c.Containers.Validate(); err != nil {
		return errors.Wrapf(err, " error validating containers config")
	}
	if !c.Containers.EnableLabeling {
		selinux.SetDisabled()
	}
	if err := c.Engine.Validate(); err != nil {
		return errors.Wrapf(err, "error validating engine configs")
	}
	if err := c.Network.Validate(); err != nil {
		return errors.Wrapf(err, "error validating network configs")
	}
	return nil
}
func ( c * Config ) Validate ( ) error { if err := c . Containers . Validate ( ) ; err != nil { return errors . Wrapf ( err , " " ) } if ! c . Containers . EnableLabeling { selinux . SetDisabled ( ) } if err := c . Engine . Validate ( ) ; err != nil { return errors . Wrapf ( err , " " ) } if err := c . Network . Validate ( ) ; err != nil { return errors . Wrapf ( err , " " ) } return nil }
Validate is the main entry point for library configuration validation.
Validate is the main entry point for library configuration validation .