repo

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

Code generated by genservices. DO NOT EDIT.

Code generated by genservices. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(svc Service, r *mux.Router, regCtx *endpointutil.HandlerRegContext)

Types

type BasicService

type BasicService struct {
	CreateQueue     *repos.CreatorProducer
	DeleteQueue     *repos.DeleterProducer
	ProviderFactory providers.Factory
	Cache           cache.Cache
	Cfg             config.Config
	Ec              *experiments.Checker
	OrgPolicy       *policy.Organization
	ActiveSubPolicy *policy.ActiveSubscription
}

func (BasicService) Create

func (BasicService) Delete

func (BasicService) Get

func (BasicService) List

func (s BasicService) List(rc *request.AuthorizedContext, req *listRequest) (*returntypes.RepoListResponse, error)

type CreateRequest

type CreateRequest struct {
	ReqRepo *request.BodyRepo
}

type CreateResponse

type CreateResponse struct {
	*returntypes.WrappedRepoInfo
	// contains filtered or unexported fields
}

type DeleteRequest

type DeleteRequest struct {
	ReqRepo *request.RepoID
}

type DeleteResponse

type DeleteResponse struct {
	*returntypes.WrappedRepoInfo
	// contains filtered or unexported fields
}

type GetRequest

type GetRequest struct {
	ReqRepo *request.RepoID
}

type GetResponse

type GetResponse struct {
	*returntypes.WrappedRepoInfo
	// contains filtered or unexported fields
}

type ListRequest

type ListRequest struct {
	Req *listRequest
}

type ListResponse

type ListResponse struct {
	*returntypes.RepoListResponse
	// contains filtered or unexported fields
}

type Service

type Service interface {
	//url:/v1/repos method:POST
	Create(rc *request.AuthorizedContext, reqRepo *request.BodyRepo) (*returntypes.WrappedRepoInfo, error)

	//url:/v1/repos/{repoid}
	Get(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)

	//url:/v1/repos/{repoid} method:DELETE
	Delete(rc *request.AuthorizedContext, reqRepo *request.RepoID) (*returntypes.WrappedRepoInfo, error)

	//url:/v1/repos
	List(rc *request.AuthorizedContext, req *listRequest) (*returntypes.RepoListResponse, error)
}

Jump to

Keyboard shortcuts

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