shared

package
v1.24.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 12 Imported by: 4

Documentation

Index

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

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

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 ListRunners

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 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