package
1.8.0
Repository: https://github.com/jolheiser/gitea.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AccessibleRepoIDsQuery queries accessible repository ids.
AccessLevel returns the Access a user has to a repository.
AccessLevelUnit returns the Access a user has to a repository's.
ActiveLoginSources returns all active sources of the specified type.
AddDeletePRBranchComment adds delete branch comment for pull request issue.
AddDeployKey add new deploy key to database and authorized_keys file.
AddEmailAddress adds an email address to given user.
AddEmailAddresses adds an email address to given user.
AddGPGKey adds new public key to database.
AddOrgUser adds new user to given organization.
AddPublicKey adds new public key to database and authorized_keys file.
AddReleaseAttachments adds a release attachments.
AddTeamMember adds new membership of given team to given organization, the user will have membership to given organization automatically when needed.
AddTime will add the given time (in seconds) to the issue.
AddTopic adds a topic name to a repository (if it does not already have it).
AddUserOpenID adds an pre-verified/normalized OpenID URI to given user.
AssertCount assert the count of a bean.
AssertExistsAndLoadBean assert that a bean exists and load it from the test database.
AssertExistsIf asserts that a bean exists or does not exist, depending on what is expected.
AssertInt64InRange assert value is in range [low, high].
AssertNotExistsBean assert that a bean does not exist in the test database.
AssertSuccessfulInsert assert that beans is successfully inserted.
AttachmentLocalPath returns where attachment is stored in local file system based on given UUID.
BeanExists for testing, check if a bean exists.
CalcCommitStatus returns commit status state via some status, the commit statues should order by id desc.
CanBeAssigned return true if user can be assigned to issue or pull requests in repo Currently any write access (code, issues or pr's) is assignable, to match assignee list in user interface.
CancelStopwatch removes the given stopwatch and logs it into issue's timeline.
CanCreateOrgRepo returns true if user can create repo in organization.
Cell2Int64 converts a xorm.Cell type to int64, and handles possible irregular cases.
ChangeMilestoneAssign changes assignment of milestone for issue.
ChangeMilestoneStatus changes the milestone open/closed status.
ChangeOrgUserStatus changes public or private membership status.
ChangeRepositoryName changes all corresponding setting from old repository name to new one.
ChangeUserName changes all corresponding setting from old user name to new one.
CheckConsistencyFor test that all matching database entries are consistent.
CheckConsistencyForAll test that the entire database is consistent.
CheckCreateRepository check if could created a repository.
CheckLFSAccessForRepo check needed access mode base on action.
CheckPublicKeyString checks if the given public key string is recognized by SSH.
CheckRepoStats checks the repository stats.
CommentHashTag returns unique hash tag for comment id.
CommentTypeIsRef returns true if CommentType is a reference from another issue.
ComposeHTTPSCloneURL returns HTTPS clone URL based on given owner and repository name.
Cond create a condition with arguments for a test.
ConvertUtf8ToUtf8mb4 converts database and tables from utf8 to utf8mb4 if it's mysql.
CopyLFS copies LFS data from one repo to another.
Count returns records number according struct's fields as database query conditions.
CountIssuesByRepo map from repoID to number of issues matching the options.
CountLFSLockByRepoID returns a count of all LFSLocks associated with a repository.
CountLoginSources returns number of login sources.
CountMilestonesByRepoIDs map from repoIDs to number of milestones matching the options`.
CountNotices returns number of notices.
CountOrganizations returns number of organizations.
CountOrgMembers counts the organization's members.
CountRepoClosedMilestones returns number of closed milestones in given repository.
CountRepositories returns number of repositories.
CountUnread count unread notifications for a user.
CountUserRepositories returns number of repositories user owns.
CountUsers returns number of users.
CreateComment creates comment of issue or commit.
CreateCommentReaction creates a reaction on comment.
CreateHookTask creates a new hook task, it handles conversion from Payload to PayloadContent.
CreateIssueDependency creates a new dependency for an issue.
CreateIssueReaction creates a reaction on issue.
CreateLFSLock creates a new lock.
CreateLoginSource inserts a LoginSource in the DB if not already existing with the given name.
CreateNotice creates new system notice.
CreateOAuth2Application inserts a new oauth2 application.
CreateOrganization creates record of a new organization.
CreateOrStopIssueStopwatch will create or remove a stopwatch and will log it into issue's timeline.
CreateOrUpdateIssueNotifications creates an issue notification for each watcher, or updates it if already exists.
CreateOrUpdateIssueWatch set watching for a user and issue.
CreateReaction creates reaction for issue or comment.
CreateRefComment creates a commit reference comment to issue.
CreateRegistration will create a new U2FRegistration from the given Registration.
CreateRepository creates a repository for the user/organization.
CreateRepositoryNotice creates new system notice with type NoticeRepository.
CreateReview creates a new review based on opts.
CreateTask creates a task on database.
CreateTemporaryPath creates a temporary path.
CreateUser creates record of a new user.
CreateWebhook creates a new web hook.
DefaultDBContext represents a DBContext with default Engine.
DeleteAccessTokenByID deletes access token by given ID.
DeleteAllRecords will delete all the records of this table.
DeleteAttachment deletes the given attachment and optionally the associated file.
DeleteAttachments deletes the given attachments and optionally the associated files.
DeleteAttachmentsByComment deletes all attachments associated with the given comment.
DeleteAttachmentsByIssue deletes all attachments associated with the given issue.
DeleteAttachmentsByRelease deletes all attachments associated with the given release.
DeleteComment deletes the comment.
DeleteCommentReaction deletes a reaction on comment.
DeleteDefaultWebhook deletes an admin-default webhook by given ID.
DeleteDeployKey deletes deploy key from its repository authorized_keys file if needed.
DeleteEmailAddress deletes an email address of given user.
DeleteEmailAddresses deletes multiple email addresses.
DeleteGPGKey deletes GPG key information in database.
DeleteInactivateUsers deletes all inactivate users and email addresses.
DeleteIssueLabel deletes issue-label relation.
DeleteIssueReaction deletes a reaction on issue.
DeleteIssueUserTimes deletes times for issue.
DeleteLabel delete a label of given repository.
DeleteLFSLockByID deletes a lock by given ID.
DeleteMilestoneByRepoID deletes a milestone from a repository.
DeleteMirrorByRepoID deletes a mirror by repoID.
DeleteNotice deletes a system notice by given ID.
DeleteNotices deletes all notices with ID from start to end (inclusive).
DeleteNoticesByIDs deletes notices by given IDs.
DeleteOAuth2Application deletes the application with the given id and the grants and auth codes related to it.
DeleteOldRepositoryArchives deletes old repository archives.
DeleteOrganization completely and permanently deletes everything of organization.
DeletePublicKey deletes SSH key information both in database and authorized_keys file.
DeleteReaction deletes reaction for issue or comment.
DeleteRegistration will delete U2FRegistration.
DeleteReleaseByID deletes a release from database by given ID.
DeleteRepository deletes a repository for a user or organization.
DeleteRepositoryArchives deletes all repositories' archives.
DeleteSource deletes a LoginSource record in DB.
DeleteTeam deletes given team.
DeleteTime delete a specific Time.
DeleteTopic removes a topic name from a repository (if it has it).
DeleteTwoFactorByID deletes two-factor authentication token by given ID.
DeleteUploadByUUID deletes a upload by UUID.
DeleteUploads deletes multiple uploads.
DeleteUser completely and permanently deletes everything of a user, but issues/comments/pulls will be kept and shown as someone has been deleted.
DeleteUserOpenID deletes an openid address of given user.
DeleteWebhookByOrgID deletes webhook of organization by given ID.
DeleteWebhookByRepoID deletes webhook of repository by given ID.
DumpDatabase dumps all data from database according the special database SQL syntax to file system.
ExternalUserLogin attempts a login using external source types.
FetchCodeComments will return a 2d-map: ["Path"]["Line"] = Comments at line.
FilterOutRepoIdsWithoutUnitAccess filter out repos where user has no access to repositories.
FindByMaxID filled results as the condition from database.
FindCommentReactions returns a ReactionList of all reactions from an comment.
FindComments returns all comments according options.
FindExternalUsersByProvider represents external users via provider.
FindIssueReactions returns a ReactionList of all reactions from an issue.
FindOrgMembers loads organization members according conditions.
FindRepoRecentCommitStatusContexts returns repository's recent commit status contexts.
FindRepoUndeliveredHookTasks represents find the undelivered hook tasks of one repository.
FindReviews returns reviews passing FindReviewOptions.
FindTasks find all tasks.
FindTopics retrieves the topics via FindTopicOptions.
FindUndeliveredHookTasks represents find the undelivered hook tasks.
FindUnitTypes give the unit key name and return unit.
FindUserAccessibleRepoIDs find all accessible repositories' ID by user's id.
FinishMigrateTask updates database when migrate task finished.
FollowUser marks someone be another's follower.
FullPushingEnvironment returns an os environment to allow hooks to work on push.
GenerateAvatar generates the avatar from a template repository.
GenerateGitHooks generates git hooks from a template repository.
GenerateIssueLabels generates issue labels from a template repository.
GenerateLFSOid generates a Sha256Sum to represent an oid for arbitrary content.
GenerateTopics generates topics from a template repository.
GenerateWebhooks generates webhooks from a template repository.
GetAccessTokenBySHA returns access token by given token value.
GetActiveOAuth2LoginSourceByName returns a OAuth2 LoginSource based on the given name.
GetActiveOAuth2ProviderLoginSources returns all actived LoginOAuth2 sources.
GetActiveOAuth2Providers returns the map of configured active OAuth2 providers key is used as technical name (like in the callbackURL) values to display.
GetActiveWebhooksByOrgID returns all active webhooks for an organization.
GetActiveWebhooksByRepoID returns all active webhooks of repository.
GetActivityStats return stats for repository at given time range.
GetActivityStatsTopAuthors returns top author stats for git commits for all branches.
GetAssigneeIDsByIssue returns the IDs of users assigned to an issue but skips joining with `user` for performance reasons.
GetAssigneesByIssue returns everyone assigned to that issue.
GetAttachmentByID returns attachment by given id.
GetAttachmentByReleaseIDFileName returns attachment by given releaseId and fileName.
GetAttachmentByUUID returns attachment by given UUID.
GetAttachmentsByCommentID returns all attachments if comment by given ID.
GetAttachmentsByIssueID returns all attachments of an issue.
GetAttachmentsByUUIDs returns attachment by given UUID list.
GetCommentByID returns the comment by given ID.
GetCommitStatuses returns all statuses for a given commit.
GetCount get the count of a bean.
GetCurrentReview returns the current pending review of reviewer for given issue.
GetDefaultWebhook returns admin-default webhook by given ID.
GetDefaultWebhooks returns all admin-default webhooks.
GetDeployKeyByID returns deploy key by given ID.
GetDeployKeyByRepo returns deploy key by given public key ID and repository ID.
GetEmailAddresses returns all email addresses belongs to given user.
GetExternalLogin checks if a externalID in loginSourceID scope already exists.
GetFeeds returns actions according to the provided options.
GetGPGImportByKeyID returns the import public armored key by given KeyID.
GetGPGKeyByID returns public key by given ID.
GetGPGKeysByKeyID returns public key by given ID.
GetIssueByID returns an issue by given ID.
GetIssueByIndex returns raw issue without loading attributes by index in a repository.
GetIssueIDsByRepoID returns all issue ids by repo id.
GetIssuesByIDs return issues with the given IDs.
GetIssueStats returns issue statistic information by given conditions.
GetIssueWatch returns all IssueWatch objects from db by user and issue the current Web-UI need iw object for watchers AND explicit non-watchers.
GetIssueWatchers returns watchers/unwatchers of a given issue.
GetIssueWatchersIDs returns IDs of subscribers to a given issue id but avoids joining with `user` for performance reasons User permissions must be verified elsewhere if required.
GetIssueWithAttrsByID returns an issue with attributes by given ID.
GetIssueWithAttrsByIndex returns issue by index in a repository.
GetLabelByID returns a label by given ID.
GetLabelIDsInRepoByNames returns a list of labelIDs by names in a given repository.
GetLabelIDsInReposByNames returns a list of labelIDs by names in one of the given repositories.
GetLabelInRepoByID returns a label by ID in given repository.
GetLabelInRepoByName returns a label by name in given repository.
GetLabelsByIssueID returns all labels that belong to given issue by ID.
GetLabelsByRepoID returns all labels that belong to given repository by ID.
GetLabelsInRepoByIDs returns a list of labels by IDs in given repository, it silently ignores label IDs that do not belong to the repository.
GetLabelTemplateFile loads the label template file by given name, then parses and returns a list of name-color pairs and optionally description.
GetLatestCommitStatus returns all statuses with a unique context for a given commit.
GetLatestPullRequestByHeadInfo returns the latest pull request (regardless of its status) by given head information (repo and branch).
GetLFSLock returns release by given path.
GetLFSLockByID returns release by given id.
GetLFSLockByRepoID returns a list of locks of repository.
GetLoginSourceByID returns login source by given ID.
GetMaileableUsersByIDs gets users from ids, but only if they can receive mails.
GetMaxID will return max id of the table.
GetMigratingTask returns the migrating task by repo's id.
GetMilestoneByID returns the milestone via id .
GetMilestoneByRepoID returns the milestone in a repository.
GetMilestones returns a list of milestones of given repository and status.
GetMilestonesByRepoID returns all opened milestones of a repository.
GetMilestonesByRepoIDs returns a list of milestones of given repositories and status.
GetMilestonesStats returns milestone statistic information for dashboard by given conditions.
GetMirrorByRepoID returns mirror information of a repository.
GetNotificationByID return notification by ID.
GetNotificationCount returns the notification count for user.
GetNotifications returns all notifications that fit to the given options.
GetOAuth2ApplicationByClientID returns the oauth2 application with the given client_id.
GetOAuth2ApplicationByID returns the oauth2 application with the given id.
GetOAuth2ApplicationsByUserID returns all oauth2 applications owned by the user.
GetOAuth2AuthorizationByCode returns an authorization by its code.
GetOAuth2GrantByID returns the grant with the given ID.
GetOAuth2GrantsByUserID lists all grants of a certain user.
GetOrgByName returns organization by given name.
GetOrgsByUserID returns a list of organizations that the given user ID has joined.
GetOrgsCanCreateRepoByUserID returns a list of organizations where given user ID are allowed to create repos.
GetOrgUsersByOrgID returns all organization-user relations by organization ID.
GetOrgUsersByUserID returns all organization-user relations by user ID.
GetOwnedOrgsByUserID returns a list of organizations are owned by given user ID.
GetOwnedOrgsByUserIDDesc returns a list of organizations are owned by given user ID, ordered descending by the given condition.
GetParticipantsByIssueID returns all users who are participated in comments of an issue.
GetParticipantsIDsByIssueID returns the IDs of all users who participated in comments of an issue, but skips joining with `user` for performance reasons.
GetPrivateRepositoryCount returns the total number of private repositories of user.
GetProtectedBranchBy getting protected branch by ID/Name.
GetProtectedBranchByID getting protected branch by ID.
GetProtectedBranchByRepoID getting protected branch by repo ID.
GetPublicKeyByID returns public key by given ID.
GetPublicRepositoryCount returns the total number of public repositories of user.
GetPullRequestByID returns a pull request by given ID.
GetPullRequestByIndex returns a pull request by the given index.
GetPullRequestByIssueID returns pull request by given issue ID.
GetPullRequestByIssueIDWithNoAttributes returns pull request with no attributes loaded by given issue ID.
GetPullRequestIDsByCheckStatus returns all pull requests according the special checking status.
GetRelease returns release by given ID.
GetReleaseAttachments retrieves the attachments for releases.
GetReleaseByID returns release with given ID.
GetReleaseCountByRepoID returns the count of releases of repository.
GetReleasesByRepoID returns a list of releases of repository.
GetReleasesByRepoIDAndNames returns a list of releases of repository according repoID and tagNames.
GetRepoInitFile returns repository init files.
GetRepoIssueStats returns number of open and closed repository issues by given filter mode.
GetRepositoriesByForkID returns all repositories with given fork ID.
GetRepositoriesMapByIDs returns the repositories by given id slice.
GetRepositoryByID returns the repository by given id if exists.
GetRepositoryByIDCtx returns the repository by given id if exists.
GetRepositoryByName returns the repository by given name under user if exists.
GetRepositoryByOwnerAndName returns the repository by given ownername and reponame.
GetRepositoryCount returns the total number of repositories of user.
GetRepositoryFromMatch returns a *Repository from a username and repo strings.
GetRepoTopicByName retrives topic from name for a repo if it exist.
GetRepoWatchersIDs returns IDs of watchers for a given repo ID but avoids joining with `user` for performance reasons User permissions must be verified elsewhere if required.
GetReviewByID returns the review by the given ID.
GetReviewersByIssueID gets the latest review of each reviewer for a pull request.
GetStarredRepos returns the repos starred by a particular user.
GetStatistic returns the database statistics.
GetTeam returns team by given team name and organization.
GetTeamByID returns team by given ID.
GetTeamMembers returns all members in given team of organization.
GetTeamsWithAccessToRepo returns all teams in an organization that have given access level to the repository.
GetTopicByName retrieves topic by name.
GetTrackedSeconds return sum of seconds.
GetTrackedTimeByID returns raw TrackedTime without loading attributes by id.
GetTrackedTimes returns all tracked times that fit to the given options.
GetTwoFactorByUID returns the two-factor authentication token associated with the user, if any.
GetU2FRegistrationByID returns U2F registration by id.
GetU2FRegistrationsByUID returns all U2F registrations of the given user.
GetUnindexedRepos returns repos which do not have an indexer status.
GetUnmergedPullRequest returns a pull request that is open and has not been merged by given head/base and repo/branch.
GetUnmergedPullRequestsByBaseInfo returns all pull requests that are open and has not been merged by given base information (repo and branch).
GetUnmergedPullRequestsByHeadInfo returns all pull requests that are open and has not been merged by given head information (repo and branch).
GetUploadByUUID returns the Upload by UUID.
GetUploadsByUUIDs returns multiple uploads by UUIDS.
GetUser checks if a user already exists.
GetUserByEmail returns the user object by given e-mail if exists.
GetUserByID returns the user object by given ID if exists.
GetUserByKeyID get user information by user's public key id.
GetUserByName returns user by given name.
GetUserByOpenID returns the user object by given OpenID if exists.
GetUserEmailsByNames returns a list of e-mails corresponds to names of users that have their email notifications set to enabled or onmention.
GetUserHeatmapDataByUser returns an array of UserHeatmapData.
GetUserIDByExternalUserID get user id according to provider and userID.
GetUserIDsByNames returns a slice of ids corresponds to names.
GetUserIssueStats returns issue statistic information for dashboard by given conditions.
GetUserMirrorRepositories returns a list of mirror repositories of given user.
GetUserOpenIDs returns all openid addresses that belongs to given user.
GetUserOrgTeams returns all teams that user belongs to in given organization.
GetUserRepoPermission returns the user permissions to the repository.
GetUserRepositories returns a list of repositories of given user.
GetUserSalt returns a random user salt token.
GetUsersByIDs returns all resolved users from a list of Ids.
GetUserStopwatches return list of all stopwatches of a user.
GetUserTeams returns all teams that user belongs across all organizations.
GetWatchedRepos returns the repos watched by a particular user.
GetWatchers returns all watchers of given repository.
GetWebhookByID returns webhook of repository by given ID.
GetWebhookByOrgID returns webhook of organization by given ID.
GetWebhookByRepoID returns webhook of repository by given ID.
GetWebhooksByOrgID returns paginated webhooks for an organization.
GetWebhooksByRepoID returns all webhooks of a repository.
GitConfigPath returns the path to a repository's git config/ directory.
GPGKeyToEntity retrieve the imported key and the traducted entity.
HasAccess returns true if user has access to repo.
HasAccessUnit returns ture if user has testMode to the unit of the repository.
HasDeployKey returns true if public key is a deploy key of given repository.
HasForkedRepo checks if given user has already forked a repository with given ID.
HasIssueLabel returns true if issue has been labeled.
HasOrgsVisible tells if the given user can see at least one of the orgs provided.
HasOrgVisible tells if the given user can see the given org.
HasTeamRepo returns true if given repository belongs to team.
HasUserStopwatch returns true if the user has a stopwatch.
HookTasks returns a list of hook tasks by given conditions.
IncrementRepoForkNum increment repository fork number.
InitalizeLabels adds a label set to a repository using a template.
InitFixtures initialize test fixtures for a test database.
InitOAuth2 initialize the OAuth2 lib and register all active OAuth2 providers in the library.
InsertIssueComments inserts many comments of issues.
InsertIssues insert issues to database.
InsertMilestones creates milestones of repository.
InsertMirror inserts a mirror to database.
InsertPullRequests inserted pull requests.
InsertRelease inserts a release.
InsertReleases migrates release.
InsertReviews inserts review and review comments.
InternalPushingEnvironment returns an os environment to switch off hooks on push It is recommended to avoid using this unless you are pushing within a transaction or if you absolutely are sure that post-receive and pre-receive will do nothing We provide the full pushing-environment for other hook providers.
IsContentEmptyErr returns true if err is a ContentEmptyErr.
IsEmailUsed returns true if the email has been used.
IsErrAccessTokenEmpty checks if an error is a ErrAccessTokenEmpty.
IsErrAccessTokenNotExist checks if an error is a ErrAccessTokenNotExist.
IsErrAttachmentNotExist checks if an error is a ErrAttachmentNotExist.
IsErrBranchAlreadyExists checks if an error is an ErrBranchAlreadyExists.
IsErrBranchesEqual checks if an error is an ErrBranchesEqual.
IsErrBranchNameConflict checks if an error is an ErrBranchNameConflict.
IsErrCircularDependency checks if an error is a ErrCircularDependency.
IsErrCommentNotExist checks if an error is a ErrCommentNotExist.
IsErrCommitIDDoesNotMatch checks if an error is a ErrCommitIDDoesNotMatch.
IsErrDependenciesLeft checks if an error is a ErrDependenciesLeft.
IsErrDependencyExists checks if an error is a ErrDependencyExists.
IsErrDependencyNotExists checks if an error is a ErrDependencyExists.
IsErrDeployKeyAlreadyExist checks if an error is a ErrDeployKeyAlreadyExist.
IsErrDeployKeyNameAlreadyUsed checks if an error is a ErrDeployKeyNameAlreadyUsed.
IsErrDeployKeyNotExist checks if an error is a ErrDeployKeyNotExist.
IsErrEmailAlreadyUsed checks if an error is a ErrEmailAlreadyUsed.
IsErrErrPullRequestHeadRepoMissing checks if an error is a ErrPullRequestHeadRepoMissing.
IsErrExternalLoginUserAlreadyExist checks if an error is a ExternalLoginUserAlreadyExist.
IsErrExternalLoginUserNotExist checks if an error is a ExternalLoginUserNotExist.
IsErrFilenameInvalid checks if an error is an ErrFilenameInvalid.
IsErrFilePathInvalid checks if an error is an ErrFilePathInvalid.
IsErrForbiddenIssueReaction checks if an error is a ErrForbiddenIssueReaction.
IsErrForkAlreadyExist checks if an error is an ErrForkAlreadyExist.
IsErrGPGKeyAccessDenied checks if an error is a ErrGPGKeyAccessDenied.
IsErrGPGKeyIDAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
IsErrGPGKeyImportNotExist checks if an error is a ErrGPGKeyImportNotExist.
IsErrGPGKeyNotExist checks if an error is a ErrGPGKeyNotExist.
IsErrGPGKeyParsing checks if an error is a ErrGPGKeyParsing.
IsErrGPGNoEmailFound checks if an error is a ErrGPGNoEmailFound.
IsErrInvalidCloneAddr checks if an error is a ErrInvalidCloneAddr.
IsErrInvalidMergeStyle checks if an error is a ErrInvalidMergeStyle.
IsErrInvalidTagName checks if an error is a ErrInvalidTagName.
IsErrIssueIsClosed checks if an error is a ErrIssueNotExist.
IsErrIssueLabelTemplateLoad checks if an error is a ErrIssueLabelTemplateLoad.
IsErrIssueNotExist checks if an error is a ErrIssueNotExist.
IsErrIssueWasClosed checks if an error is a ErrIssueWasClosed.
IsErrKeyAccessDenied checks if an error is a ErrKeyAccessDenied.
IsErrKeyAlreadyExist checks if an error is a ErrKeyAlreadyExist.
IsErrKeyNameAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
IsErrKeyNotExist checks if an error is a ErrKeyNotExist.
IsErrKeyUnableVerify checks if an error is a ErrKeyUnableVerify.
IsErrLabelNotExist checks if an error is a ErrLabelNotExist.
IsErrLastOrgOwner checks if an error is a ErrLastOrgOwner.
IsErrLFSFileLocked checks if an error is a ErrLFSFileLocked.
IsErrLFSLockAlreadyExist checks if an error is a ErrLFSLockAlreadyExist.
IsErrLFSLockNotExist checks if an error is a ErrLFSLockNotExist.
IsErrLFSUnauthorizedAction checks if an error is a ErrLFSUnauthorizedAction.
IsErrLoginSourceAlreadyExist checks if an error is a ErrLoginSourceAlreadyExist.
IsErrLoginSourceInUse checks if an error is a ErrLoginSourceInUse.
IsErrLoginSourceNotExist checks if an error is a ErrLoginSourceNotExist.
IsErrMergeConflicts checks if an error is a ErrMergeConflicts.
IsErrMergePushOutOfDate checks if an error is a ErrMergePushOutOfDate.
IsErrMergeUnrelatedHistories checks if an error is a ErrMergeUnrelatedHistories.
IsErrMilestoneNotExist checks if an error is a ErrMilestoneNotExist.
IsErrNamePatternNotAllowed checks if an error is an ErrNamePatternNotAllowed.
IsErrNameReserved checks if an error is a ErrNameReserved.
IsErrNewIssueInsert checks if an error is a ErrNewIssueInsert.
IsErrNotAllowedToMerge checks if an error is an ErrNotAllowedToMerge.
IsErrNotExist checks if an error is an ErrNotExist.
IsErrOAuthApplicationNotFound checks if an error is a ErrReviewNotExist.
IsErrOauthClientIDInvalid checks if an error is a ErrReviewNotExist.
IsErrOpenIDAlreadyUsed checks if an error is a ErrOpenIDAlreadyUsed.
IsErrOpenIDConnectInitialize checks if an error is a ExternalLoginUserAlreadyExist.
IsErrOrgNotExist checks if an error is a ErrOrgNotExist.
IsErrPullRequestAlreadyExists checks if an error is a ErrPullRequestAlreadyExists.
IsErrPullRequestHasMerged checks if an error is a ErrPullRequestHasMerged.
IsErrPullRequestNotExist checks if an error is a ErrPullRequestNotExist.
IsErrPullWasClosed checks if an error is a ErrErrPullWasClosed.
IsErrReachLimitOfRepo checks if an error is a ErrReachLimitOfRepo.
IsErrReactionAlreadyExist checks if an error is a ErrReactionAlreadyExist.
IsErrRebaseConflicts checks if an error is a ErrRebaseConflicts.
IsErrReleaseAlreadyExist checks if an error is a ErrReleaseAlreadyExist.
IsErrReleaseNotExist checks if an error is a ErrReleaseNotExist.
IsErrRepoAlreadyExist checks if an error is a ErrRepoAlreadyExist.
IsErrRepoFileAlreadyExists checks if an error is a ErrRepoFileAlreadyExists.
IsErrRepoFileDoesNotExist checks if an error is a ErrRepoDoesNotExist.
IsErrRepoNotExist checks if an error is a ErrRepoNotExist.
IsErrRepoRedirectNotExist check if an error is an ErrRepoRedirectNotExist.
IsErrReviewNotExist checks if an error is a ErrReviewNotExist.
IsErrSHADoesNotMatch checks if an error is a ErrSHADoesNotMatch.
IsErrSHANotFound checks if an error is a ErrSHANotFound.
IsErrSHAOrCommitIDNotProvided checks if an error is a ErrSHAOrCommitIDNotProvided.
IsErrSSHDisabled checks if an error is a ErrSSHDisabled.
IsErrStopwatchNotExist checks if an error is a ErrStopwatchNotExist.
IsErrTagAlreadyExists checks if an error is an ErrTagAlreadyExists.
IsErrTaskDoesNotExist checks if an error is a ErrTaskIsNotExist.
IsErrTeamAlreadyExist checks if an error is a ErrTeamAlreadyExist.
IsErrTeamNotExist checks if an error is a ErrTeamNotExist.
IsErrTopicNotExist checks if an error is an ErrTopicNotExist.
IsErrTrackedTimeNotExist checks if an error is a ErrTrackedTimeNotExist.
IsErrTwoFactorNotEnrolled checks if an error is a ErrTwoFactorNotEnrolled.
IsErrU2FRegistrationNotExist checks if an error is a ErrU2FRegistrationNotExist.
IsErrUnitTypeNotExist checks if an error is a ErrUnitNotExist.
IsErrUnknownDependencyType checks if an error is ErrUnknownDependencyType.
IsErrUpdateTaskNotExist checks if an error is a ErrUpdateTaskNotExist.
IsErrUploadNotExist checks if an error is a ErrUploadNotExist.
IsErrUserAlreadyExist checks if an error is a ErrUserAlreadyExists.
IsErrUserCannotCommit checks if an error is an ErrUserCannotCommit.
IsErrUserDoesNotHaveAccessToRepo checks if an error is a ErrRepoFileAlreadyExists.
IsErrUserHasOrgs checks if an error is a ErrUserHasOrgs.
IsErrUserInactive checks if an error is a ErrUserInactive.
IsErrUserNotAllowedCreateOrg checks if an error is an ErrUserNotAllowedCreateOrg.
IsErrUserNotExist checks if an error is a ErrUserNotExist.
IsErrUserOwnRepos checks if an error is a ErrUserOwnRepos.
IsErrUserProhibitLogin checks if an error is a ErrUserProhibitLogin.
IsErrWebhookNotExist checks if an error is a ErrWebhookNotExist.
IsErrWikiAlreadyExist checks if an error is an ErrWikiAlreadyExist.
IsErrWikiInvalidFileName checks if an error is an ErrWikiInvalidFileName.
IsErrWikiReservedName checks if an error is an ErrWikiReservedName.
IsErrWontSign checks if an error is a ErrWontSign.
IsFollowing returns true if user is following followID.
IsOfficialReviewer check if reviewer can make official reviews in issue (counts towards required approvals).
IsOpenIDUsed returns true if the openid has been used.
IsOrganizationMember returns true if given user is member of organization.
IsOrganizationOwner returns true if given user is in the owner team.
IsPublicMembership returns true if given user public his/her membership.
IsReleaseExist returns true if release with given tag name already exists.
IsRepositoryExist returns true if the repository with given name under user has already existed.
IsSSPIEnabled returns true if there is at least one activated login source of type LoginSSPI.
IsStaring checks if user has starred given repository.
IssueNoDependenciesLeft checks if issue can be closed.
Issues returns a list of issues by given conditions.
IsTableNotEmpty returns true if table has at least one record.
IsTeamMember returns true if given user is a member of team.
IsUsableRepoName returns true when repository is usable.
IsUsableTeamName tests if a name could be as team name.
IsUsableUsername returns an error when a username is reserved.
IsUserAssignedToIssue returns true when the user is assigned to the issue.
IsUserExist checks if given user name exist, the user name should be noncased unique.
IsUserInTeams returns if a user in some teams.
IsUserRepoAdmin return true if user has admin right of a repo.
IsValidHookContentType returns true if given name is a valid hook content type.
IsValidHookTaskType returns true if given name is a valid hook task type.
IsWatching checks if user has watched given repository.
Iterate iterates the databases and doing something.
LFSAutoAssociate auto associates accessible LFSMetaObjects.
LFSObjectAccessible checks if a provided Oid is accessible to the user.
LinkExternalToUser link the external user to the user.
ListAccessTokens returns a list of access tokens belongs to given user.
ListAccountLinks returns a map with the ExternalLoginUser and its LoginSource.
ListDeployKeys returns all deploy keys by given repository ID.
ListGPGKeys returns a list of public keys belongs to given user.
ListPublicKeys returns a list of public keys belongs to given user.
ListPublicLdapSSHKeys returns a list of synchronized public ldap ssh keys belongs to given user and login source.
LoadFixtures load fixtures for a test database.
LoadLabelsFormatted loads the labels' list of a template file as a string separated by comma.
LocalCopyPath returns the local repository temporary copy path.
LockIssue locks an issue.
LoginSources returns a slice of all login sources found in DB.
LoginSourcesByType returns all sources of the specified type.
LoginViaLDAP queries if login/password is valid against the LDAP directory pool, and create a local user if success when enabled.
LoginViaPAM queries if login/password is valid against the PAM, and create a local user if success when enabled.
LoginViaSMTP queries if login/password is valid against the SMTP, and create a local user if success when enabled.
LookupRepoRedirect look up if a repository has a redirect name.
MainTest a reusable TestMain(..) function for unit tests that need to use a test database.
MakeAssigneeList concats a string with all names of the assignees.
MakeEmailPrimary sets primary email address of given user.
MakeIDsFromAPIAssigneesToAdd returns an array with all assignee IDs.
MarkReviewsAsNotStale marks existing reviews as not stale for a giving commit SHA.
MarkReviewsAsStale marks existing reviews as stale.
MaxBatchInsertSize returns the table's max batch insert size.
MilestoneStats returns number of open and closed milestones of given repository.
MirrorsIterate iterates all mirror repositories.
NewAccessToken creates new access token.
NewAttachment creates a new attachment object.
NewCommitStatus save commit statuses into database.
NewEngine initializes a new xorm.Engine.
NewGhostUser creates and returns a fake user for someone has deleted his/her account.
NewIssue creates new issue with labels for repository.
NewIssueLabel creates a new issue-label relation.
NewIssueLabels creates a list of issue-label relations.
NewLabel creates a new label for a repository.
NewLabels creates new labels for a repository.
NewLFSMetaObject stores a given populated LFSMetaObject structure in the database if it is not already present.
NewMilestone creates new milestone of repository.
NewPullRequest creates new pull request with labels for repository.
NewReplaceUser creates and returns a fake user for external user.
NewRepoContext creates a new repository context.
NewRepoRedirect create a new repo redirect.
NewTeam creates a record of new team.
NewTestEngine sets a new test xorm.Engine.
NewTwoFactor creates a new two-factor authentication token.
NewUpload creates a new upload object.
NewXORMLogger inits a log bridge for xorm.
Notices returns notices in given page.
NotificationsForUser returns notifications for a given user and status.
NotifyWatchers creates batch of actions for every watcher.
NotifyWatchersActions creates batch of actions for every watcher.
ParseAccessMode returns corresponding access mode to given permission string.
ParseCommitsWithSignature checks if signaute of commits are corresponding to users gpg keys.
ParseCommitsWithStatus checks commits latest statuses and calculates its worst status state.
ParseCommitWithSignature check if signature is good against keystore.
ParseOAuth2Token parses a singed jwt string.
Ping tests if database is alive.
PrepareTestDatabase load test fixtures into test database.
PrepareTestEnv prepares the environment for unit tests.
PublicSigningKey gets the public signing key within a provided repository directory.
PullRequests returns all pull requests for a base Repo by the given conditions.
PushingEnvironment returns an os environment to allow hooks to work on push.
PushUpdateAddDeleteTags updates a number of added and delete tags.
PushUpdateAddTags updates a number of add tags.
PushUpdateDeleteTag must be called for any push actions to delete tag.
PushUpdateDeleteTags updates a number of delete tags.
RemoveAccountLink will remove all external login sources for the given user.
RemoveAllWithNotice removes all directories in given path and creates a system notice when error occurs.
RemoveDeletedBranch removes all deleted branches.
RemoveIssueDependency removes a dependency from an issue.
RemoveOldDeletedBranches removes old deleted branches.
RemoveOrgUser removes user from given organization.
RemoveRandomAvatars removes the randomly generated avatars that were created for repositories.
RemoveTeamMember removes member from given team of given organization.
RemoveTemporaryPath removes the temporary path.
RepoPath returns repository path by given user and repository name.
RepositoryListOfMap make list from values of map.
ReviewExists returns whether a review exists for a particular line of code in the PR.
RevokeOAuth2Grant deletes the grant with grantID and userID.
RewriteAllPublicKeys removes any authorized key and rewrite all keys from database again.
SanitizeAndValidateTopics sanitizes and checks an array or topics.
SaveOrUpdateTag must be called for any push actions to add tag.
SaveTopics save topics to a repository.
SearchDeployKeys returns a list of deploy keys matching the provided arguments.
SearchIssueIDsByKeyword search issues on database.
SearchPublicKey returns a list of public keys matching the provided arguments.
SearchPublicKeyByContent searches content as prefix (leak e-mail part) and returns public key found.
SearchRepository returns repositories based on search options, it returns results in given range and number of total results.
SearchRepositoryByName takes keyword and part of repository name to search, it returns results in given range and number of total results.
SearchTeam search for teams.
SearchUsers takes options i.e.
SecToTime converts an amount of seconds to a human-readable string (example: 66s -> 1min 6s).
SetEngine sets the xorm.Engine.
SetNotificationStatus change the notification status.
SignInitialCommit determines if we should sign the initial commit to this repository.
SMTPAuth performs an SMTP authentication.
SortReleases sorts releases by number of commits and created time.
SSHKeyGenParsePublicKey extracts key type and length using ssh-keygen.
SSHNativeParsePublicKey extracts the key type and length using the golang SSH library.
StarRepo or unstar repository.
StopwatchExists returns true if the stopwatch exists.
SubmitReview creates a review out of the existing pending review or creates a new one if no pending review exist.
SyncExternalUsers is used to synchronize users with external authorization source.
ToggleUserOpenIDVisibility toggles visibility of an openid address of given user.
ToHookContentType returns HookContentType by given name.
ToHookTaskType returns HookTaskType by given name.
TotalTimes returns the spent time for each user by an issue.
TransferOwnership transfers all corresponding setting from old user to new one.
TxDBContext represents a transaction DBContext.
UnfollowUser unmarks someone as another's follower.
UnlockIssue unlocks a previously locked issue.
UpdateAccessToken updates information of access token.
UpdateAttachment updates the given attachment in database.
UpdateComment updates information of comment.
UpdateCommentsMigrationsByType updates comments' migrations information via given git service type and original id and poster id.
UpdateDeployKey updates deploy key information.
UpdateDeployKeyCols updates deploy key information in the specified columns.
UpdateExternalUser updates external user's information.
UpdateHookTask updates information of hook task.
UpdateIssueByAPI updates all allowed fields of given issue.
UpdateIssueDeadline updates an issue deadline and adds comments.
UpdateIssueMentions updates issue-user relations for mentioned users.
UpdateIssuesMigrationsByType updates all migrated repositories' issues from gitServiceType to replace originalAuthorID to posterID.
UpdateIssueUserByRead updates issue-user relation for reading.
UpdateIssueUsersByMentions updates issue-user pairs by mentioning.
UpdateLabel updates label information.
UpdateMigrationsByType updates all migrated repositories' posterid from gitServiceType to replace originalAuthorID to posterID.
UpdateMilestone updates information of given milestone.
UpdateMirror updates the mirror.
UpdateNotificationStatuses updates the statuses of all of a user's notifications that are of the currentStatus type to the desiredStatus.
UpdateOAuth2Application updates an oauth2 application.
UpdateProtectBranch saves branch protection options of repository.
UpdatePublicKeyUpdated updates public key use time.
UpdateReactionsMigrationsByType updates all migrated repositories' reactions from gitServiceType to replace originalAuthorID to posterID.
UpdateRelease updates all columns of a release.
UpdateReleasesMigrationsByType updates all migrated repositories' releases from gitServiceType to replace originalAuthorID to posterID.
UpdateRepository updates a repository.
UpdateRepositoryCols updates repository's columns.
UpdateRepositoryCtx updates a repository with db context.
UpdateRepositoryUnits updates a repository's units.
UpdateRepositoryUpdatedTime updates a repository's updated time.
UpdateReviewsMigrationsByType updates reviews' migrations information via given git service type and original id and poster id.
UpdateSource updates a LoginSource record in DB.
UpdateTeam updates information of team.
UpdateTeamUnits updates a teams's units.
UpdateTwoFactor updates a two-factor authentication token.
UpdateUser updates user's information.
UpdateUserCols update user according special columns.
UpdateUserSetting updates user's settings.
UpdateWebhook updates information of webhook.
UpdateWebhookLastStatus updates last status of webhook.
UploadLocalPath returns where uploads is stored in local file system based on given UUID.
UserPath returns the path absolute path of user repositories.
UserSignIn validates user name and password.
UsersInTeamsCount counts the number of users which are in userIDs and teamIDs.
ValidateCommitsWithEmails checks if authors' e-mails of commits are corresponding to users.
ValidateCommitWithEmail check if author's e-mail of commit is corresponding to a user.
ValidateTopic checks a topic by length and match pattern rules.
VerifyActiveEmailCode verifies active email code when active account.
VerifyUserActiveCode verifies active code when active account.
WatchIfAuto subscribes to repo if AutoWatchOnChanges is set.
WatchRepo watch or unwatch repository.
WatchRepoMode watch repository in specific mode.
WikiPath returns wiki data path by given user and repository name.
WithContext represents executing database operations.
WithTx represents executing database operations on a trasaction.

# Constants

3.
0.
4.
1.
2.
21.
12.
14.
10.
23.
5.
6.
7.
1.
17.
16.
11.
19.
20.
18.
9.
22.
2.
13.
15.
3.
8.
4.
BadDefaultSignature is used as the reason when the signature has a KeyID that matches the default Key but is not verified by the default key.
BadSignature is used as the reason when the signature has a KeyID that is in the db but no key that has that ID verifies the signature.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Enumerate all the comment tag types.
Dependency added.
Added a due date.
Add time manual for time tracking.
Assignees changed.
Cancel a stopwatch for time tracking.
Change pull request's target branch.
Change Title.
Enumerate all the comment types.
Comment a line of code.
Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0).
Reference from a comment.
Reference from a commit (not part of a pull request).
Delete Branch.
Delete time manual for time tracking.
References.
Labels changed.
Lock an issue, giving only collaborators access.
Milestone changed.
Modified the due date.
Reference from a pull request.
Removed a due date.
Dependency removed.
Enumerate all the comment types.
Reviews a pull request by giving general feedback.
Start a stopwatch for time tracking.
Stop a stopwatch for time tracking.
define unknown comment type.
Unlocks a previously locked issue.
ContentTypeForm is an url-encoded form payload for web hook.
ContentTypeJSON is a JSON payload for web hooks.
Define Dependency Types.
Define Dependency Types.
Types of hook tasks.
Types of hook tasks.
EmailNotificationsDisabled indicates that the user would not like to be notified via email.
EmailNotificationsEnabled indicates that the user would like to receive all email notifications.
EmailNotificationsOnMention indicates that the user would like to be notified via email when mentioned.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
env keys for git hooks need.
Filter modes.
Filter modes.
Filter modes.
Filter modes.
Types of hook tasks.
Types of hook tasks.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Types of hook events.
Possible statuses of a web hook.
Possible statuses of a web hook.
Possible statuses of a web hook.
KeyTypeDeploy specifies the deploy key.
KeyTypeUser specifies the user key.
LFSMetaFileIdentifier is the string appearing at the first line of LFS pointer files.
LFSMetaFileOidPrefix appears in LFS pointer files on a line before the sha256 hash.
5.
2.
Note: new type must append to the end of list to maintain compatibility.
6.
4.
1.
3.
7.
MergeStyleMerge create merge commit.
MergeStyleRebase rebase before merging.
MergeStyleRebaseMerge rebase before merging with merge commit (--no-ff).
MergeStyleSquash squash commits into single commit before merging.
Types of hook tasks.
NoKeyFound is used as the reason when no key can be found to verify the signature.
NonexistentID an ID that will never exist.
NoticeRepository type.
NotificationSourceCommit is a notification of a commit.
NotificationSourceIssue is a notification of an issue.
NotificationSourcePullRequest is a notification of a pull request.
NotificationStatusPinned represents a pinned notification.
NotificationStatusRead represents a read notification.
NotificationStatusUnread represents an unread notification.
ProtectedBranchPRID protected Repo PR ID.
ProtectedBranchRepoID protected Repo ID.
Enumerate all the pull request types.
Enumerate all the pull request types.
Enumerate all the pull request status.
Enumerate all the pull request status.
Enumerate all the pull request status.
Enumerate all the pull request status.
Enumerate all the pull request status.
repository is migrating.
RepositoryListDefaultPageSize is the default number of repositories to load in memory when running administrative tasks on all (or almost all) of them.
a normal repository.
3.
2.
0.
1.
ReviewTypeApprove approves changes.
ReviewTypeComment gives general feedback.
ReviewTypePending is a review which is not published yet.
ReviewTypeReject gives feedback blocking merge.
ReviewTypeUnknown unknown review type.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Strings for sorting result.
Types of hook tasks.
SMTP authentication type names.
SMTP authentication type names.
Types of hook tasks.
TypeAccessToken is a token with short lifetime to access the api.
TypeRefreshToken is token with long lifetime to refresh access tokens obtained by the client.
1 code.
7 ExternalTracker.
6 ExternalWiki.
2 issues.
3 PRs.
4 Releases.
5 Wiki.
Historic reason to make it starts at 0.
UserTypeOrganization defines an organization.

# Variables

AllRepoUnitTypes contains all the unit types.
DefaultRepoUnits contains the default unit types.
DisabledRepoUnits contains the units that have been globally disabled.
ErrEmailAddressNotExist email address not exist.
ErrEmailNotActivated e-mail address has not been activated error.
ErrEmailNotExist e-mail does not exist error.
ErrLFSObjectNotExist is returned from lfs models functions in order to differentiate between database and missing object errors.
ErrLoginSourceNotActived login source is not actived error.
ErrMirrorNotExist mirror does not exist error.
ErrNameEmpty name is empty error.
ErrOpenIDNotExist openid is not known.
ErrUnsupportedLoginType login source is unknown error.
ErrUserNameIllegal user name contains illegal characters error.
ErrUserNotKeyOwner user does not own this key error.
Gitignores contains the gitiginore files.
HasEngine specifies if we have a xorm.Engine.
ItemsPerPage maximum items per page in forks, watchers and stars of a repo.
LabelTemplates contains the label template files and the list of labels for each file.
Licenses contains the license files.
LoginNames contains the name of LoginType values.
MustRepoUnits contains the units could not be disabled currently.
NotAllowedDefaultRepoUnits contains units that can't be default.
OAuth2DefaultCustomURLMappings contains the map of default URL's for OAuth2 providers that are allowed to have custom urls key is used to map the OAuth2Provider value is the mapping as defined for the OAuth2Provider.
OAuth2Providers contains the map of registered OAuth2 providers in Gitea (based on goth) key is used to map the OAuth2Provider with the goth provider type (also in LoginSource.OAuth2Config.Provider) value is used to store display data.
Readmes contains the readme files.
SecurityProtocolNames contains the name of SecurityProtocol values.
SMTPAuths contains available SMTP authentication type names.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Enumerate all the units.
Units contains all the units.
Enumerate all the units.

# Structs

Access represents the highest access level of a user to the repository.
AccessToken represents a personal access token.
Action represents user operation type and other information to repository.
ActivityAuthorData represents statistical git commit count data.
ActivityStats represets issue and pull request information.
Attachment represent a attachment of issue/comment/release.
CloneLink represents different types of clone URLs of repository.
Collaboration represent the relation between an individual and a repository.
Collaborator represents a user with collaboration details.
Comment represents a comment in commit and issue page.
CommitStatus holds a single Status of a single Commit.
CommitStatusOptions holds the options for query commit statuses.
CommitVerification represents a commit validation of signature.
ContentEmptyErr represents an content empty error.
CreateCommentOptions defines options for creating comment.
CreateOAuth2ApplicationOptions holds options to create an oauth2 application.
CreateRepoOptions contains the create repository options.
CreateReviewOptions represent the options to create a review.
DBContext represents a db context.
DeletedBranch struct.
DependencyInfo represents high level information about an issue which is a dependency of another issue.
DeployKey represents deploy key information and its relation with repository.
EmailAddress is the list of all email addresses of a user.
ErrAccessTokenEmpty represents a "AccessTokenEmpty" kind of error.
ErrAccessTokenNotExist represents a "AccessTokenNotExist" kind of error.
ErrAttachmentNotExist represents a "AttachmentNotExist" kind of error.
ErrBranchAlreadyExists represents an error that branch with such name already exists.
ErrBranchesEqual represents an error that branch name conflicts with other branch.
ErrBranchNameConflict represents an error that branch name conflicts with other branch.
ErrCircularDependency represents a "DependencyCircular" kind of error.
ErrCommentNotExist represents a "CommentNotExist" kind of error.
ErrCommitIDDoesNotMatch represents a "CommitIDDoesNotMatch" kind of error.
ErrDependenciesLeft represents an error where the issue you're trying to close still has dependencies left.
ErrDependencyExists represents a "DependencyAlreadyExists" kind of error.
ErrDependencyNotExists represents a "DependencyAlreadyExists" kind of error.
ErrDeployKeyAlreadyExist represents a "DeployKeyAlreadyExist" kind of error.
ErrDeployKeyNameAlreadyUsed represents a "DeployKeyNameAlreadyUsed" kind of error.
ErrDeployKeyNotExist represents a "DeployKeyNotExist" kind of error.
ErrEmailAlreadyUsed represents a "EmailAlreadyUsed" kind of error.
ErrExternalLoginUserAlreadyExist represents a "ExternalLoginUserAlreadyExist" kind of error.
ErrExternalLoginUserNotExist represents a "ExternalLoginUserNotExist" kind of error.
ErrFilenameInvalid represents a "FilenameInvalid" kind of error.
ErrFilePathInvalid represents a "FilePathInvalid" kind of error.
ErrForbiddenIssueReaction is used when a forbidden reaction was try to created.
ErrForkAlreadyExist represents a "ForkAlreadyExist" kind of error.
ErrGPGKeyAccessDenied represents a "GPGKeyAccessDenied" kind of Error.
ErrGPGKeyIDAlreadyUsed represents a "GPGKeyIDAlreadyUsed" kind of error.
ErrGPGKeyImportNotExist represents a "GPGKeyImportNotExist" kind of error.
ErrGPGKeyNotExist represents a "GPGKeyNotExist" kind of error.
ErrGPGKeyParsing represents a "ErrGPGKeyParsing" kind of error.
ErrGPGNoEmailFound represents a "ErrGPGNoEmailFound" kind of error.
ErrInvalidCloneAddr represents a "InvalidCloneAddr" kind of error.
ErrInvalidMergeStyle represents an error if merging with disabled merge strategy.
ErrInvalidTagName represents a "InvalidTagName" kind of error.
ErrIssueIsClosed represents a "IssueIsClosed" kind of error.
ErrIssueLabelTemplateLoad represents a "ErrIssueLabelTemplateLoad" kind of error.
ErrIssueNotExist represents a "IssueNotExist" kind of error.
ErrIssueWasClosed is used when close a closed issue.
ErrKeyAccessDenied represents a "KeyAccessDenied" kind of error.
ErrKeyAlreadyExist represents a "KeyAlreadyExist" kind of error.
ErrKeyNameAlreadyUsed represents a "KeyNameAlreadyUsed" kind of error.
ErrKeyNotExist represents a "KeyNotExist" kind of error.
ErrKeyUnableVerify represents a "KeyUnableVerify" kind of error.
ErrLabelNotExist represents a "LabelNotExist" kind of error.
ErrLastOrgOwner represents a "LastOrgOwner" kind of error.
ErrLFSFileLocked represents a "LFSFileLocked" kind of error.
ErrLFSLockAlreadyExist represents a "LFSLockAlreadyExist" kind of error.
ErrLFSLockNotExist represents a "LFSLockNotExist" kind of error.
ErrLFSUnauthorizedAction represents a "LFSUnauthorizedAction" kind of error.
ErrLoginSourceAlreadyExist represents a "LoginSourceAlreadyExist" kind of error.
ErrLoginSourceInUse represents a "LoginSourceInUse" kind of error.
ErrLoginSourceNotExist represents a "LoginSourceNotExist" kind of error.
ErrMergeConflicts represents an error if merging fails with a conflict.
ErrMergePushOutOfDate represents an error if merging fails due to unrelated histories.
ErrMergeUnrelatedHistories represents an error if merging fails due to unrelated histories.
ErrMilestoneNotExist represents a "MilestoneNotExist" kind of error.
ErrNamePatternNotAllowed represents a "pattern not allowed" error.
ErrNameReserved represents a "reserved name" error.
ErrNewIssueInsert is used when the INSERT statement in newIssue fails.
ErrNotAllowedToMerge represents an error that a branch is protected and the current user is not allowed to modify it.
ErrNotExist represents a non-exist error.
ErrOAuthApplicationNotFound will be thrown if id cannot be found.
ErrOAuthClientIDInvalid will be thrown if client id cannot be found.
ErrOpenIDAlreadyUsed represents a "OpenIDAlreadyUsed" kind of error.
ErrOpenIDConnectInitialize represents a "OpenIDConnectInitialize" kind of error.
ErrOrgNotExist represents a "OrgNotExist" kind of error.
ErrPullRequestAlreadyExists represents a "PullRequestAlreadyExists"-error.
ErrPullRequestHasMerged represents a "PullRequestHasMerged"-error.
ErrPullRequestHeadRepoMissing represents a "ErrPullRequestHeadRepoMissing" error.
ErrPullRequestNotExist represents a "PullRequestNotExist" kind of error.
ErrPullWasClosed is used close a closed pull request.
ErrReachLimitOfRepo represents a "ReachLimitOfRepo" kind of error.
ErrReactionAlreadyExist is used when a existing reaction was try to created.
ErrRebaseConflicts represents an error if rebase fails with a conflict.
ErrReleaseAlreadyExist represents a "ReleaseAlreadyExist" kind of error.
ErrReleaseNotExist represents a "ReleaseNotExist" kind of error.
ErrRepoAlreadyExist represents a "RepoAlreadyExist" kind of error.
ErrRepoFileAlreadyExists represents a "RepoFileAlreadyExist" kind of error.
ErrRepoFileDoesNotExist represents a "RepoFileDoesNotExist" kind of error.
ErrRepoNotExist represents a "RepoNotExist" kind of error.
ErrRepoRedirectNotExist represents a "RepoRedirectNotExist" kind of error.
ErrReviewNotExist represents a "ReviewNotExist" kind of error.
ErrSHADoesNotMatch represents a "SHADoesNotMatch" kind of error.
ErrSHANotFound represents a "SHADoesNotMatch" kind of error.
ErrSHAOrCommitIDNotProvided represents a "SHAOrCommitIDNotProvided" kind of error.
ErrSSHDisabled represents an "SSH disabled" error.
ErrStopwatchNotExist represents a "Stopwatch Not Exist" kind of error.
ErrTagAlreadyExists represents an error that tag with such name already exists.
ErrTaskDoesNotExist represents a "TaskDoesNotExist" kind of error.
ErrTeamAlreadyExist represents a "TeamAlreadyExist" kind of error.
ErrTeamNotExist represents a "TeamNotExist" error.
ErrTopicNotExist represents an error that a topic is not exist.
ErrTrackedTimeNotExist represents a "TrackedTime Not Exist" kind of error.
ErrTwoFactorNotEnrolled indicates that a user is not enrolled in two-factor authentication.
ErrU2FRegistrationNotExist represents a "ErrU2FRegistrationNotExist" kind of error.
ErrUnitTypeNotExist represents a "UnitTypeNotExist" kind of error.
ErrUnknownDependencyType represents an error where an unknown dependency type was passed.
ErrUpdateTaskNotExist represents a "UpdateTaskNotExist" kind of error.
ErrUploadNotExist represents a "UploadNotExist" kind of error.
ErrUserAlreadyExist represents a "user already exists" error.
ErrUserCannotCommit represents "UserCannotCommit" kind of error.
ErrUserDoesNotHaveAccessToRepo represets an error where the user doesn't has access to a given repo.
ErrUserHasOrgs represents a "UserHasOrgs" kind of error.
ErrUserInactive represents a "ErrUserInactive" kind of error.
ErrUserNotAllowedCreateOrg represents a "UserNotAllowedCreateOrg" kind of error.
ErrUserNotExist represents a "UserNotExist" kind of error.
ErrUserOwnRepos represents a "UserOwnRepos" kind of error.
ErrUserProhibitLogin represents a "ErrUserProhibitLogin" kind of error.
ErrWebhookNotExist represents a "WebhookNotExist" kind of error.
ErrWikiAlreadyExist represents a "WikiAlreadyExist" kind of error.
ErrWikiInvalidFileName represents an invalid wiki file name.
ErrWikiReservedName represents a reserved name error.
ErrWontSign explains the first reason why a commit would not be signed There may be other reasons - this is just the first reason found.
ExternalLoginUser makes the connecting between some existing user and additional external login sources.
ExternalTrackerConfig describes external tracker config.
ExternalWikiConfig describes external wiki config.
FindCommentsOptions describes the conditions to Find comments.
FindExternalUserOptions represents an options to find external users.
FindNotificationOptions represent the filters for notifications.
FindOrgMembersOpts represensts find org members condtions.
FindReactionsOptions describes the conditions to Find reactions.
FindReleasesOptions describes the conditions to Find releases.
FindReviewOptions represent possible filters to find reviews.
FindTaskOptions find all tasks.
FindTopicOptions represents the options when fdin topics.
FindTrackedTimesOptions represent the filters for tracked times.
Follow represents relations of user and his/her followers.
GenerateRepoOptions contains the template units to generate.
GetFeedsOptions options for retrieving feeds.
GiteaTemplate holds information about a .gitea/template file.
GPGKey represents a GPG key.
GPGKeyImport the original import of key.
HookEvent represents events that will delivery hook.
HookEvents is a set of web hook events.
HookRequest represents hook task request information.
HookResponse represents hook task response information.
HookTask represents a hook task.
Issue represents an issue or pull request of repository.
IssueAssignees saves all issue assignees.
IssueDependency represents an issue dependency.
IssueLabel represents an issue-label relation.
IssueLockOptions defines options for locking and/or unlocking an issue/PR.
IssuesConfig describes issues config.
IssuesOptions represents options of an issue.
IssueStats represents issue statistic information.
IssueStatsOptions contains parameters accepted by GetIssueStats.
IssueUser represents an issue-user relation.
IssueWatch is connection request for receiving issue notification.
Label represents a label of repository for issues.
LDAPConfig holds configuration for LDAP login source.
LFSLock represents a git lfs lock of repository.
LFSMetaObject stores metadata for LFS tracked files.
LFSTokenResponse defines the JSON structure in which the JWT token is stored.
ListOptions options to paginate results.
LoginSource represents an external way for authorizing users.
Milestone represents a milestone of repository.
MilestonesStats represents milestone statistic information.
Mirror represents mirror information of a repository.
NewCommitStatusOptions holds options for creating a CommitStatus.
NewIssueOptions represents the options of a new issue.
Notice represents a system notice for admin.
Notification represents a notification.
OAuth2Application represents an OAuth2 client (RFC 6749).
OAuth2AuthorizationCode is a code to obtain an access token in combination with the client secret once.
OAuth2Config holds configuration for the OAuth2 login source.
OAuth2Grant represents the permission of an user for a specifc application to access resources.
OAuth2Provider describes the display values of a single OAuth2 provider.
OAuth2Token represents a JWT token used to authenticate a client.
OrgUser represents an organization-user relation.
PAMConfig holds configuration for the PAM login source.
Permission contains all the permissions related variables to a repository for a user.
ProtectedBranch struct.
PublicKey represents a user or deploy SSH public key.
PullRequest represents relation between pull request and repositories.
PullRequestsConfig describes pull requests config.
PullRequestsOptions holds the options for PRs.
Reaction represents a reactions on issues and comments.
ReactionOptions defines options for creating or deleting reactions.
Release represents a release of repository.
RepoIndexerStatus status of a repo's entry in the repo indexer For now, implicitly refers to default branch.
RepoRedirect represents that a repo name should be redirected to another.
Repository represents a git repository.
RepoTopic represents associated repositories and topics.
RepoUnit describes all units of a repository.
Review represents collection of code comments giving feedback for a PR.
SearchMembersOptions holds the search options.
SearchOrganizationsOptions options to filter organizations.
SearchRepoOptions holds the search options.
SearchTeamOptions holds the search options.
SearchUserOptions contains the options for searching.
SignCommit represents a commit with validation of signature.
SignCommitWithStatuses represents a commit with validation of signature and status state.
SMTPConfig holds configuration for the SMTP login source.
SSPIConfig holds configuration for SSPI single sign-on.
Star represents a starred repo by an user.
Statistic contains the database statistics.
Stopwatch represents a stopwatch for time tracking.
Task represents a task.
Team represents a organization team.
TeamRepo represents an team-repository relation.
TeamUnit describes all units of a repository.
TeamUser represents an team-user relation.
Topic represents a topic of repositories.
TrackedTime represents a time that was spent for a specific issue.
TwoFactor represents a two-factor authentication token.
U2FRegistration represents the registration data and counter of a security key.
Unit is a section of one repository.
UnitConfig describes common unit config.
UpdateOAuth2ApplicationOptions holds options to update an oauth2 application.
Upload represent a uploaded file to a repo to be deleted when moved.
User represents the object of individual and member of organization.
UserCommit represents a commit with validation of user.
UserHeatmapData represents the data needed to create a heatmap.
UserIssueStatsOptions contains parameters accepted by GetUserIssueStats.
UserOpenID is the list of all OpenID identities of a user.
Watch is connection request for receiving repository notification.
Webhook represents a web hook object.
WhitelistOptions represent all sorts of whitelists used for protected branches.
XORMLogBridge a logger bridge from Logger to xorm.

# Interfaces

AccessibleReposEnvironment operations involving the repositories that are accessible to a particular user.
Committer represents an interface to Commit or Close the dbcontext.
Engine represents a xorm engine or session.

# Type aliases

AccessMode specifies the users access mode.
ActionList defines a list of actions.
ActionType represents the type of an action.
CodeComments represents comments on code by using this structure: FILENAME -> LINE (+ == proposed; - == previous) -> COMMENTS.
CommentList defines a list of comments.
CommentTag defines comment tag type.
CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
DependencyType Defines Dependency Type Constants.
HookContentType is the content type of a web hook.
HookEventType is the type of an hook event.
HookStatus is the status of a web hook.
HookTaskType is the type of an hook task.
IssueList defines a list of issues.
IssueWatchList contains IssueWatch.
KeyType specifies the key type.
LoginType represents an login type.
MergeStyle represents the approach to merge commits into base branch.
MilestoneList is a list of milestones offering additional functionality.
MirrorRepositoryList contains the mirror repositories.
NoticeType describes the notice type.
NotificationList contains a list of notifications.
No description provided by the author
No description provided by the author
OAuth2TokenType represents the type of token for an oauth application.
PullRequestList defines a list of pull requests.
PullRequestStatus defines pull request status.
PullRequestType defines pull request type.
ReactionList represents list of reactions.
RepositoryList contains a list of repositories.
RepositoryStatus defines the status of repository.
RepoWatchMode specifies what kind of watch the user has on a repository.
ReviewType defines the sort of feedback a review gives.
SearchOrderBy is used to sort the result.
Stopwatches is a List ful of Stopwatch.
TrackedTimeList is a List of TrackedTime's.
U2FRegistrationList is a list of *U2FRegistration.
UnitType is Unit's Type.
UserList is a list of user.
UserType defines the user type.