This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add server CLI arg for Federation loaded via entrypoint style load pl…
…ugin helper Signed-off-by: John Andersen <[email protected]>
- Loading branch information
Showing
5 changed files
with
71 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pathlib import Path | ||
from abc import ABC, abstractmethod | ||
from typing import Optional | ||
|
||
|
||
class SCITTFederation(ABC): | ||
def __init__( | ||
self, | ||
config_path: Path, | ||
service_parameters_path: Path, | ||
storage_path: Optional[Path] = None, | ||
): | ||
self.config_path = config_path | ||
self.service_parameters_path = service_parameters_path | ||
self.storage_path = storage_path | ||
|
||
@abstractmethod | ||
def initialize_service(self): | ||
raise NotImplementedError | ||
|
||
@abstractmethod | ||
def created_entry(self, entry_id: str, receipt: bytes): | ||
raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters