Network configuration |
modules/Proxy.ycp |
Proxy data | |
|
Configures FTP and HTTP proxies via sysconfig & SuSEconfig
and /root/.curlrc (for YOU)
Imports
Includes
StructuresGlobal VariablesGlobal Functions |
global
modified
->
boolean
Data was modified?
global
Read ()
->
boolean
Read settings
- Return value:
-
true if success
global
Write ()
->
boolean
Write routing settings and apply changes
- Return value:
-
true if success
global
Import (map settings)
->
boolean
Get all settings from a map.
When called by
- Parameters:
-
settings autoinstallation settings
- Return value:
-
true if success
global
RunTestProxy (string http_proxy, string https_proxy, string ftp_proxy, string proxy_user, string proxy_password)
->
map <string, map <string, any> >
Runs tests of the HTTP and FTP proxy
Structure return = $[
"HTTP" : $[ "exit" : _exit_code, "stdout" : _stdout, "stderr" : _stderr, ], "HTTPS" : $[ "exit" : _exit_code, "stdout" : _stdout, "stderr" : _stderr, ], "FTP" : $[ "exit" : _exit_code, "stdout" : _stdout, "stderr" : _stderr, ], ]
- Parameters:
-
http_proxy https_proxy ftp_proxy proxy_user proxy_password
- Return value:
-
with results of the test
global
Export ()
->
map
Dump the Routing settings to a map, for autoinstallation use.
- Return value:
-
autoinstallation settings
global
Summary ()
->
string
Create proxy summary
- Return value:
-
summary text
global
GetModified ()
->
boolean
Function which returns if the settings were modified
- Return value:
-
settings were modified
global
SetModified ()
->
void
Function sets internal variable, which indicates, that any settings were modified, to "true"
global
GetEnvironment ()
->
map <string, string>
Function returns an environment usable for curl. The proxy user/password are read from /root/.curlrc.