steid

@jamesgill /

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 summary;
19pub mod token;
20
21pub use browse::{
22 Browsed, FileView, LOG_LIMIT, MAX_BLOB_BYTES, MAX_RAW_BYTES, RawFile, RefList, browse_repo,
23 list_refs, read_raw_file, repo_log,
24};
25pub use claim::{OwnerSpec, claim_instance, is_claimed, sole_owner_handle};
26pub use config::{AppConfig, Secret};
27pub use error::{Error, Result};
28pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git};
29pub use identity::{Identity, describe_identity};
30pub use login::login;
31pub use profile::{PublicProfile, update_profile, view_profile};
32pub use repo::{
33 NewRepo, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo, list_repos, update_repo,
34 view_repo,
35};
36pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired};
37pub use summary::{Licence, RepoFacts, repo_summary};
38pub use token::{
39 IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token,
40};