v1

package
v0.0.0-...-8cb496e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRepositoryHandler

func CreateRepositoryHandler(rs repository.Service) repositories.CreateRepositoryHandlerFunc

CreateRepositoryHandler creates a new repository from given input

func GetOwnerRepositoriesHandler

func GetOwnerRepositoriesHandler(rs repository.Service) repositories.GetOwnerRepositoriesHandlerFunc

GetOwnerRepositoriesHandler gets a repository by the owner's username

func GetRepositoryBranchesHandler

func GetRepositoryBranchesHandler(rs repository.Service) repositories.GetRepositoryBranchesHandlerFunc

GetRepositoryBranchesHandler gets all branches of a repository

func GetRepositoryHandler

GetRepositoryHandler gets a repository by name and the owner's username

func GetRepositoryTreeHandler

func GetRepositoryTreeHandler(rs repository.Service) repositories.GetRepositoryTreeHandlerFunc

GetRepositoryTreeHandler gets a repository's tree for a given rev and path

func GetUserHandler

func GetUserHandler(us user.Service) users.GetUserHandlerFunc

GetUserHandler gets a user from the user.Service and returns a API response

func GetUserMeHandler

func GetUserMeHandler(us user.Service) users.GetUserMeHandlerFunc

GetUserMeHandler gets the currently authenticated user

func ListUsersHandler

func ListUsersHandler(us user.Service) users.ListUsersHandlerFunc

ListUsersHandler gets a list of users from the user.Service and returns a API response

func UpdateUserHandler

func UpdateUserHandler(us user.Service) users.UpdateUserHandlerFunc

UpdateUserHandler receives a updated user and returns a API response after updating

Types

type API

type API struct {
	Handler http.Handler
}

API has the http.Handler for the OpenAPI implementation

func New

func New(rs repository.Service, us user.Service) (*API, error)

New creates a new API that adds our own Handler implementations

Directories

Path Synopsis
Package restapi SourcePods OpenAPI This is the API for SourcePods - git in the cloud.
Package restapi SourcePods OpenAPI This is the API for SourcePods - git in the cloud.

Jump to

Keyboard shortcuts

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