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 blame;
9pub mod browse;
10pub mod claim;
11pub mod commit;
12pub mod config;
13pub mod diff;
14pub mod error;
15pub mod git;
16pub mod identity;
17pub mod import;
18pub mod issue;
19pub mod login;
20pub mod port;
21pub mod profile;
22pub mod push;
23pub mod repo;
24pub mod search;
25pub mod session;
26pub mod summary;
27pub mod token;
28pub mod webhook;
29
30pub use archive::{ArchiveTarget, archive_repo, open_archive};
31pub use blame::{Blame, BlameCommit, BlameContent, BlameFile, BlameGroup, blame_file, parse_blame};
32pub use browse::{
33 Browsed, FileView, LOG_LIMIT, MAX_BLOB_BYTES, MAX_RAW_BYTES, RawFile, RefList, RefPage,
34 browse_repo, list_branches, list_refs, list_tags, read_raw_file, repo_log,
35};
36pub use claim::{OwnerSpec, claim_instance, is_claimed, sole_owner_handle};
37pub use commit::{
38 COMPARE_LOG_LIMIT, CommitPage, Compared, Comparison, compare_revisions, view_commit,
39};
40pub use config::{AppConfig, Secret};
41pub use diff::{Diff, DiffLine, FileChange, FileDiff, FileStat, LineKind, MAX_FILE_DIFF_LINES};
42pub use error::{Error, Result};
43pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git};
44pub use identity::{Identity, describe_identity};
45pub use import::{
46 INTERRUPTED, NewImport, import_failure_message, import_repo, run_import,
47 sweep_interrupted_imports,
48};
49pub use issue::{
50 CommentView, IssueDetail, IssueEdit, IssueList, IssueSummary, NewIssue, comment_on_issue,
51 create_issue, edit_issue, list_issues, set_issue_state, view_issue,
52};
53pub use login::login;
54pub use profile::{PublicProfile, update_profile, view_profile};
55pub use push::{RefChange, RefSnapshot, record_push, ref_changes, snapshot_refs};
56pub use repo::{
57 ImportStatus, NewRepo, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo, list_repos,
58 update_repo, view_repo,
59};
60pub use search::{MAX_QUERY_BYTES, SEARCH_LIMIT, SearchFile, SearchResults, Searched, search_repo};
61pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired};
62pub use summary::{Licence, RepoFacts, repo_summary};
63pub use token::{
64 IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token,
65};
66pub use webhook::{
67 CreatedWebhook, DELIVERY_LIMIT, DeliveryContext, RETRY_BACKOFF, WebhookDetail, WebhookSummary,
68 create_webhook, delete_webhook, deliver_push, list_webhooks, push_payload, view_webhook,
69};