Skip to main content

Module config

Module config 

Source
Expand description

Configuration management and policy enforcement.

Functionsยง

add_added_registry
Adds a registry URL to the list of added registries in the user-specific configuration.
add_cache_mirror
Adds a cache mirror URL to the user-specific configuration.
add_repo
Adds a repository to the user-specific configuration.
clone_git_repo
Clones a git repository into the local git root.
get_all_repos
Returns a list of all available repositories from the default registry.
get_builtin_authorities
Returns the built-in PGP authorities for the default registry.
get_default_registry
Returns the default registry URL for Zoi.
interactive_add_repo
Prompts the user to interactively add a repository.
list_git_repos
Lists all cloned git repositories.
read_config
Loads and merges configuration from system, user, and project-local paths.
read_repo_config
Reads the repository configuration from the specified database path.
read_user_config
Reads the user-specific configuration.
remove_added_registry
Removes an added registry by its handle or URL.
remove_cache_mirror
Removes a cache mirror URL from the user-specific configuration.
remove_git_repo
Removes a cloned git repository.
remove_repo
Removes a repository from the user-specific configuration.
set_default_registry
Sets the default registry URL in the user-specific configuration.
set_user_default_registry
Sets the default registry in the user-specific configuration.
sync_remote_policy
Synchronizes the remote security policy if configured in system config.yaml.
update_global_versions
Updates the global package versions in the user-specific configuration.
verify_remote_file
Verifies a remote file against a set of trusted PGP keys.
write_user_config
Writes the user-specific configuration to disk.