Documentation
¶
Index ¶
Constants ¶
View Source
const ( DriverSqlite = "sqlite3" DriverMysql = "mysql" DriverPostgres = "postgres" )
Supported database drivers.
View Source
const ( // SecondsPerDay represents the number of seconds in 24 hours. SecondsPerDay = 24 * 60 * 60 // 86400 seconds )
Variables ¶
View Source
var ErrCacheNotFound = fmt.Errorf("cache entry not found")
ErrCacheNotFound is returned when a cache entry is not found.
View Source
var ErrNoTokenProvided = errors.New("please provide a token")
Functions ¶
func GetMaintenanceSizeInfo ¶
func GetMaintenanceSizeInfo() (beforeSize, afterSize, spaceSaved int64)
GetMaintenanceSizeInfo returns the size info from the last maintenance operation.
func HashAccessToken ¶
HashAccessToken creates a SHA256 hash of a token for storage.
func SupportedDriver ¶
Types ¶
type ErrorRepoNotExist ¶
type ErrorRepoNotExist struct {
RepoID int64
}
func (ErrorRepoNotExist) Error ¶
func (e ErrorRepoNotExist) Error() string
func (ErrorRepoNotExist) Unwrap ¶
func (ErrorRepoNotExist) Unwrap() error
Source Files
¶
- access_token.go
- agent.go
- autoscaler.go
- cache.go
- config.go
- cron.go
- engine.go
- engine_cgo.go
- errors.go
- feed.go
- forge.go
- helper.go
- init.go
- integration.go
- lock.go
- log.go
- maintenance.go
- metrics.go
- org.go
- permission.go
- pipeline.go
- pubsub.go
- redirection.go
- registry.go
- repo.go
- secret.go
- server_config.go
- step.go
- task.go
- user.go
- user_forge.go
- workflow.go
- xorm.go
Click to show internal directories.
Click to hide internal directories.