Documentation ¶
Index ¶
- func CheckRepoStats(ctx context.Context) error
- func DoctorUserStarNum(ctx context.Context) (err error)
- func Init(ctx context.Context) error
- func IsErrCommitIDDoesNotMatch(err error) bool
- func IsErrDeleteLastAdminUser(err error) bool
- func IsErrDisallowedToMerge(err error) bool
- func IsErrFilePathInvalid(err error) bool
- func IsErrFilePathProtected(err error) bool
- func IsErrFilenameInvalid(err error) bool
- func IsErrInvalidCloneAddr(err error) bool
- func IsErrInvalidMergeStyle(err error) bool
- func IsErrInvalidTagName(err error) bool
- func IsErrMergeConflicts(err error) bool
- func IsErrMergeDivergingFastForwardOnly(err error) bool
- func IsErrMergeUnrelatedHistories(err error) bool
- func IsErrProtectedTagName(err error) bool
- func IsErrPullRequestHasMerged(err error) bool
- func IsErrRebaseConflicts(err error) bool
- func IsErrRepoFileAlreadyExists(err error) bool
- func IsErrRepoFileDoesNotExist(err error) bool
- func IsErrSHADoesNotMatch(err error) bool
- func IsErrSHANotFound(err error) bool
- func IsErrSHAOrCommitIDNotProvided(err error) bool
- func IsErrTagAlreadyExists(err error) bool
- func IsErrUpdateTaskNotExist(err error) bool
- func IsErrUserCannotCommit(err error) bool
- func IsErrUserHasOrgs(err error) bool
- func IsErrUserOwnPackages(err error) bool
- func IsErrUserOwnRepos(err error) bool
- func StatsCorrectSQL(ctx context.Context, sql string, id int64) error
- func UpdateRepoStats(ctx context.Context, id int64) error
- type ErrCommitIDDoesNotMatch
- type ErrDeleteLastAdminUser
- type ErrDisallowedToMerge
- type ErrFilePathInvalid
- type ErrFilePathProtected
- type ErrFilenameInvalid
- type ErrInvalidCloneAddr
- type ErrInvalidMergeStyle
- type ErrInvalidTagName
- type ErrMergeConflicts
- type ErrMergeDivergingFastForwardOnly
- type ErrMergeUnrelatedHistories
- type ErrProtectedTagName
- type ErrPullRequestHasMerged
- type ErrRebaseConflicts
- type ErrRepoFileAlreadyExists
- type ErrRepoFileDoesNotExist
- type ErrSHADoesNotMatch
- type ErrSHANotFound
- type ErrSHAOrCommitIDNotProvided
- type ErrTagAlreadyExists
- type ErrUpdateTaskNotExist
- type ErrUserCannotCommit
- type ErrUserHasOrgs
- type ErrUserOwnPackages
- type ErrUserOwnRepos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRepoStats ¶
CheckRepoStats checks the repository stats
func DoctorUserStarNum ¶
DoctorUserStarNum recalculate Stars number for all user
func IsErrCommitIDDoesNotMatch ¶
IsErrCommitIDDoesNotMatch checks if an error is a ErrCommitIDDoesNotMatch.
func IsErrDeleteLastAdminUser ¶
IsErrDeleteLastAdminUser checks if an error is a ErrDeleteLastAdminUser.
func IsErrDisallowedToMerge ¶
IsErrDisallowedToMerge checks if an error is an ErrDisallowedToMerge.
func IsErrFilePathInvalid ¶
IsErrFilePathInvalid checks if an error is an ErrFilePathInvalid.
func IsErrFilePathProtected ¶
IsErrFilePathProtected checks if an error is an ErrFilePathProtected.
func IsErrFilenameInvalid ¶
IsErrFilenameInvalid checks if an error is an ErrFilenameInvalid.
func IsErrInvalidCloneAddr ¶
IsErrInvalidCloneAddr checks if an error is a ErrInvalidCloneAddr.
func IsErrInvalidMergeStyle ¶
IsErrInvalidMergeStyle checks if an error is a ErrInvalidMergeStyle.
func IsErrInvalidTagName ¶
IsErrInvalidTagName checks if an error is a ErrInvalidTagName.
func IsErrMergeConflicts ¶
IsErrMergeConflicts checks if an error is a ErrMergeConflicts.
func IsErrMergeDivergingFastForwardOnly ¶
IsErrMergeDivergingFastForwardOnly checks if an error is a ErrMergeDivergingFastForwardOnly.
func IsErrMergeUnrelatedHistories ¶
IsErrMergeUnrelatedHistories checks if an error is a ErrMergeUnrelatedHistories.
func IsErrProtectedTagName ¶
IsErrProtectedTagName checks if an error is a ErrProtectedTagName.
func IsErrPullRequestHasMerged ¶
IsErrPullRequestHasMerged checks if an error is a ErrPullRequestHasMerged.
func IsErrRebaseConflicts ¶
IsErrRebaseConflicts checks if an error is a ErrRebaseConflicts.
func IsErrRepoFileAlreadyExists ¶
IsErrRepoFileAlreadyExists checks if an error is a ErrRepoFileAlreadyExists.
func IsErrRepoFileDoesNotExist ¶
IsErrRepoFileDoesNotExist checks if an error is a ErrRepoDoesNotExist.
func IsErrSHADoesNotMatch ¶
IsErrSHADoesNotMatch checks if an error is a ErrSHADoesNotMatch.
func IsErrSHANotFound ¶
IsErrSHANotFound checks if an error is a ErrSHANotFound.
func IsErrSHAOrCommitIDNotProvided ¶
IsErrSHAOrCommitIDNotProvided checks if an error is a ErrSHAOrCommitIDNotProvided.
func IsErrTagAlreadyExists ¶
IsErrTagAlreadyExists checks if an error is an ErrTagAlreadyExists.
func IsErrUpdateTaskNotExist ¶
IsErrUpdateTaskNotExist checks if an error is a ErrUpdateTaskNotExist.
func IsErrUserCannotCommit ¶
IsErrUserCannotCommit checks if an error is an ErrUserCannotCommit.
func IsErrUserHasOrgs ¶
IsErrUserHasOrgs checks if an error is a ErrUserHasOrgs.
func IsErrUserOwnPackages ¶
IsErrUserOwnPackages checks if an error is an ErrUserOwnPackages.
func IsErrUserOwnRepos ¶
IsErrUserOwnRepos checks if an error is a ErrUserOwnRepos.
Types ¶
type ErrCommitIDDoesNotMatch ¶
ErrCommitIDDoesNotMatch represents a "CommitIDDoesNotMatch" kind of error.
func (ErrCommitIDDoesNotMatch) Error ¶
func (err ErrCommitIDDoesNotMatch) Error() string
type ErrDeleteLastAdminUser ¶
type ErrDeleteLastAdminUser struct {
UID int64
}
ErrDeleteLastAdminUser represents a "DeleteLastAdminUser" kind of error.
func (ErrDeleteLastAdminUser) Error ¶
func (err ErrDeleteLastAdminUser) Error() string
type ErrDisallowedToMerge ¶
type ErrDisallowedToMerge struct {
Reason string
}
ErrDisallowedToMerge represents an error that a branch is protected and the current user is not allowed to modify it.
func (ErrDisallowedToMerge) Error ¶
func (err ErrDisallowedToMerge) Error() string
func (ErrDisallowedToMerge) Unwrap ¶
func (err ErrDisallowedToMerge) Unwrap() error
type ErrFilePathInvalid ¶
ErrFilePathInvalid represents a "FilePathInvalid" kind of error.
func (ErrFilePathInvalid) Error ¶
func (err ErrFilePathInvalid) Error() string
func (ErrFilePathInvalid) Unwrap ¶
func (err ErrFilePathInvalid) Unwrap() error
type ErrFilePathProtected ¶
ErrFilePathProtected represents a "FilePathProtected" kind of error.
func (ErrFilePathProtected) Error ¶
func (err ErrFilePathProtected) Error() string
func (ErrFilePathProtected) Unwrap ¶
func (err ErrFilePathProtected) Unwrap() error
type ErrFilenameInvalid ¶
type ErrFilenameInvalid struct {
Path string
}
ErrFilenameInvalid represents a "FilenameInvalid" kind of error.
func (ErrFilenameInvalid) Error ¶
func (err ErrFilenameInvalid) Error() string
func (ErrFilenameInvalid) Unwrap ¶
func (err ErrFilenameInvalid) Unwrap() error
type ErrInvalidCloneAddr ¶
type ErrInvalidCloneAddr struct { Host string IsURLError bool IsInvalidPath bool IsProtocolInvalid bool IsPermissionDenied bool LocalPath bool }
ErrInvalidCloneAddr represents a "InvalidCloneAddr" kind of error.
func (*ErrInvalidCloneAddr) Error ¶
func (err *ErrInvalidCloneAddr) Error() string
func (*ErrInvalidCloneAddr) Unwrap ¶
func (err *ErrInvalidCloneAddr) Unwrap() error
type ErrInvalidMergeStyle ¶
type ErrInvalidMergeStyle struct { ID int64 Style repo_model.MergeStyle }
ErrInvalidMergeStyle represents an error if merging with disabled merge strategy
func (ErrInvalidMergeStyle) Error ¶
func (err ErrInvalidMergeStyle) Error() string
func (ErrInvalidMergeStyle) Unwrap ¶
func (err ErrInvalidMergeStyle) Unwrap() error
type ErrInvalidTagName ¶
type ErrInvalidTagName struct {
TagName string
}
ErrInvalidTagName represents a "InvalidTagName" kind of error.
func (ErrInvalidTagName) Error ¶
func (err ErrInvalidTagName) Error() string
func (ErrInvalidTagName) Unwrap ¶
func (err ErrInvalidTagName) Unwrap() error
type ErrMergeConflicts ¶
type ErrMergeConflicts struct { Style repo_model.MergeStyle StdOut string StdErr string Err error }
ErrMergeConflicts represents an error if merging fails with a conflict
func (ErrMergeConflicts) Error ¶
func (err ErrMergeConflicts) Error() string
type ErrMergeDivergingFastForwardOnly ¶
ErrMergeDivergingFastForwardOnly represents an error if a fast-forward-only merge fails because the branches diverge
func (ErrMergeDivergingFastForwardOnly) Error ¶
func (err ErrMergeDivergingFastForwardOnly) Error() string
type ErrMergeUnrelatedHistories ¶
type ErrMergeUnrelatedHistories struct {}
ErrMergeUnrelatedHistories represents an error if merging fails due to unrelated histories
func (ErrMergeUnrelatedHistories) Error ¶
func (err ErrMergeUnrelatedHistories) Error() string
type ErrProtectedTagName ¶
type ErrProtectedTagName struct {
TagName string
}
ErrProtectedTagName represents a "ProtectedTagName" kind of error.
func (ErrProtectedTagName) Error ¶
func (err ErrProtectedTagName) Error() string
func (ErrProtectedTagName) Unwrap ¶
func (err ErrProtectedTagName) Unwrap() error
type ErrPullRequestHasMerged ¶
type ErrPullRequestHasMerged struct { ID int64 IssueID int64 HeadRepoID int64 BaseRepoID int64 HeadBranch string BaseBranch string }
ErrPullRequestHasMerged represents a "PullRequestHasMerged"-error
func (ErrPullRequestHasMerged) Error ¶
func (err ErrPullRequestHasMerged) Error() string
Error does pretty-printing :D
type ErrRebaseConflicts ¶
type ErrRebaseConflicts struct { Style repo_model.MergeStyle CommitSHA string StdOut string StdErr string Err error }
ErrRebaseConflicts represents an error if rebase fails with a conflict
func (ErrRebaseConflicts) Error ¶
func (err ErrRebaseConflicts) Error() string
type ErrRepoFileAlreadyExists ¶
type ErrRepoFileAlreadyExists struct {
Path string
}
ErrRepoFileAlreadyExists represents a "RepoFileAlreadyExist" kind of error.
func (ErrRepoFileAlreadyExists) Error ¶
func (err ErrRepoFileAlreadyExists) Error() string
func (ErrRepoFileAlreadyExists) Unwrap ¶
func (err ErrRepoFileAlreadyExists) Unwrap() error
type ErrRepoFileDoesNotExist ¶
ErrRepoFileDoesNotExist represents a "RepoFileDoesNotExist" kind of error.
func (ErrRepoFileDoesNotExist) Error ¶
func (err ErrRepoFileDoesNotExist) Error() string
func (ErrRepoFileDoesNotExist) Unwrap ¶
func (err ErrRepoFileDoesNotExist) Unwrap() error
type ErrSHADoesNotMatch ¶
ErrSHADoesNotMatch represents a "SHADoesNotMatch" kind of error.
func (ErrSHADoesNotMatch) Error ¶
func (err ErrSHADoesNotMatch) Error() string
type ErrSHANotFound ¶
type ErrSHANotFound struct {
SHA string
}
ErrSHANotFound represents a "SHADoesNotMatch" kind of error.
func (ErrSHANotFound) Error ¶
func (err ErrSHANotFound) Error() string
func (ErrSHANotFound) Unwrap ¶
func (err ErrSHANotFound) Unwrap() error
type ErrSHAOrCommitIDNotProvided ¶
type ErrSHAOrCommitIDNotProvided struct{}
ErrSHAOrCommitIDNotProvided represents a "SHAOrCommitIDNotProvided" kind of error.
func (ErrSHAOrCommitIDNotProvided) Error ¶
func (err ErrSHAOrCommitIDNotProvided) Error() string
type ErrTagAlreadyExists ¶
type ErrTagAlreadyExists struct {
TagName string
}
ErrTagAlreadyExists represents an error that tag with such name already exists.
func (ErrTagAlreadyExists) Error ¶
func (err ErrTagAlreadyExists) Error() string
func (ErrTagAlreadyExists) Unwrap ¶
func (err ErrTagAlreadyExists) Unwrap() error
type ErrUpdateTaskNotExist ¶
type ErrUpdateTaskNotExist struct {
UUID string
}
ErrUpdateTaskNotExist represents a "UpdateTaskNotExist" kind of error.
func (ErrUpdateTaskNotExist) Error ¶
func (err ErrUpdateTaskNotExist) Error() string
func (ErrUpdateTaskNotExist) Unwrap ¶
func (err ErrUpdateTaskNotExist) Unwrap() error
type ErrUserCannotCommit ¶
type ErrUserCannotCommit struct {
UserName string
}
ErrUserCannotCommit represents "UserCannotCommit" kind of error.
func (ErrUserCannotCommit) Error ¶
func (err ErrUserCannotCommit) Error() string
func (ErrUserCannotCommit) Unwrap ¶
func (err ErrUserCannotCommit) Unwrap() error
type ErrUserHasOrgs ¶
type ErrUserHasOrgs struct {
UID int64
}
ErrUserHasOrgs represents a "UserHasOrgs" kind of error.
func (ErrUserHasOrgs) Error ¶
func (err ErrUserHasOrgs) Error() string
type ErrUserOwnPackages ¶
type ErrUserOwnPackages struct {
UID int64
}
ErrUserOwnPackages notifies that the user (still) owns the packages.
func (ErrUserOwnPackages) Error ¶
func (err ErrUserOwnPackages) Error() string
type ErrUserOwnRepos ¶
type ErrUserOwnRepos struct {
UID int64
}
ErrUserOwnRepos represents a "UserOwnRepos" kind of error.
func (ErrUserOwnRepos) Error ¶
func (err ErrUserOwnRepos) Error() string