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