Versions in this module Expand all Collapse all v0 v0.19.4 May 24, 2023 Changes in this version + const GitAlternativeObjectDirectories + const GitObjectDirectory + const GitPushOptionCount + const GitPushOptionRepoPrivate + const GitPushOptionRepoTemplate + const GitQuarantinePath + func HookPostReceive(ctx context.Context, ownerName, repoName string, opts HookOptions) (*HookPostReceiveResult, ResponseExtra) + func HookProcReceive(ctx context.Context, ownerName, repoName string, opts HookOptions) (*HookProcReceiveResult, ResponseExtra) + func SSHLog(ctx context.Context, isErr bool, msg string) error + func ServCommand(ctx context.Context, keyID int64, ownerName, repoName string, ...) (*ServCommandResults, ResponseExtra) + func ServNoCommand(ctx context.Context, keyID int64) (*asymkey_model.PublicKey, *user_model.User, error) + func UpdatePublicKeyInRepo(ctx context.Context, keyID, repoID int64) error + type Email struct + Message string + Subject string + To []string + type FlushOptions struct + NonBlocking bool + Timeout time.Duration + type GenerateTokenRequest struct + Scope string + type GitPushOptions map[string]string + func (g GitPushOptions) Bool(key string, def bool) bool + type HookOptions struct + ActionPerm int + DeployKeyID int64 + GitAlternativeObjectDirectories string + GitObjectDirectory string + GitPushOptions GitPushOptions + GitQuarantinePath string + IsWiki bool + NewCommitIDs []string + OldCommitIDs []string + PullRequestID int64 + RefFullNames []string + UserID int64 + UserName string + type HookPostReceiveBranchResult struct + Branch string + Create bool + Message bool + URL string + type HookPostReceiveResult struct + Err string + RepoWasEmpty bool + Results []HookPostReceiveBranchResult + type HookProcReceiveRefResult struct + Err string + IsForcePush bool + IsNotMatched bool + NewOID string + OldOID string + OriginalRef string + Ref string + type HookProcReceiveResult struct + Err string + Results []HookProcReceiveRefResult + type KeyAndOwner struct + Key *asymkey_model.PublicKey + Owner *user_model.User + type LoggerOptions struct + Config map[string]interface{} + Logger string + Mode string + Writer string + type Response struct + Err string + UserMsg string + type ResponseExtra struct + Error error + StatusCode int + UserMsg string + func AddLogger(ctx context.Context, logger, writer, mode string, ...) ResponseExtra + func AuthorizedPublicKeyByContent(ctx context.Context, content string) (string, ResponseExtra) + func FlushQueues(ctx context.Context, timeout time.Duration, nonBlocking bool) ResponseExtra + func GenerateActionsRunnerToken(ctx context.Context, scope string) (string, ResponseExtra) + func HookPreReceive(ctx context.Context, ownerName, repoName string, opts HookOptions) ResponseExtra + func PauseLogging(ctx context.Context) ResponseExtra + func Processes(ctx context.Context, out io.Writer, flat, noSystem, stacktraces, json bool, ...) ResponseExtra + func ReleaseReopenLogging(ctx context.Context) ResponseExtra + func ReloadTemplates(ctx context.Context) ResponseExtra + func RemoveLogger(ctx context.Context, logger, writer string) ResponseExtra + func Restart(ctx context.Context) ResponseExtra + func RestoreRepo(ctx context.Context, repoDir, ownerName, repoName string, units []string, ...) ResponseExtra + func ResumeLogging(ctx context.Context) ResponseExtra + func SendEmail(ctx context.Context, subject, message string, to []string) (string, ResponseExtra) + func SetDefaultBranch(ctx context.Context, ownerName, repoName, branch string) ResponseExtra + func SetLogSQL(ctx context.Context, on bool) ResponseExtra + func Shutdown(ctx context.Context) ResponseExtra + func (re *ResponseExtra) HasError() bool + type RestoreParams struct + OwnerName string + RepoDir string + RepoName string + Units []string + Validation bool + type SSHLogOption struct + IsError bool + Message string + type ServCommandResults struct + DeployKeyID int64 + IsWiki bool + KeyID int64 + KeyName string + OwnerName string + RepoID int64 + RepoName string + UserEmail string + UserID int64 + UserName string