Unknown YCP Module |
This module has an unstable interface. |
Imports
Global VariablesGlobal Functions
Local Variables
Local Functions |
File: modules/Squid.ycp
Package: Configuration of squid
Summary: Squid settings, input and output functions
Authors: Daniel Fiser
$Id: Squid.ycp 27914 2006-02-13 14:32:08Z locilka $
Defines path used in SCR::Read/Write functions
Defines location of sysconfig file
Defines name of service which is used by firewall when it's openning ports.
Data was modified?
Is service enabled?
Map of all configuration settings except consequential. Format: $[ "parameter name" : [ list of options (rest of line) ] ... ]
List of http_ports. Format: [ $["host" : "hostname", "port" : "3128", "transparent" : true], ... ]
List of acls. Format: [ $[ "name" : "localhost", "type" : "src", "options" : [ non-empty list of options ]] ... ]
List of access control parameters. Format: [ $["allow" : true, "acl" : ["acl1", "!acl2", ...] ], ... ]
List of refresh patterns. Format: [ $["regexp" : "^ftp:", "case_sensitive" : true, "min" : "12", "max" : "12", "percent" : "12"], ... ]
Map of all available parameters with defalut values. $[ "parameter_name" : [ list of default options ], ... ]
Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.
Same as splitstring(), but returns only non-empty strings.
- Parameters:
-
str delim
Verify and repair list of ACLs if something's wrong.
Function which sets permissions 'chmod 750' and 'chown squid:root' to directory dir if exists. If dir does not exist, function returns true;
- Parameters:
-
dir
Abort function return boolean return true if abort
Abort function
- Return value:
-
return true if abort
Returns number of occurences of ACL (definition lines) in config file.
- Parameters:
-
id_item
Same as NumACLs but ACL is identified by name.
- Parameters:
-
name
Returns list of options which use this ACL (identified by id_item). It's necessary to run this function before deleting ACL to know if any options are not affected.
- Parameters:
-
id_item
Returns only list of configured ports (no hosts and so on)
Read setting of parameter http_port. http_port [hostname:]port [transparent]
Read setting of parameter http_access. http_access allow acl1 !acl2 ...
Read setting of parameter refresh_pattern. refresh_pattern [-i] regexp min percent max [options (ignored)]
Read setting of parameter acl. acl aclname acltype string1 string2 ...
Read rest of setting. return true on success
Read all squid settings
- Return value:
-
true on success
Returns true if Squid service is running.
Start Squid service if not running otherwise reload. Returns true if squid was successfuly started
Stop Squid service. Returns true if squid was successfuly stopped
Write all squid settings
- Return value:
-
true on success
Get all squid settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
sett
- Return value:
-
True on success
Dump the squid settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
Create a textual summary and a list of unconfigured cards
- Return value:
-
summary of the current configuration
Create an overview table with all configured cards
- Return value:
-
table items global list Overview() { return []; }