repoanalysis

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: 18 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 {
	RepoPolicy *policy.Repo
}

func (BasicService) GetByAnalysisGUID

func (s BasicService) GetByAnalysisGUID(rc *request.InternalContext, rac *Context) (*models.RepoAnalysis, error)

func (BasicService) GetStatus

func (s BasicService) GetStatus(rc *request.AnonymousContext, reqRepo *request.Repo, sr *statusRequest) (*Status, error)

func (BasicService) UpdateByAnalysisGUID

func (s BasicService) UpdateByAnalysisGUID(rc *request.InternalContext, rac *Context, update *updateRepoPayload) error

type Context

type Context struct {
	request.Repo
	AnalysisGUID string `request:",urlPart,"`
}

func (Context) FillLogContext

func (c Context) FillLogContext(lctx logutil.Context)

type GetByAnalysisGUIDRequest

type GetByAnalysisGUIDRequest struct {
	Rac *Context
}

type GetByAnalysisGUIDResponse

type GetByAnalysisGUIDResponse struct {
	*models.RepoAnalysis
	// contains filtered or unexported fields
}

type GetStatusRequest

type GetStatusRequest struct {
	Repo *request.Repo
	Sr   *statusRequest
}

type GetStatusResponse

type GetStatusResponse struct {
	*Status
	// contains filtered or unexported fields
}

type Service

type Service interface {
	//url:/v1/repos/{provider}/{owner}/{name}/repoanalyzes
	GetStatus(rc *request.AnonymousContext, repo *request.Repo, sr *statusRequest) (*Status, error)

	//url:/v1/repos/{provider}/{owner}/{name}/repoanalyzes/{analysisguid}
	GetByAnalysisGUID(rc *request.InternalContext, rac *Context) (*models.RepoAnalysis, error)

	//url:/v1/repos/{provider}/{owner}/{name}/repoanalyzes/{analysisguid} method:PUT
	UpdateByAnalysisGUID(rc *request.InternalContext, rac *Context, update *updateRepoPayload) error
}

type Status

type Status struct {
	models.RepoAnalysis

	GithubRepoName     string
	NextAnalysisStatus string `json:",omitempty"`
	IsPreparing        bool   `json:",omitempty"`
	RepoIsNotConnected bool   `json:",omitempty"`
	IsEmpty            bool   `json:",omitempty"`
}

type UpdateByAnalysisGUIDRequest

type UpdateByAnalysisGUIDRequest struct {
	Rac    *Context
	Update *updateRepoPayload
}

type UpdateByAnalysisGUIDResponse

type UpdateByAnalysisGUIDResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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