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 feed;
16pub mod git;
17pub mod identity;
18pub mod import;
19pub mod issue;
20pub mod label;
21pub mod login;
22pub mod paging;
23pub mod port;
24pub mod profile;
25pub mod pull_request;
26pub mod push;
27pub mod reconcile;
28pub mod repo;
29pub mod search;
30pub mod session;
31pub mod summary;
32pub mod token;
33pub mod webhook;
34
35pub use archive::{ArchiveTarget, archive_repo, open_archive};
36pub use blame::{Blame, BlameCommit, BlameContent, BlameFile, BlameGroup, blame_file, parse_blame};
37pub use browse::{
38 Browsed, EntryDetail, FileView, LOG_LIMIT, MAX_BLOB_BYTES, MAX_RAW_BYTES, PathLog, RawFile,
39 RefList, RefPage, browse_repo, list_branches, list_refs, list_tags, parse_gitmodules,
40 read_raw_file, repo_log, repo_path_log, resolve_relative,
41};
42pub use claim::{OwnerSpec, claim_instance, is_claimed, sole_owner_handle};
43pub use commit::{
44 COMPARE_LOG_LIMIT, CommitPage, Compared, Comparison, compare_revisions, view_commit,
45};
46pub use config::{AppConfig, Secret};
47pub use diff::{Diff, DiffLine, FileChange, FileDiff, FileStat, LineKind, MAX_FILE_DIFF_LINES};
48pub use error::{Error, Result};
49pub use feed::{ActivityEntry, FEED_LIMIT, IssueEntry, activity_feed, commit_feed, issue_feed};
50pub use git::{GitClientHeaders, GitEndpoint, GitOperation, GitService, serve_git};
51pub use identity::{Identity, describe_identity};
52pub use import::{
53 INTERRUPTED, NewImport, import_failure_message, import_repo, retry_import, run_import,
54 sweep_interrupted_imports,
55};
56pub use issue::{
57 CommentView, IssueDetail, IssueEdit, IssueList, IssueSummary, NewIssue, comment_on_issue,
58 create_issue, edit_issue, list_issues, set_issue_state, view_issue,
59};
60pub use label::{
61 LabelEdit, LabelPage, LabelRow, LabelView, NewLabel, create_label, delete_label, list_labels,
62 set_issue_labels, set_pull_labels, update_label,
63};
64pub use login::login;
65pub use paging::Paged;
66pub use profile::{PublicProfile, update_profile, view_profile};
67pub use pull_request::{
68 MAX_SQUASHED_COMMITS, MergeAuthor, Mergeability, Merged, NewPull, Numbered, PULL_LIMIT,
69 PullDetail, PullEdit, PullList, PullSummary, comment_on_pull, create_pull, edit_pull,
70 list_pulls, merge_pull, numbered_thing, set_pull_state, suggested_title, view_pull,
71};
72pub use push::{RefChange, RefSnapshot, record_push, ref_changes, snapshot_refs};
73pub use reconcile::{orphan_dirs, quarantine_label, sweep_orphan_directories};
74pub use repo::{
75 ImportStatus, NewRepo, REPO_LIMIT, RepoEdit, RepoSummary, RepoView, create_repo, delete_repo,
76 list_repos, update_repo, view_repo,
77};
78pub use search::{
79 MAX_QUERY_BYTES, SEARCH_LIMIT, SEARCH_MAX_MATCHES, SearchFile, SearchResults, Searched,
80 search_repo,
81};
82pub use session::{SESSION_LIFETIME, end_session, record_session, resolve_actor, sweep_expired};
83pub use summary::{Licence, RepoFacts, repo_summary};
84pub use token::{
85 IssuedToken, TokenSummary, authenticate_token, issue_token, list_tokens, revoke_token,
86};
87pub use webhook::{
88 CreatedWebhook, DELIVERY_LIMIT, DeliveryContext, RETRY_BACKOFF, WebhookDetail, WebhookSummary,
89 create_webhook, delete_webhook, deliver_push, list_webhooks, push_payload, redeliver,
90 set_webhook_active, view_webhook,
91};