repos

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAll

func HandleAll(repos core.RepositoryStore) http.HandlerFunc

HandleAll returns an http.HandlerFunc that processes http requests to list all repositories in the database.

func HandleChown

func HandleChown(repos core.RepositoryStore) http.HandlerFunc

HandleChown returns an http.HandlerFunc that processes http requests to chown the repository to the currently authenticated user.

func HandleDisable

func HandleDisable(
	repos core.RepositoryStore,
	sender core.WebhookSender,
) http.HandlerFunc

HandleDisable returns an http.HandlerFunc that processes http requests to disable a repository in the system.

func HandleEnable

func HandleEnable(
	hooks core.HookService,
	repos core.RepositoryStore,
	sender core.WebhookSender,
) http.HandlerFunc

HandleEnable returns an http.HandlerFunc that processes http requests to enable a repository in the system.

func HandleFind

func HandleFind() http.HandlerFunc

HandleFind returns an http.HandlerFunc that writes the json-encoded repository details to the response body.

func HandleRepair

func HandleRepair(
	hooks core.HookService,
	repoz core.RepositoryService,
	repos core.RepositoryStore,
	users core.UserStore,
	link string,
) http.HandlerFunc

HandleRepair returns an http.HandlerFunc that processes http requests to repair the repository hooks and sync the repository details.

func HandleUpdate

func HandleUpdate(repos core.RepositoryStore) http.HandlerFunc

HandleUpdate returns an http.HandlerFunc that processes http requests to update the repository details.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL