YaST2 Developers Documentation: Configuration of product-creator

Configuration of product-creator

modules/Kiwi.ycp
Data for kiwi configuration, input and output functions.

This module has an unstable interface.

Imports

  • Directory
  • FileUtils
  • Label
  • Message
  • Package
  • Popup
  • Progress
  • Report
  • Security
  • String
  • URL

Global Functions

Local Variables

Local Functions

local crypt_password (string pw) -> string

crypt given user password with current encryption algorithm

Parameters:
pw
local adapt_source_path (string source) -> string

change the yast source path format to kiwi (smart?) one

Parameters:
source
local get_source_value (string source, map config) -> map

generate the 'repository' tag

Parameters:
source
config
local get_config_dir (string name, string task) -> string

generate the name of directory with kiwi configuration

Parameters:
name
task
local get_type_values (map config, string task) -> list<map>

generate the values for image type

Parameters:
config
task
local non_unique_key -> map

which keys in config.xml are not unique

local Map2XML (map descr, integer level) -> string

convert YCP map (of internal type) to XML

Parameters:
descr
level
local MapAny2XML (string item_key, map item_descr, integer level) -> string

convert YCP map (of type read from any_xml agent) to XML

Parameters:
item_key
item_descr
level
global ReadConfigXML (string base_path) -> map<string,any>

import the data from given config.xml

Parameters:
base_path
global WriteConfigXML (map KiwiConfig, string task) -> boolean

Write currect configuration to new config.xml

Parameters:
KiwiConfig
task
global SaveConfiguration (map KiwiConfig, string task) -> string

save the image configuration to the kiwi images directory

Parameters:
KiwiConfig
task
global ImportImageRepositories (map Config, string dir) -> map <string,map>

Import repositories from given kiwi image configuration

Parameters:
Config
dir path to directory containing this config.xml
global InitCurrentRepositories () -> map <string,map>

Initialize the list of current repositories

global ReadImageTemplates () -> boolean

Read the templates on which the images can be based

global Read () -> boolean

REad the confgiuration stuff for image creator