@jpgilldev / steid

1.3 KBRaw
1//! The application layer: use cases and the ports they depend on.
2//!
3//! Every use case takes an actor or a credential plus the ports it needs, and enforces
4//! the rules before any side effect. Nothing here knows about HTTP or Topcoat.
5
6pub(crate) mod authz;
7pub mod browse;
8pub mod claim;
9pub mod config;
10pub mod error;
11pub mod git;
12pub mod identity;
13pub mod login;
14pub mod port;
15pub mod profile;
16pub mod repo;
17pub mod session;
18pub mod token;
19
20pub use browse::{
21 Browsed, FileView, LOG_LIMIT, MAX_BLOB_BYTES, MAX_RAW_BYTES, RawFile, RefList, browse_repo,
22 list_refs, read_raw_file, repo_log,
23};
24pub use claim::{OwnerSpec, claim_instance, is_claimed, sole_owner_handle};
25pub use config::{AppConfig, Secret};
26pub use error::{Error, Result};
27pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git};
28pub use identity::{Identity, describe_identity};
29pub use login::login;
30pub use profile::{PublicProfile, update_profile, view_profile};
31pub use repo::{
32 NewRepo, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo, list_repos, update_repo,
33 view_repo,
34};
35pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired};
36pub use token::{
37 IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token,
38};