Skip to content

ContainerSignResult#

Bases: OperationResult

ContainerOperationResult model.

Attributes:

Name Type Description
results List[str]

List of signing result outputs.

signing_key str

The signing key used during signing.

failed bool

Indicates if the operation failed.

Source code in pubtools/sign/results/containersign.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@dataclasses.dataclass
class ContainerSignResult(OperationResult):
    """ContainerOperationResult model.

    Attributes:
        results (List[str]): List of signing result outputs.
        signing_key (str): The signing key used during signing.
        failed (bool): Indicates if the operation failed.
    """

    ResultType: ClassVar[OperationResult]
    results: List[str]
    signing_key: str
    failed: bool

    def to_dict(self: Self) -> Dict[Any, Any]:
        """Return dict representation of ContainerOperationResult."""
        return {"results": self.results, "signing_key": self.signing_key, "failed": self.failed}

to_dict() #

Return dict representation of ContainerOperationResult.

Source code in pubtools/sign/results/containersign.py
25
26
27
def to_dict(self: Self) -> Dict[Any, Any]:
    """Return dict representation of ContainerOperationResult."""
    return {"results": self.results, "signing_key": self.signing_key, "failed": self.failed}