Documentation ¶
Index ¶
- func AddOrgHook(ctx *context.APIContext, form *api.CreateHookOption)
- func AddRepoHook(ctx *context.APIContext, form *api.CreateHookOption)
- func CheckCreateHookOption(ctx *context.APIContext, form *api.CreateHookOption) bool
- func EditOrgHook(ctx *context.APIContext, form *api.EditHookOption, hookID int64)
- func EditRepoHook(ctx *context.APIContext, form *api.EditHookOption, hookID int64)
- func GetListOptions(ctx *context.APIContext) models.ListOptions
- func GetOrgHook(ctx *context.APIContext, orgID, hookID int64) (*models.Webhook, error)
- func GetQueryBeforeSince(ctx *context.APIContext) (before, since int64, err error)
- func GetRepoHook(ctx *context.APIContext, repoID, hookID int64) (*models.Webhook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrgHook ¶
func AddOrgHook(ctx *context.APIContext, form *api.CreateHookOption)
AddOrgHook add a hook to an organization. Writes to `ctx` accordingly
func AddRepoHook ¶
func AddRepoHook(ctx *context.APIContext, form *api.CreateHookOption)
AddRepoHook add a hook to a repo. Writes to `ctx` accordingly
func CheckCreateHookOption ¶
func CheckCreateHookOption(ctx *context.APIContext, form *api.CreateHookOption) bool
CheckCreateHookOption check if a CreateHookOption form is valid. If invalid, write the appropriate error to `ctx`. Return whether the form is valid
func EditOrgHook ¶
func EditOrgHook(ctx *context.APIContext, form *api.EditHookOption, hookID int64)
EditOrgHook edit webhook `w` according to `form`. Writes to `ctx` accordingly
func EditRepoHook ¶
func EditRepoHook(ctx *context.APIContext, form *api.EditHookOption, hookID int64)
EditRepoHook edit webhook `w` according to `form`. Writes to `ctx` accordingly
func GetListOptions ¶ added in v1.12.0
func GetListOptions(ctx *context.APIContext) models.ListOptions
GetListOptions returns list options using the page and limit parameters
func GetOrgHook ¶
GetOrgHook get an organization's webhook. If there is an error, write to `ctx` accordingly and return the error
func GetQueryBeforeSince ¶ added in v1.12.0
func GetQueryBeforeSince(ctx *context.APIContext) (before, since int64, err error)
GetQueryBeforeSince return parsed time (unix format) from URL query's before and since
func GetRepoHook ¶
GetRepoHook get a repo's webhook. If there is an error, write to `ctx` accordingly and return the error
Types ¶
This section is empty.