Documentation
¶
Index ¶
- Constants
- Variables
- func AccessibleRepoIDsQuery(user *user_model.User) *builder.Builder
- func AccessibleRepositoryCondition(user *user_model.User, unitType unit.Type) builder.Cond
- func ActivatePagesDomainSSL(ctx context.Context, id int64) error
- func AddReleaseAttachments(ctx context.Context, releaseID int64, attachmentUUIDs []string) (err error)
- func AttachmentRelativePath(uuid string) string
- func ChangeCollaborationAccessMode(ctx context.Context, repo *Repository, uid int64, mode perm.AccessMode) error
- func CleanRepoLicenses(ctx context.Context, repo *Repository) error
- func ClearRepoStars(ctx context.Context, repoID int64) error
- func ComposeHTTPSCloneURL(ctx context.Context, owner, repo string) string
- func ComposeSSHCloneURL(doer *user_model.User, ownerName, repoName string) string
- func ComposeTeaCloneCommand(ctx context.Context, owner, repo string) string
- func CopyLanguageStat(ctx context.Context, originalRepo, destRepo *Repository) error
- func CopyLicense(ctx context.Context, originalRepo, destRepo *Repository) error
- func CountNullArchivedRepository(ctx context.Context) (int64, error)
- func CountOrgRepoStars(ctx context.Context, orgID int64) (int64, error)
- func CountOrphanedAttachments(ctx context.Context) (int64, error)
- func CountOrphanedTopics(ctx context.Context) (int64, error)
- func CountRepositories(ctx context.Context, opts CountRepositoryOptions) (int64, error)
- func CountRepository(ctx context.Context, opts SearchRepoOptions) (int64, error)
- func CreateOrUpdateWikiIndex(ctx context.Context, idx *WikiIndex) error
- func CreatePagesConfig(ctx context.Context, config *PagesConfig) error
- func CreatePagesDomain(ctx context.Context, domain *PagesDomain) error
- func CreatePendingRepositoryTransfer(ctx context.Context, doer, newOwner *user_model.User, repoID int64, ...) error
- func CreateUploadSession(ctx context.Context, session *UploadSession) error
- func DecrementRepoForkNum(ctx context.Context, repoID int64) error
- func DeleteAllRepoArchives(ctx context.Context) error
- func DeleteAttachment(ctx context.Context, a *Attachment, remove bool) error
- func DeleteAttachments(ctx context.Context, attachments []*Attachment, remove bool) (int, error)
- func DeleteAttachmentsByComment(ctx context.Context, commentID int64, remove bool) (int, error)
- func DeleteAttachmentsByIssue(ctx context.Context, issueID int64, remove bool) (int, error)
- func DeleteAttachmentsByRelease(ctx context.Context, releaseID int64) error
- func DeleteExpiredUploadSessions(ctx context.Context) (int, error)
- func DeleteMirrorByRepoID(ctx context.Context, repoID int64) error
- func DeleteOrphanedAttachments(ctx context.Context) error
- func DeleteOrphanedTopics(ctx context.Context) (int64, error)
- func DeletePagesConfig(ctx context.Context, repoID int64) error
- func DeletePagesDomain(ctx context.Context, id int64) error
- func DeletePagesDomainsByRepoID(ctx context.Context, repoID int64) error
- func DeletePushMirrors(ctx context.Context, opts PushMirrorOptions) error
- func DeleteRedirect(ctx context.Context, ownerID int64, repoName string) error
- func DeleteRepoReleases(ctx context.Context, repoID int64) error
- func DeleteRepositoryTransfer(ctx context.Context, repoID int64) error
- func DeleteUploadByUUID(ctx context.Context, uuid string) error
- func DeleteUploadSession(ctx context.Context, session *UploadSession) error
- func DeleteUploadSessionByUUID(ctx context.Context, uuid string) error
- func DeleteUploads(ctx context.Context, uploads ...*Upload) (err error)
- func DeleteWikiIndex(ctx context.Context, repoID int64, pageName string) error
- func DeleteWikiIndexByRepo(ctx context.Context, repoID int64) error
- func DisablePages(ctx context.Context, repoID int64) error
- func EnablePages(ctx context.Context, repoID int64, template PagesTemplate) error
- func ExistAttachmentsByUUID(ctx context.Context, uuid string) (bool, error)
- func ExistsRepoArchiverWithStoragePath(ctx context.Context, storagePath string) (bool, error)
- func ExistsWithAvatarAtStoragePath(ctx context.Context, storagePath string) (bool, error)
- func FindTagsByCommitIDs(ctx context.Context, repoID int64, commitIDs ...string) (map[string][]*Release, error)
- func FindUserCodeAccessibleOwnerRepoIDs(ctx context.Context, ownerID int64, user *user_model.User) ([]int64, error)
- func FindUserCodeAccessibleRepoIDs(ctx context.Context, user *user_model.User) ([]int64, error)
- func FixNullArchivedRepository(ctx context.Context) (int64, error)
- func GenerateTopics(ctx context.Context, templateRepo, generateRepo *Repository) error
- func GenerateVerificationToken() (string, error)
- func GetIssuePostersWithSearch(ctx context.Context, repo *Repository, isPull bool, search string, ...) ([]*user_model.User, error)
- func GetReleaseAttachments(ctx context.Context, rels ...*Release) (err error)
- func GetRepoAssignees(ctx context.Context, repo *Repository) (_ []*user_model.User, err error)
- func GetRepoWatchers(ctx context.Context, repoID int64, opts db.ListOptions) ([]*user_model.User, error)
- func GetRepoWatchersIDs(ctx context.Context, repoID int64) ([]int64, error)
- func GetRepositoriesMapByIDs(ctx context.Context, ids []int64) (map[int64]*Repository, error)
- func GetStargazers(ctx context.Context, repo *Repository, opts db.ListOptions) ([]*user_model.User, error)
- func GetTagNamesByRepoID(ctx context.Context, repoID int64) ([]string, error)
- func GetUnindexedRepos(ctx context.Context, indexerType RepoIndexerType, maxRepoID int64, ...) ([]int64, error)
- func GetWikiIndexCount(ctx context.Context, repoID int64) (int64, error)
- func GetWikiTotalWordCount(ctx context.Context, repoID int64) (int64, error)
- func HasForkedRepo(ctx context.Context, ownerID, repoID int64) bool
- func IncrementRepoForkNum(ctx context.Context, repoID int64) error
- func InsertMirror(ctx context.Context, mirror *Mirror) error
- func InsertReleases(ctx context.Context, rels ...*Release) error
- func IsCollaborator(ctx context.Context, repoID, userID int64) (bool, error)
- func IsErrAttachmentNotExist(err error) bool
- func IsErrNoPendingTransfer(err error) bool
- func IsErrPagesConfigNotExist(err error) bool
- func IsErrPagesDomainAlreadyExist(err error) bool
- func IsErrPagesDomainNotExist(err error) bool
- func IsErrReachLimitOfRepo(err error) bool
- func IsErrRedirectNotExist(err error) bool
- func IsErrReleaseAlreadyExist(err error) bool
- func IsErrReleaseNotExist(err error) bool
- func IsErrRepoAlreadyExist(err error) bool
- func IsErrRepoFilesAlreadyExist(err error) bool
- func IsErrRepoNotExist(err error) bool
- func IsErrRepoTransferInProgress(err error) bool
- func IsErrTopicNotExist(err error) bool
- func IsErrUnitTypeNotExist(err error) bool
- func IsErrUploadNotExist(err error) bool
- func IsErrUploadSessionExpired(err error) bool
- func IsErrUploadSessionNotExist(err error) bool
- func IsErrUserDoesNotHaveAccessToRepo(err error) bool
- func IsErrUserOwnRepos(err error) bool
- func IsErrWikiAlreadyExist(err error) bool
- func IsErrWikiInvalidFileName(err error) bool
- func IsErrWikiReservedName(err error) bool
- func IsOwnerMemberCollaborator(ctx context.Context, repo *Repository, userID int64) (bool, error)
- func IsPagesEnabled(ctx context.Context, repoID int64) (bool, error)
- func IsReleaseExist(ctx context.Context, repoID int64, tagName string) (bool, error)
- func IsRepositoryModelExist(ctx context.Context, u *user_model.User, repoName string) (bool, error)
- func IsRepositoryTransferExist(ctx context.Context, repoID int64) (bool, error)
- func IsStaring(ctx context.Context, userID, repoID int64) bool
- func IsUsableRepoName(name string) error
- func IsValidSSHAccessRepoName(name string) bool
- func IsWatchMode(mode WatchMode) bool
- func IsWatching(ctx context.Context, userID, repoID int64) bool
- func LookupRedirect(ctx context.Context, ownerID int64, repoName string) (int64, error)
- func MirrorsIterate(ctx context.Context, limit int, f func(idx int, bean any) error) error
- func NewRedirect(ctx context.Context, ownerID, repoID int64, oldRepoName, newRepoName string) error
- func PushMirrorsIterate(ctx context.Context, limit int, f func(idx int, bean any) error) error
- func PushUpdateDeleteTags(ctx context.Context, repo *Repository, tags []string) error
- func RelativePath(ownerName, repoName string) string
- func RelativeWikiPath(ownerName, repoName string) string
- func RemoveTopicsFromRepo(ctx context.Context, repoID int64) error
- func RepoPath(userName, repoName string) string
- func SanitizeAndValidateTopics(topics []string) (validTopics, invalidTopics []string)
- func SaveTopics(ctx context.Context, repoID int64, topicNames ...string) error
- func SearchRepositoryCondition(opts SearchRepoOptions) builder.Cond
- func SearchRepositoryIDs(ctx context.Context, opts SearchRepoOptions) ([]int64, int64, error)
- func SearchRepositoryIDsByCondition(ctx context.Context, cond builder.Cond) ([]int64, error)
- func SetArchiveRepoState(ctx context.Context, repo *Repository, isArchived bool) (err error)
- func StarRepo(ctx context.Context, doer *user_model.User, repo *Repository, star bool) error
- func TestRepositoryReadyForTransfer(status RepositoryStatus) error
- func TouchMirror(ctx context.Context, m *Mirror) error
- func UpdateAttachment(ctx context.Context, atta *Attachment) error
- func UpdateAttachmentByUUID(ctx context.Context, attach *Attachment, cols ...string) error
- func UpdateDefaultBranch(ctx context.Context, repo *Repository) error
- func UpdateIndexerStatus(ctx context.Context, repo *Repository, indexerType RepoIndexerType, sha string) error
- func UpdateLanguageStats(ctx context.Context, repo *Repository, commitID string, stats map[string]int64) error
- func UpdateMirror(ctx context.Context, m *Mirror) error
- func UpdatePagesConfig(ctx context.Context, config *PagesConfig) error
- func UpdatePagesDomain(ctx context.Context, domain *PagesDomain) error
- func UpdatePushMirror(ctx context.Context, m *PushMirror) error
- func UpdatePushMirrorInterval(ctx context.Context, m *PushMirror) error
- func UpdateRelease(ctx context.Context, rel *Release) error
- func UpdateReleaseNumCommits(ctx context.Context, rel *Release) error
- func UpdateReleasesMigrationsByType(ctx context.Context, gitServiceType structs.GitServiceType, ...) error
- func UpdateRepoArchiverStatus(ctx context.Context, archiver *RepoArchiver) error
- func UpdateRepoIssueNumbers(ctx context.Context, repoID int64, isPull, isClosed bool) error
- func UpdateRepoLicenses(ctx context.Context, repo *Repository, commitID string, licenses []string) error
- func UpdateRepoSize(ctx context.Context, repoID, gitSize, lfsSize int64) error
- func UpdateRepoUnit(ctx context.Context, unit *RepoUnit) error
- func UpdateRepoUnitPublicAccess(ctx context.Context, unit *RepoUnit) error
- func UpdateRepositoryColsNoAutoTime(ctx context.Context, repo *Repository, colName string, moreColNames ...string) error
- func UpdateRepositoryColsWithAutoTime(ctx context.Context, repo *Repository, colName string, moreColNames ...string) error
- func UpdateRepositoryOwnerName(ctx context.Context, oldUserName, newUserName string) error
- func UpdateRepositoryOwnerNames(ctx context.Context, ownerID int64, ownerName string) error
- func UpdateRepositoryUpdatedTime(ctx context.Context, repoID int64, updateTime time.Time) error
- func UpdateUploadSession(ctx context.Context, session *UploadSession) error
- func UpdateUploadSessionChunks(ctx context.Context, session *UploadSession) error
- func UploadSessionTempPath(uuid string) string
- func UserAccessRepoCond(idStr string, userID int64) builder.Cond
- func UserAssignedRepoCond(id string, userID int64) builder.Cond
- func UserCollaborationRepoCond(idStr string, userID int64) builder.Cond
- func UserCreateIssueRepoCond(id string, userID int64, isPull bool) builder.Cond
- func UserMentionedRepoCond(id string, userID int64) builder.Cond
- func UserOrgPublicUnitRepoCond(userID, orgID int64) builder.Cond
- func UserOrgTeamRepoCond(idStr string, userID int64) builder.Cond
- func UserOrgUnitRepoCond(idStr string, userID, orgID int64, unitType unit.Type) builder.Cond
- func UserOwnedRepoCond(userID int64) builder.Cond
- func ValidateTopic(topic string) bool
- func VerifyPagesDomain(ctx context.Context, id int64) error
- func WatchIfAuto(ctx context.Context, userID, repoID int64, isWrite bool) error
- func WatchRepo(ctx context.Context, doer *user_model.User, repo *Repository, doWatch bool) error
- type AccessibleReposEnvironment
- type ActionsConfig
- func (cfg *ActionsConfig) AddCollaborativeOwner(ownerID int64)
- func (cfg *ActionsConfig) DisableWorkflow(file string)
- func (cfg *ActionsConfig) EnableWorkflow(file string)
- func (cfg *ActionsConfig) FromDB(bs []byte) error
- func (cfg *ActionsConfig) IsCollaborativeOwner(ownerID int64) bool
- func (cfg *ActionsConfig) IsWorkflowDisabled(file string) bool
- func (cfg *ActionsConfig) RemoveCollaborativeOwner(ownerID int64)
- func (cfg *ActionsConfig) ToDB() ([]byte, error)
- func (cfg *ActionsConfig) ToString() string
- type ArchiveType
- type ArchiverStatus
- type Attachment
- func GetAttachmentByID(ctx context.Context, id int64) (*Attachment, error)
- func GetAttachmentByReleaseIDFileName(ctx context.Context, releaseID int64, fileName string) (*Attachment, error)
- func GetAttachmentByUUID(ctx context.Context, uuid string) (*Attachment, error)
- func GetAttachmentsByCommentID(ctx context.Context, commentID int64) ([]*Attachment, error)
- func GetAttachmentsByIssueID(ctx context.Context, issueID int64) ([]*Attachment, error)
- func GetAttachmentsByIssueIDImagesLatest(ctx context.Context, issueID int64) ([]*Attachment, error)
- func GetAttachmentsByUUIDs(ctx context.Context, uuids []string) ([]*Attachment, error)
- type CloneLink
- type Collaboration
- type Collaborator
- type CountRepositoryOptions
- type ErrAttachmentNotExist
- type ErrNoPendingRepoTransfer
- type ErrPagesConfigNotExist
- type ErrPagesDomainAlreadyExist
- type ErrPagesDomainNotExist
- type ErrReachLimitOfRepo
- type ErrRedirectNotExist
- type ErrReleaseAlreadyExist
- type ErrReleaseNotExist
- type ErrRepoAlreadyExist
- type ErrRepoFilesAlreadyExist
- type ErrRepoIsArchived
- type ErrRepoNotExist
- type ErrRepoTransferInProgress
- type ErrTopicNotExist
- type ErrUnitTypeNotExist
- type ErrUploadNotExist
- type ErrUploadSessionExpired
- type ErrUploadSessionNotExist
- type ErrUserDoesNotHaveAccessToRepo
- type ErrUserOwnRepos
- type ErrWikiAlreadyExist
- type ErrWikiInvalidFileName
- type ErrWikiReservedName
- type ExternalTrackerConfig
- type ExternalWikiConfig
- type FindCollaborationOptions
- type FindReleasesOptions
- type FindRepoArchiversOption
- type FindTopicOptions
- type IssuesConfig
- type LanguageStat
- type LanguageStatList
- type MergeStyle
- type Mirror
- type PagesConfig