package
0.5.13
Repository: https://github.com/vkolev/gogs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddAccess adds new access record.
No description provided by the author
No description provided by the author
AddOrgUser adds new user to given organization.
AddPublicKey adds new public key to database and authorized_keys file.
AddTeamMember adds new member to given team of given organization.
No description provided by the author
No description provided by the author
No description provided by the author
ChangeMilestoneAssign changes assignment of milestone for issue.
ChangeMilestoneIssueStats updates the open/closed issues counter and progress for the milestone associated witht the given 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.
CheckPublicKeyString checks if the given public key string is recognized by SSH.
CleanUnbindOauth deletes all unbind OAuthes.
CommitRepoAction adds new action for committing repository.
CountNotices returns number of notices.
CountOrganizations returns number of organizations.
CountRepositories returns number of repositories.
CountUsers returns number of users.
CreateAttachment creates a new attachment inside the database and.
CreateComment creates comment of issue or commit.
CreateHookTask creates a new hook task, it handles conversion from Payload to PayloadContent.
CreateNotice creates new system notice.
CreateOrganization creates record of a new organization.
CreateRelease creates a new release of repository.
CreateRepository creates a repository for given user or organization.
CreateRepositoryNotice creates new system notice with type NOTICE_REPOSITORY.
No description provided by the author
CreateUser creates record of a new user.
CreateWebhook creates a new web hook.
DeleteAccess deletes access record.
DeleteAccessTokenById deletes access token by given ID.
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.
No description provided by the author
DeleteInactivateUsers deletes all inactivate users and email addresses.
DeleteLabel delete a label of given repository.
DeleteMilestone deletes a milestone.
DeleteNotice deletes a system notice by given ID.
DeleteOauth2ById deletes a oauth2 by ID.
TODO: need some kind of mechanism to record failure.
DeletePublicKey deletes SSH key information both in database and authorized_keys file.
DeleteRepository deletes a repository for a user or organization.
DeleteRepositoryArchives deletes all repositories' archives.
DeleteTeam deletes given team.
FIXME: need some kind of mechanism to record failure.
DeleteWebhook deletes webhook of repository.
DeliverHooks checks and delivers undelivered hooks.
No description provided by the author
No description provided by the author
DumpDatabase dumps all data from database to file system.
FollowUser marks someone be another's follower.
No description provided by the author
GetAccessTokenBySha returns access token by given sha1.
GetActiveWebhooksByOrgId returns all active webhooks for an organization.
GetActiveWebhooksByRepoId returns all active webhooks of repository.
Attachment returns the attachment by given ID.
GetAttachmentsByComment returns a list of attachments for the given comment.
GetAttachmentsByIssue returns a list of attachments for the given issue.
No description provided by the author
No description provided by the author
GetCollaborativeRepos returns a list of repositories that user is collaborator.
GetCollaboratorNames returns a list of user name of repository's collaborators.
GetCollaborators returns a list of users of repository's collaborators.
GetCommentById returns the comment with the given id.
No description provided by the author
No description provided by the author
Get all email addresses.
GetFeeds returns action list of given user in given context.
GetHighestAuthorize returns highest repository authorize level for given user and team.
GetIssueById returns an issue by ID.
GetIssueByIndex returns issue by given index in repository.
GetIssueByRef returns an Issue specified by a GFM reference.
GetIssueComments returns list of comment by given issue id.
GetIssueCountByPoster returns number of issues of repository by poster.
GetIssues returns a list of issues by given conditions.
GetIssuesByLabel returns a list of issues by given label and repository.
GetIssueStats returns issue statistic information by given conditions.
GetIssueUserPairs returns issue-user pairs by given repository and user.
GetIssueUserPairsByMode returns issue-user pairs by given repository and user.
GetIssueUserPairsByRepoIds returns issue-user pairs by given repository IDs.
GetLabelById returns a label by given ID.
GetLabels returns a list of labels of given repository ID.
No description provided by the author
GetMilestoneById returns the milestone by given ID.
GetMilestoneByIndex returns the milestone of given repository and index.
GetMilestones returns a list of milestones of given repository and status.
No description provided by the author
GetNotices returns given number of notices with offset.
No description provided by the author
No description provided by the author
GetOauthByUserId returns list of oauthes that are related to given user.
GetOrganizations returns given number of organizations with offset.
GetOrgByName returns organization by given name.
GetOrgUsersByOrgId returns all organization-user relations by organization ID.
GetOrgUsersByUserId returns all organization-user relations by user ID.
GetPublicKeyById returns public key by given ID.
GetRecentUpdatedRepositories returns the list of repositories that are recently updated.
GetRelease returns release by given ID.
GetReleasesByRepoId returns a list of releases of repository.
GetRepositories returns a list of repositories of given user.
GetRepositoriesWithUsers returns given number of repository objects with offset.
GetRepositoryById returns the repository by given id if exists.
GetRepositoryByName returns the repository by given name under user if exists.
GetRepositoryByRef returns a Repository specified by a GFM reference.
GetRepositoryCount returns the total number of repositories of user.
No description provided by the author
No description provided by the author
GetTeam returns team by given team name and organization.
GetTeamById returns team by given ID.
GetTeamMembers returns all members in given team of organization.
No description provided by the author
GetUserByEmail returns the user object by given e-mail if exists.
GetUserById returns the user object by given ID if exists.
No description provided by the author
GetUserByName returns user by given name.
GetUserEmailsByNames returns a list of e-mails corresponds to names.
GetUserIdsByNames returns a slice of ids corresponds to names.
GetUserIssueStats returns issue statistic information for dashboard by given conditions.
GetUsers returns given number of user objects with offset.
GetUserSalt returns a ramdom user salt token.
GetUserTeams returns all teams that user belongs to in given organization.
GetWatchers returns all watchers of given repository.
GetWebhookById returns webhook by given ID.
GetWebhooksByOrgId returns all webhooks for an organization.
GetWebhooksByRepoId returns all webhooks of repository.
GitFsck calls 'git fsck' to check repository health.
No description provided by the author
HasAccess returns true if someone can read or write to given repository.
IsEmailUsed returns true if the e-mail has been used.
IsLegalName returns false if name contains illegal characters.
IsOrganizationMember returns true if given user is member of organization.
IsOrganizationOwner returns true if given user is in the owner team.
IsOrgEmailUsed returns true if the e-mail has been used in organization account.
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.
IsStaring checks if user has starred given repository.
IsTeamMember returns true if given user is a member of team.
IsUserExist checks if given user name exist, the user name should be noncased unique.
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.
ListAccessTokens returns a list of access tokens belongs to given user.
ListPublicKeys returns a list of public keys belongs to given user.
No description provided by the author
No description provided by the author
No description provided by the author
Query if name/passwd can login against the LDAP directory pool Create a local user if success Return the same LoginUserPlain semantic FIXME: https://github.com/gogits/gogs/issues/672.
Query if name/passwd can login against the LDAP directory pool Create a local user if success Return the same LoginUserPlain semantic.
No description provided by the author
MigrateRepository migrates a existing repository from other project hosting.
MirrorRepository creates a mirror repository from source.
MirrorUpdate checks and updates mirror repositories.
NewAccessToken creates new access token.
No description provided by the author
CreateIssue creates new issue for repository.
NewIssueUserPairs adds new issue-user pairs for new issue of repository.
NewLabel creates new label of repository.
NewMilestone creates new milestone of repository.
NewRepoAction adds new action for creating repository.
No description provided by the author
NewTeam creates a record of new team.
No description provided by the author
NotifyWatchers creates batch of actions for every watcher.
PairsContains returns true when pairs list contains given issue.
Parse any key string in openssh or ssh2 format to clean openssh string (rfc4253).
No description provided by the author
No description provided by the author
RemoveOrgUser removes user from given organization.
RemoveTeamMember removes member from given team of given organization.
RepoPath returns repository path by given user and repository name.
RewriteAllPublicKeys removes any authorized key and rewrite all keys from database again.
RewriteRepositoryUpdateHook rewrites all repositories' update hook.
SearchRepositoryByName returns given number of repositories whose name contains keyword.
SearchUserByName returns given number of users whose name contains keyword.
No description provided by the author
No description provided by the author
see: https://api.slack.com/docs/formatting.
No description provided by the author
SortReleases sorts releases by number of commits and created time.
Star or unstar repository.
ToHookContentType returns HookContentType by given name.
ToHookTaskType returns HookTaskType by given name.
TransferOwnership transfers all corresponding setting from old user to new one.
TransferRepoAction adds new action for transferring repository.
UnFollowUser unmarks someone be another's follower.
No description provided by the author
UpdateAccess updates access information.
UpdateAccess updates access information with session for rolling back.
UpdateHookTask updates information of hook task.
UpdateIssue updates information of issue.
UpdateIssueUserPairByAssignee updates issue-user pair for assigning.
UpdateIssueUserPairByRead updates issue-user pair for reading.
UpdateIssueUserPairsByMentions updates issue-user pairs by mentioning.
UpdateIssueUserByStatus updates issue-user pairs by issue status.
UpdateLabel updates label information.
No description provided by the author
UpdateMilestone updates information of given milestone.
No description provided by the author
UpdateOauth2 updates given OAuth2.
UpdatePublicKey updates given public key.
UpdateRelease updates information of a release.
No description provided by the author
No description provided by the author
UpdateTeam updates information of team.
UpdateUser updates user's information.
UpdateWebhook updates information of webhook.
UserPath returns the path absolute path of user repositories.
UserSignIn validates user name and password.
ValidateCommitsWithEmails checks if authors' e-mails of commits are corresponding to users.
ValidateCommitWithEmail chceck if author's e-mail of commit is corresponsind to a user.
verify active code when active account.
verify active code when active account.
Watch or unwatch repository.

