Documentation ¶
Overview ¶
Copyright 2009 The Go Authors. All rights reserved. Copyright 2014 The Gogs Authors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdCert = cli.Command{
Name: "cert",
Usage: "Generate self-signed certificate",
Description: `Please use build tags "cert" to rebuild Gogs in order to have this ability`,
Action: runCert,
}
View Source
var CmdDump = cli.Command{ Name: "dump", Usage: "Dump Gogs files and database", Description: `Dump compresses all related files and database into zip file. It can be used for backup and capture Gogs server image to send to maintainer`, Action: runDump, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), boolFlag("verbose, v", "Show process details"), stringFlag("tempdir, t", os.TempDir(), "Temporary dir path"), }, }
View Source
var CmdServ = cli.Command{ Name: "serv", Usage: "This command should only be called by SSH shell", Description: `Serv provide access auth for repositories`, Action: runServ, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, }
View Source
var CmdUpdate = cli.Command{ Name: "update", Usage: "This command should only be called by Git hook", Description: `Update get pushed info and insert into database`, Action: runUpdate, Flags: []cli.Flag{ stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, }
View Source
var CmdWeb = cli.Command{ Name: "web", Usage: "Start Gogs web server", Description: `Gogs web server is the only thing you need to run, and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{ stringFlag("port, p", "3000", "Temporary port number to prevent conflict"), stringFlag("config, c", "custom/conf/app.ini", "Custom configuration file path"), }, }
Functions ¶
This section is empty.
Types ¶
type VerChecker ¶ added in v0.5.11
Click to show internal directories.
Click to hide internal directories.