vendor_fabric.secrets_sync.graph

Dependency graph handling for SecretSync targets.

Module Contents

Classes

NodeType

Dependency graph node type.

Node

Dependency graph node.

Graph

Target dependency graph.

API

class vendor_fabric.secrets_sync.graph.NodeType

Bases: enum.StrEnum

Dependency graph node type.

Initialization

Initialize self. See help(type(self)) for accurate signature.

SOURCE = 'source'
TARGET = 'target'
capitalize()
casefold()
center()
count()
encode()
endswith()
expandtabs()
find()
format()
format_map()
index()
isalnum()
isalpha()
isascii()
isdecimal()
isdigit()
isidentifier()
islower()
isnumeric()
isprintable()
isspace()
istitle()
isupper()
join()
ljust()
lower()
lstrip()
partition()
removeprefix()
removesuffix()
replace()
rfind()
rindex()
rjust()
rpartition()
rsplit()
rstrip()
split()
splitlines()
startswith()
strip()
swapcase()
title()
translate()
upper()
zfill()
name()
value()
class vendor_fabric.secrets_sync.graph.Node

Dependency graph node.

name: str = None
type: vendor_fabric.secrets_sync.graph.NodeType = None
level: int = 0
deps: list[str] = 'field(...)'
depended_by: list[str] = 'field(...)'
class vendor_fabric.secrets_sync.graph.Graph

Target dependency graph.

Initialization

classmethod from_config(config: vendor_fabric.secrets_sync.models.SecretSyncConfig) vendor_fabric.secrets_sync.graph.Graph

Build a graph from a pipeline config.

calculate_levels() None

Calculate dependency levels and reject cycles.

topological_order() list[str]

Return targets in dependency order.

include_dependencies(targets: list[str]) list[str]

Expand target names to include target dependencies.

group_by_level() list[list[str]]

Group target names by dependency level.

render() str

Render a human-readable dependency graph.