# Constants

No description provided by the author
10.
No description provided by the author
Plain comment, can be associated with a commit (CommitId > 0) and a line (Line > 0).
Reference from some commit (not part of a pull request).
References.
Reference from some pull request.
No description provided by the author
5.
6.
1.
2.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Diff line types.
Diff line types.
Diff line types.
Diff line types.
No description provided by the author
Filter modes.
Filter modes.
Filter modes.
4.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Historic reason to make it starts at 0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
7.
No description provided by the author
9.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
3.
8.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Same as Github.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SSH directory.
No description provided by the author

# Structs

Access represents the accessibility of user to repository.
AccessToken represents a personal access token.
Action represents user operation type and other information to repository., it implemented interface base.Actioner so that can be used in template render.
No description provided by the author
CloneLink represents different types of clone URLs of repository.
CollaborativeRepository represents a repository with collaborative information.
Comment represents a comment in commit and issue page.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EmailAdresses is the list of all email addresses of a user.
Follow is connection request for receiving user notification.
HookEvent represents events that will delivery hook.
HookTask represents a hook task.
Issue represents an issue or pull request of repository.
IssueStats represents issue statistic information.
IssueUser represents an issue-user relation.
Label represents a label of repository for issues.
No description provided by the author
No description provided by the author
Milestone represents a milestone of repository.
Mirror represents a mirror information of repository.
Notice represents a system notice for admin.
No description provided by the author
OrgUser represents an organization-user relation.
Payload represents a payload information of hook.
FIXME: just use go-gogs-client structs maybe?.
No description provided by the author
No description provided by the author
PublicKey represents a SSH key.
Release represents a release of repository.
No description provided by the author
Repository represents a git repository.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Team represents a organization team.
TeamUser represents an team-user relation.
No description provided by the author
User represents the object of individual and member of organization.
UserCommit represents a commit with validation of user.
Watch is connection request for receiving repository notification.
Webhook represents a web hook object.

# Interfaces

No description provided by the author
Engine represents a xorm engine or session.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author