Documentation
¶
Index ¶
- func BlockUser(ctx *context.APIContext, blocker *user_model.User)
- func CheckUserBlock(ctx *context.APIContext, blocker *user_model.User)
- func DeleteRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64)
- func GetRegistrationToken(ctx *context.APIContext, ownerID, repoID int64)
- func GetRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64)
- func ListBlocks(ctx *context.APIContext, blocker *user_model.User)
- func ListJobs(ctx *context.APIContext, ownerID, repoID, runID int64)
- func ListRunners(ctx *context.APIContext, ownerID, repoID int64)
- func ListRuns(ctx *context.APIContext, ownerID, repoID int64)
- func UnblockUser(ctx *context.APIContext, doer, blocker *user_model.User)
- type RegistrationToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockUser ¶
func BlockUser(ctx *context.APIContext, blocker *user_model.User)
func CheckUserBlock ¶
func CheckUserBlock(ctx *context.APIContext, blocker *user_model.User)
func DeleteRunner ¶ added in v1.24.0
func DeleteRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64)
DeleteRunner deletes the runner for api route validated ownerID and repoID ownerID == 0 and repoID == 0 means any runner including global runners ownerID == 0 and repoID != 0 means any runner for the given repo ownerID != 0 and repoID == 0 means any runner for the given user/org ownerID != 0 and repoID != 0 undefined behavior Access rights are checked at the API route level
func GetRegistrationToken ¶
func GetRegistrationToken(ctx *context.APIContext, ownerID, repoID int64)
func GetRunner ¶ added in v1.24.0
func GetRunner(ctx *context.APIContext, ownerID, repoID, runnerID int64)
GetRunner get the runner for api route validated ownerID and repoID ownerID == 0 and repoID == 0 means any runner including global runners ownerID == 0 and repoID != 0 means any runner for the given repo ownerID != 0 and repoID == 0 means any runner for the given user/org ownerID != 0 and repoID != 0 undefined behavior Access rights are checked at the API route level
func ListBlocks ¶
func ListBlocks(ctx *context.APIContext, blocker *user_model.User)
func ListJobs ¶
func ListJobs(ctx *context.APIContext, ownerID, repoID, runID int64)
ListJobs lists jobs for api route validated ownerID and repoID ownerID == 0 and repoID == 0 means all jobs ownerID == 0 and repoID != 0 means all jobs for the given repo ownerID != 0 and repoID == 0 means all jobs for the given user/org ownerID != 0 and repoID != 0 undefined behavior runID == 0 means all jobs runID is used as an additional filter together with ownerID and repoID to only return jobs for the given run Access rights are checked at the API route level
func ListRunners ¶ added in v1.24.0
func ListRunners(ctx *context.APIContext, ownerID, repoID int64)
ListRunners lists runners for api route validated ownerID and repoID ownerID == 0 and repoID == 0 means all runners including global runners, does not appear in sql where clause ownerID == 0 and repoID != 0 means all runners for the given repo ownerID != 0 and repoID == 0 means all runners for the given user/org ownerID != 0 and repoID != 0 undefined behavior Access rights are checked at the API route level
func ListRuns ¶
func ListRuns(ctx *context.APIContext, ownerID, repoID int64)
ListRuns lists jobs for api route validated ownerID and repoID ownerID == 0 and repoID == 0 means all runs ownerID == 0 and repoID != 0 means all runs for the given repo ownerID != 0 and repoID == 0 means all runs for the given user/org ownerID != 0 and repoID != 0 undefined behavior Access rights are checked at the API route level
func UnblockUser ¶
func UnblockUser(ctx *context.APIContext, doer, blocker *user_model.User)
Types ¶
type RegistrationToken ¶
type RegistrationToken struct {
Token string `json:"token"`
}
RegistrationToken is response related to registration token swagger:response RegistrationToken