freckles.adapters package

Submodules

freckles.adapters.adapters module

class freckles.adapters.adapters.FrecklesAdapter(adapter_name, context, config_schema, run_config_schema)[source]

Bases: object

config(*overlays)[source]
config_value(key)[source]
context
copy_resource(resource_name, resource_type, dest_path)[source]

Copy the specified resource to a target path.

Parameters:
  • resource_name – the name of the resource
  • resource_type – the type of the resource
  • dest_path – the destination path

Returns (bool): whether the resource was copied or not

get_extra_frecklets()[source]
get_folders_for_alias(alias)[source]
get_resources_for_task(task)[source]

Return a map of paths to all resources that are necessary for this task.

get_supported_resource_types()[source]
get_supported_task_types()[source]

Return a list of supported frecklet types to run.

name
prepare_execution_requirements(run_config, parent_task)[source]

Prepares all external dependencies that are needed for this adapter to successfully run an execution.

Should throw an exception if it fails.

Returns:a version indicator
Return type:int
run(tasklist, run_vars, run_config, run_secrets, run_env, result_callback, parent_task)[source]
run_config(*overlays)[source]
run_config_value(key)[source]
set_resource_folder_map(resource_folders)[source]
freckles.adapters.adapters.create_adapter(adapter_name, context)[source]

Loading a dictlet finder extension.

Returns:the extension manager holding the extensions
Return type:ExtensionManager

Module contents