package
2.5.1+incompatible
Repository: https://github.com/codyguo/semaphore.git
Documentation: pkg.go.dev
# Functions
AuthFailed write a status unauthorized header unless it is an XHR request TODO - never called!.
CheckUpdate uses the github client to check for new tags in the semaphore repo.
ConfigInit reads in cli flags, and switches actions appropriately on them.
DoUpgrade checks for an update, and if available downloads the binary and installs it.
FindSemaphore looks in the PATH for the semaphore variable if not found it will attempt to find the absolute path of the first os argument, the semaphore command, and return it.
GetIntParam fetches a parameter from the route variables as an integer redirects to a 404 or writes bad request state depending on error state.
LogError logs an error with arbitrary field if error.
LogErrorWithFields logs a error with added field context if error.
LogPanic logs and panics with arbitrary field if error.
LogPanicWithFields logs and panics with added field context if error.
LogWarning logs a warning with arbitrary field if error.
LogWarningWithFields logs a warning with added field context if error.
NewConfig returns a reference to a new blank configType nolint: golint.
ScanErrorChecker deals with errors encountered while scanning lines since we do not fail on these errors currently we can simply note them and move on.
SendMail dispatches a mail using smtp.
# Variables
Config exposes the application configuration storage for use in the application.
Cookie is a runtime generated secure cookie used for authentication.
InteractiveSetup indicates that the cli should perform interactive setup mode.
Migration indicates that the user wishes to run database migrations, deprecated.
UpdateAvailable contains the full repository information for the latest release of Semaphore.
Upgrade indicates that we should perform an upgrade action.
WebHostURL is the public route to the semaphore server.