Factory#

class phalanx.factory.Factory(path)#

Bases: object

Factory to create Phalanx components.

Parameters:

path (Path) – Path to the root of the Phalanx configuration tree.

Methods Summary

create_config_storage()

Create storage layer for the Phalanx configuration.

create_secrets_service()

Create service for manipulating Phalanx secrets.

create_vault_service()

Create service for managing Vault tokens and policies.

Methods Documentation

create_config_storage()#

Create storage layer for the Phalanx configuration.

Returns:

Storage service for loading the Phalanx configuration.

Return type:

ConfigStorage

create_secrets_service()#

Create service for manipulating Phalanx secrets.

Returns:

Service for manipulating secrets.

Return type:

SecretsService

create_vault_service()#

Create service for managing Vault tokens and policies.

Returns:

Service for managing Vault tokens and policies.

Return type:

VaultService