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