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 | |
| 6 | pub(crate) mod authz; |
| 7 | pub mod browse; |
| 8 | pub mod claim; |
| 9 | pub mod config; |
| 10 | pub mod error; |
| 11 | pub mod git; |
| 12 | pub mod identity; |
| 13 | pub mod login; |
| 14 | pub mod port; |
| 15 | pub mod profile; |
| 16 | pub mod repo; |
| 17 | pub mod session; |
| 18 | pub mod token; |
| 19 | |
| 20 | pub 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 | }; |
| 24 | pub use claim::{OwnerSpec, claim_instance, is_claimed, sole_owner_handle}; |
| 25 | pub use config::{AppConfig, Secret}; |
| 26 | pub use error::{Error, Result}; |
| 27 | pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git}; |
| 28 | pub use identity::{Identity, describe_identity}; |
| 29 | pub use login::login; |
| 30 | pub use profile::{PublicProfile, update_profile, view_profile}; |
| 31 | pub use repo::{ |
| 32 | NewRepo, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo, list_repos, update_repo, |
| 33 | view_repo, |
| 34 | }; |
| 35 | pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired}; |
| 36 | pub use token::{ |
| 37 | IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token, |
| 38 | }; |