Documentation ¶
Index ¶
- Variables
- func ChownRepo(c *gin.Context)
- func DeleteBuild(c *gin.Context)
- func DeleteRegistry(c *gin.Context)
- func DeleteRepo(c *gin.Context)
- func DeleteSecret(c *gin.Context)
- func DeleteToken(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func EventStream(c *gin.Context)
- func GetBadge(c *gin.Context)
- func GetBuild(c *gin.Context)
- func GetBuildLast(c *gin.Context)
- func GetBuildLogs(c *gin.Context)
- func GetBuildQueue(c *gin.Context)
- func GetBuilds(c *gin.Context)
- func GetCC(c *gin.Context)
- func GetFeed(c *gin.Context)
- func GetLogin(c *gin.Context)
- func GetLoginToken(c *gin.Context)
- func GetLogout(c *gin.Context)
- func GetQueueInfo(c *gin.Context)
- func GetRegistry(c *gin.Context)
- func GetRegistryList(c *gin.Context)
- func GetRemoteRepos(c *gin.Context)
- func GetRepo(c *gin.Context)
- func GetRepos(c *gin.Context)
- func GetSecret(c *gin.Context)
- func GetSecretList(c *gin.Context)
- func GetSelf(c *gin.Context)
- func GetUser(c *gin.Context)
- func GetUsers(c *gin.Context)
- func LogStream(c *gin.Context)
- func PatchRegistry(c *gin.Context)
- func PatchRepo(c *gin.Context)
- func PatchSecret(c *gin.Context)
- func PatchUser(c *gin.Context)
- func PostApproval(c *gin.Context)
- func PostBuild(c *gin.Context)
- func PostDecline(c *gin.Context)
- func PostHook(c *gin.Context)
- func PostRegistry(c *gin.Context)
- func PostRepo(c *gin.Context)
- func PostSecret(c *gin.Context)
- func PostToken(c *gin.Context)
- func PostUser(c *gin.Context)
- func RPCHandler(c *gin.Context)
- func RepairRepo(c *gin.Context)
- func ShowIndex(c *gin.Context)
- func ShowLogin(c *gin.Context)
- func ShowLoginForm(c *gin.Context)
- func Sign(c *gin.Context)
- func ToConfig(c *gin.Context) *model.Settings
- type RPC
- func (s *RPC) Done(c context.Context, id string, state rpc.State) error
- func (s *RPC) Extend(c context.Context, id string) error
- func (s *RPC) Init(c context.Context, id string, state rpc.State) error
- func (s *RPC) Log(c context.Context, id string, line *rpc.Line) error
- func (s *RPC) Next(c context.Context, filter rpc.Filter) (*rpc.Pipeline, error)
- func (s *RPC) Update(c context.Context, id string, state rpc.State) error
- func (s *RPC) Upload(c context.Context, id string, file *rpc.File) error
- func (s *RPC) Wait(c context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
var Config = struct { Services struct { Pubsub pubsub.Publisher Queue queue.Queue Logs logging.Log Senders model.SenderService Secrets model.SecretService Registries model.RegistryService } Storage struct { // Users model.UserStore // Repos model.RepoStore // Builds model.BuildStore // Logs model.LogStore Config model.ConfigStore Files model.FileStore Procs model.ProcStore } Server struct { Key string Cert string Host string Port string Pass string } Pipeline struct { Volumes []string Networks []string Privileged []string } }{}
Config is an evil global configuration that will be used as we transition / refactor the codebase to move away from storing these values in the Context.
Functions ¶
func DeleteBuild ¶ added in v0.5.0
func DeleteRegistry ¶ added in v0.6.0
DeleteRegistry deletes the named registry from the database.
func DeleteRepo ¶ added in v0.5.0
func DeleteSecret ¶ added in v0.5.0
DeleteSecret deletes the named secret from the database.
func DeleteToken ¶ added in v0.5.0
func DeleteUser ¶ added in v0.5.0
func EventStream ¶ added in v0.5.0
func GetBuildLast ¶ added in v0.5.0
func GetBuildLogs ¶ added in v0.5.0
func GetBuildQueue ¶ added in v0.5.0
func GetLoginToken ¶ added in v0.5.0
func GetQueueInfo ¶ added in v0.6.0
func GetRegistry ¶ added in v0.6.0
GetRegistry gets the name registry from the database and writes to the response in json format.
func GetRegistryList ¶ added in v0.6.0
GetRegistryList gets the registry list from the database and writes to the response in json format.
func GetRemoteRepos ¶ added in v0.5.0
func GetSecret ¶ added in v0.6.0
GetSecret gets the named secret from the database and writes to the response in json format.
func GetSecretList ¶ added in v0.6.0
GetSecretList gets the secret list from the database and writes to the response in json format.
func PatchRegistry ¶ added in v0.6.0
PatchRegistry updates the registry in the database.
func PatchSecret ¶ added in v0.6.0
PatchSecret updates the secret in the database.
func PostApproval ¶ added in v0.6.0
func PostDecline ¶ added in v0.6.0
func PostRegistry ¶ added in v0.6.0
PostRegistry persists the registry to the database.
func PostSecret ¶ added in v0.5.0
PostSecret persists the secret to the database.
func RPCHandler ¶ added in v0.6.0
func RepairRepo ¶ added in v0.6.0
func ShowLogin ¶ added in v0.5.0
ShowLogin is a legacy endpoint that now redirects to initiliaze the oauth flow
func ShowLoginForm ¶ added in v0.5.0
ShowLoginForm displays a login form for systems like Gogs that do not yet support oauth workflows.
Types ¶
type RPC ¶ added in v0.6.0
type RPC struct {
// contains filtered or unexported fields
}