route

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetListOptionsFromRequest

func GetListOptionsFromRequest(req *restful.Request) (opts metav1alpha1.ListOptions)

GetListOptionsFromRequest returns ListOptions based on a request

func GetMethods

func GetMethods(c client.Interface) []string

func GetPluginWebPath

func GetPluginWebPath(c client.Interface) string

GetPluginWebPath returns a plugin

func ListOptionsDocs

func ListOptionsDocs(bldr *restful.RouteBuilder) *restful.RouteBuilder

ListOptionsDocs adds list options query parameters to the documentation

func NewDefaultAuthCheckImplementation added in v0.2.0

func NewDefaultAuthCheckImplementation() client.AuthChecker

func NewDefaultService

func NewDefaultService() *restful.WebService

NewDefaultService default service included with metrics,pprof

func NewDocService

func NewDocService(webservices ...*restful.WebService) *restful.WebService

NewDocService go restful api doc

func NewService

func NewService(c client.Interface, filters ...restful.FilterFunction) (*restful.WebService, error)

NewService new service from plugin client

Types

type Route

type Route interface {
	Register(ws *restful.WebService)
}

Route a service should implement register func to register go restful webservice

func NewArtifactDelete

func NewArtifactDelete(impl client.ArtifactDeleter) Route

NewArtifactDeleter create a delete artifact route with plugin client

func NewArtifactGet

func NewArtifactGet(impl client.ArtifactGetter) Route

NewArtifactGetter create a get artifact route with plugin client

func NewArtifactList

func NewArtifactList(impl client.ArtifactLister) Route

NewArtifactList create a list artifact route with plugin client

func NewAuthCheck added in v0.2.0

func NewAuthCheck(impl client.AuthChecker) Route

NewAuthCheck new route for auth checking

func NewAuthToken added in v0.2.0

func NewAuthToken(impl client.AuthTokenGenerator) Route

NewAuthToken new route for auth checking

func NewBlobStoreLister added in v0.2.0

func NewBlobStoreLister(impl client.BlobStoreLister) Route

NewCodeQualityGetter create a get codeQuality route with plugin client

func NewCodeQualityGetter added in v0.2.0

func NewCodeQualityGetter(impl client.CodeQualityGetter) Route

NewCodeQualityGetter create a get codeQuality route with plugin client

func NewGitBranchCreator

func NewGitBranchCreator(impl client.GitBranchCreator) Route

NewGitBranchCreator create a git branch create route with plugin client

func NewGitBranchGetter

func NewGitBranchGetter(impl client.GitBranchGetter) Route

NewGitBranchGetter create a git branch getter route with plugin client

func NewGitBranchLister

func NewGitBranchLister(impl client.GitBranchLister) Route

NewGitBranchLister create a git branch lister route with plugin client

func NewGitCommitCommentCreator

func NewGitCommitCommentCreator(impl client.GitCommitCommentCreator) Route

NewGitCommitCommentCreator create git Commit comment route with plugin client

func NewGitCommitCommentLister

func NewGitCommitCommentLister(impl client.GitCommitCommentLister) Route

NewGitCommitCommentLister get git Commit comment route with plugin client

func NewGitCommitGetter

func NewGitCommitGetter(impl client.GitCommitGetter) Route

NewGitCommitGetter get a git Commit route with plugin client

func NewGitCommitStatusCreator

func NewGitCommitStatusCreator(impl client.GitCommitStatusCreator) Route

NewGitCommitStatusCreator create git Commit status route with plugin client

func NewGitCommitStatusLister

func NewGitCommitStatusLister(impl client.GitCommitStatusLister) Route

NewGitCommitStatusLister list git Commit status route with plugin client

func NewGitPullRequestCommentLister

func NewGitPullRequestCommentLister(impl client.GitPullRequestCommentLister) Route

NewGitPullRequestCommentLister list a git pr note route with plugin client

func NewGitPullRequestLister

func NewGitPullRequestLister(impl client.GitPullRequestHandler) Route

NewGitPullRequestLister get a git pr route with plugin client

func NewGitPullRequestNoteCreator

func NewGitPullRequestNoteCreator(impl client.GitPullRequestCommentCreator) Route

NewGitPullRequestNoteCreator create a git pr note route with plugin client

func NewGitRepoFileCreator

func NewGitRepoFileCreator(impl client.GitRepoFileCreator) Route

NewGitRepoFileCreator create a git GitRepoFile route with plugin client

func NewGitRepoFileGetter

func NewGitRepoFileGetter(impl client.GitRepoFileGetter) Route

NewGitRepoFileGetter create a git GitRepoFile route with plugin client

func NewGitRepositoryGetter

func NewGitRepositoryGetter(impl client.GitRepositoryGetter) Route

NewGitRepositoryGetter get a git repo route with plugin client

func NewGitRepositoryLister

func NewGitRepositoryLister(impl client.GitRepositoryLister) Route

NewGitRepositoryLister get a git repo route with plugin client

func NewHealthz

func NewHealthz() Route

NewHealthz basic health check service

func NewProjectCreate

func NewProjectCreate(impl client.ProjectCreator) Route

NewProjectCreate create a create project route with plugin client

func NewProjectGet

func NewProjectGet(impl client.ProjectGetter) Route

NewProjectGet create a get project route with plugin client

func NewProjectList

func NewProjectList(impl client.ProjectLister) Route

NewProjectList create a list project route with plugin client

func NewRepositoryList

func NewRepositoryList(impl client.RepositoryLister) Route

NewRepositoryList create a list repository route with plugin client

func NewScanImage

func NewScanImage(impl client.ScanImage) Route

NewScanImage create a scan image route with plugin client

func NewSystem

func NewSystem() Route

Jump to

Keyboard shortcuts

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