api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewHTTPHandler added in v0.7.0

func NewHTTPHandler(si ServerInterface, r chi.Router) http.Handler

NewHTTPHandler mounts si on r; parameter binding errors go through writeProblem.

Types

type BadGatewayApplicationProblemPlusJSONResponse added in v0.7.0

type BadGatewayApplicationProblemPlusJSONResponse struct {
	Body Problem

	Headers BadGatewayResponseHeaders
}

type BadGatewayResponseHeaders added in v0.7.0

type BadGatewayResponseHeaders struct {
	XRequestId string
}

type BadRequestApplicationProblemPlusJSONResponse added in v0.7.0

type BadRequestApplicationProblemPlusJSONResponse struct {
	Body Problem

	Headers BadRequestResponseHeaders
}

type BadRequestResponseHeaders added in v0.7.0

type BadRequestResponseHeaders struct {
	XRequestId string
}

type BranchHandler

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

BranchHandler handles requests related to branches (all providers).

func NewBranchHandler

func NewBranchHandler(branchesService *branches.BranchesService) *BranchHandler

NewBranchHandler creates a new BranchHandler.

func (*BranchHandler) ListBranches

ListBranches implements api.StrictServerInterface.

type CacheHandler

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

CacheHandler handles cache management requests.

func NewCacheHandler

func NewCacheHandler(cacheManager *cache.Manager) *CacheHandler

NewCacheHandler creates a new CacheHandler.

func (*CacheHandler) InvalidateCache

InvalidateCache implements api.StrictServerInterface.

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Config

type Config struct {
	Namespace string
	Port      string
}

func GetConfigOrDie

func GetConfigOrDie() Config

type GetPipelineJobTrace200JSONResponse added in v0.6.0

type GetPipelineJobTrace200JSONResponse PipelineJobTraceResponse

func (GetPipelineJobTrace200JSONResponse) VisitGetPipelineJobTraceResponse added in v0.6.0

func (response GetPipelineJobTrace200JSONResponse) VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error

type GetPipelineJobTrace400ApplicationProblemPlusJSONResponse added in v0.7.0

type GetPipelineJobTrace400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetPipelineJobTrace400ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse added in v0.7.0

func (response GetPipelineJobTrace400ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error

type GetPipelineJobTrace404ApplicationProblemPlusJSONResponse added in v0.7.0

type GetPipelineJobTrace404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetPipelineJobTrace404ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse added in v0.7.0

func (response GetPipelineJobTrace404ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error

type GetPipelineJobTrace500ApplicationProblemPlusJSONResponse added in v0.7.0

type GetPipelineJobTrace500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (GetPipelineJobTrace500ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse added in v0.7.0

func (response GetPipelineJobTrace500ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error

type GetPipelineJobTrace502ApplicationProblemPlusJSONResponse added in v0.7.0

type GetPipelineJobTrace502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (GetPipelineJobTrace502ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse added in v0.7.0

func (response GetPipelineJobTrace502ApplicationProblemPlusJSONResponse) VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error

type GetPipelineJobTraceRequestObject added in v0.6.0

type GetPipelineJobTraceRequestObject struct {
	Params GetPipelineJobTraceParams
}

type GetPipelineJobTraceResponseObject added in v0.6.0

type GetPipelineJobTraceResponseObject interface {
	VisitGetPipelineJobTraceResponse(w http.ResponseWriter) error
}

type GetRepository200JSONResponse

type GetRepository200JSONResponse Repository

func (GetRepository200JSONResponse) VisitGetRepositoryResponse

func (response GetRepository200JSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error

type GetRepository400ApplicationProblemPlusJSONResponse added in v0.7.0

type GetRepository400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetRepository400ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse added in v0.7.0

func (response GetRepository400ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error

type GetRepository404ApplicationProblemPlusJSONResponse added in v0.7.0

type GetRepository404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetRepository404ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse added in v0.7.0

func (response GetRepository404ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error

type GetRepository500ApplicationProblemPlusJSONResponse added in v0.7.0

type GetRepository500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (GetRepository500ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse added in v0.7.0

func (response GetRepository500ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error

type GetRepository502ApplicationProblemPlusJSONResponse added in v0.7.0

type GetRepository502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (GetRepository502ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse added in v0.7.0

func (response GetRepository502ApplicationProblemPlusJSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error

type GetRepositoryRequestObject

type GetRepositoryRequestObject struct {
	Params GetRepositoryParams
}

type GetRepositoryResponseObject

type GetRepositoryResponseObject interface {
	VisitGetRepositoryResponse(w http.ResponseWriter) error
}

type InternalErrorApplicationProblemPlusJSONResponse added in v0.7.0

type InternalErrorApplicationProblemPlusJSONResponse struct {
	Body Problem

	Headers InternalErrorResponseHeaders
}

type InternalErrorResponseHeaders added in v0.7.0

type InternalErrorResponseHeaders struct {
	XRequestId string
}

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type InvalidateCache200JSONResponse

type InvalidateCache200JSONResponse CacheInvalidationResponse

func (InvalidateCache200JSONResponse) VisitInvalidateCacheResponse

func (response InvalidateCache200JSONResponse) VisitInvalidateCacheResponse(w http.ResponseWriter) error

type InvalidateCache400ApplicationProblemPlusJSONResponse added in v0.7.0

type InvalidateCache400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (InvalidateCache400ApplicationProblemPlusJSONResponse) VisitInvalidateCacheResponse added in v0.7.0

func (response InvalidateCache400ApplicationProblemPlusJSONResponse) VisitInvalidateCacheResponse(w http.ResponseWriter) error

type InvalidateCache500ApplicationProblemPlusJSONResponse added in v0.7.0

type InvalidateCache500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (InvalidateCache500ApplicationProblemPlusJSONResponse) VisitInvalidateCacheResponse added in v0.7.0

func (response InvalidateCache500ApplicationProblemPlusJSONResponse) VisitInvalidateCacheResponse(w http.ResponseWriter) error

type InvalidateCacheRequestObject

type InvalidateCacheRequestObject struct {
	Params InvalidateCacheParams
}

type InvalidateCacheResponseObject

type InvalidateCacheResponseObject interface {
	VisitInvalidateCacheResponse(w http.ResponseWriter) error
}

type ListBranches200JSONResponse

type ListBranches200JSONResponse BranchesResponse

func (ListBranches200JSONResponse) VisitListBranchesResponse

func (response ListBranches200JSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error

type ListBranches400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListBranches400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListBranches400ApplicationProblemPlusJSONResponse) VisitListBranchesResponse added in v0.7.0

func (response ListBranches400ApplicationProblemPlusJSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error

type ListBranches404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListBranches404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListBranches404ApplicationProblemPlusJSONResponse) VisitListBranchesResponse added in v0.7.0

func (response ListBranches404ApplicationProblemPlusJSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error

type ListBranches500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListBranches500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListBranches500ApplicationProblemPlusJSONResponse) VisitListBranchesResponse added in v0.7.0

func (response ListBranches500ApplicationProblemPlusJSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error

type ListBranches502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListBranches502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListBranches502ApplicationProblemPlusJSONResponse) VisitListBranchesResponse added in v0.7.0

func (response ListBranches502ApplicationProblemPlusJSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error

type ListBranchesRequestObject

type ListBranchesRequestObject struct {
	Params ListBranchesParams
}

type ListBranchesResponseObject

type ListBranchesResponseObject interface {
	VisitListBranchesResponse(w http.ResponseWriter) error
}

type ListPipelineJobs200JSONResponse added in v0.6.0

type ListPipelineJobs200JSONResponse PipelineJobsResponse

func (ListPipelineJobs200JSONResponse) VisitListPipelineJobsResponse added in v0.6.0

func (response ListPipelineJobs200JSONResponse) VisitListPipelineJobsResponse(w http.ResponseWriter) error

type ListPipelineJobs400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelineJobs400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListPipelineJobs400ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse added in v0.7.0

func (response ListPipelineJobs400ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse(w http.ResponseWriter) error

type ListPipelineJobs404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelineJobs404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListPipelineJobs404ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse added in v0.7.0

func (response ListPipelineJobs404ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse(w http.ResponseWriter) error

type ListPipelineJobs500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelineJobs500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListPipelineJobs500ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse added in v0.7.0

func (response ListPipelineJobs500ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse(w http.ResponseWriter) error

type ListPipelineJobs502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelineJobs502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListPipelineJobs502ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse added in v0.7.0

func (response ListPipelineJobs502ApplicationProblemPlusJSONResponse) VisitListPipelineJobsResponse(w http.ResponseWriter) error

type ListPipelineJobsRequestObject added in v0.6.0

type ListPipelineJobsRequestObject struct {
	Params ListPipelineJobsParams
}

type ListPipelineJobsResponseObject added in v0.6.0

type ListPipelineJobsResponseObject interface {
	VisitListPipelineJobsResponse(w http.ResponseWriter) error
}

type ListPipelines200JSONResponse added in v0.3.0

type ListPipelines200JSONResponse PipelinesResponse

func (ListPipelines200JSONResponse) VisitListPipelinesResponse added in v0.3.0

func (response ListPipelines200JSONResponse) VisitListPipelinesResponse(w http.ResponseWriter) error

type ListPipelines400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelines400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListPipelines400ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse added in v0.7.0

func (response ListPipelines400ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse(w http.ResponseWriter) error

type ListPipelines404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelines404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListPipelines404ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse added in v0.7.0

func (response ListPipelines404ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse(w http.ResponseWriter) error

type ListPipelines500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelines500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListPipelines500ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse added in v0.7.0

func (response ListPipelines500ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse(w http.ResponseWriter) error

type ListPipelines502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPipelines502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListPipelines502ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse added in v0.7.0

func (response ListPipelines502ApplicationProblemPlusJSONResponse) VisitListPipelinesResponse(w http.ResponseWriter) error

type ListPipelinesRequestObject added in v0.3.0

type ListPipelinesRequestObject struct {
	Params ListPipelinesParams
}

type ListPipelinesResponseObject added in v0.3.0

type ListPipelinesResponseObject interface {
	VisitListPipelinesResponse(w http.ResponseWriter) error
}

type ListPullRequests200JSONResponse added in v0.2.0

type ListPullRequests200JSONResponse PullRequestsResponse

func (ListPullRequests200JSONResponse) VisitListPullRequestsResponse added in v0.2.0

func (response ListPullRequests200JSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error

type ListPullRequests400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPullRequests400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListPullRequests400ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse added in v0.7.0

func (response ListPullRequests400ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error

type ListPullRequests404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPullRequests404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListPullRequests404ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse added in v0.7.0

func (response ListPullRequests404ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error

type ListPullRequests500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPullRequests500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListPullRequests500ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse added in v0.7.0

func (response ListPullRequests500ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error

type ListPullRequests502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListPullRequests502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListPullRequests502ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse added in v0.7.0

func (response ListPullRequests502ApplicationProblemPlusJSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error

type ListPullRequestsRequestObject added in v0.2.0

type ListPullRequestsRequestObject struct {
	Params ListPullRequestsParams
}

type ListPullRequestsResponseObject added in v0.2.0

type ListPullRequestsResponseObject interface {
	VisitListPullRequestsResponse(w http.ResponseWriter) error
}

type ListRepositories200JSONResponse

type ListRepositories200JSONResponse RepositoriesResponse

func (ListRepositories200JSONResponse) VisitListRepositoriesResponse

func (response ListRepositories200JSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositories400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListRepositories400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListRepositories400ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse added in v0.7.0

func (response ListRepositories400ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositories404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListRepositories404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListRepositories404ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse added in v0.7.0

func (response ListRepositories404ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositories500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListRepositories500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListRepositories500ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse added in v0.7.0

func (response ListRepositories500ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositories502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListRepositories502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListRepositories502ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse added in v0.7.0

func (response ListRepositories502ApplicationProblemPlusJSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error

type ListRepositoriesRequestObject

type ListRepositoriesRequestObject struct {
	Params ListRepositoriesParams
}

type ListRepositoriesResponseObject

type ListRepositoriesResponseObject interface {
	VisitListRepositoriesResponse(w http.ResponseWriter) error
}

type ListUserOrganizations200JSONResponse

type ListUserOrganizations200JSONResponse OrganizationsResponse

func (ListUserOrganizations200JSONResponse) VisitListUserOrganizationsResponse

func (response ListUserOrganizations200JSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error

type ListUserOrganizations400ApplicationProblemPlusJSONResponse added in v0.7.0

type ListUserOrganizations400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListUserOrganizations400ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse added in v0.7.0

func (response ListUserOrganizations400ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error

type ListUserOrganizations404ApplicationProblemPlusJSONResponse added in v0.7.0

type ListUserOrganizations404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListUserOrganizations404ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse added in v0.7.0

func (response ListUserOrganizations404ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error

type ListUserOrganizations500ApplicationProblemPlusJSONResponse added in v0.7.0

type ListUserOrganizations500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (ListUserOrganizations500ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse added in v0.7.0

func (response ListUserOrganizations500ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error

type ListUserOrganizations502ApplicationProblemPlusJSONResponse added in v0.7.0

type ListUserOrganizations502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (ListUserOrganizations502ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse added in v0.7.0

func (response ListUserOrganizations502ApplicationProblemPlusJSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error

type ListUserOrganizationsRequestObject

type ListUserOrganizationsRequestObject struct {
	Params ListUserOrganizationsParams
}

type ListUserOrganizationsResponseObject

type ListUserOrganizationsResponseObject interface {
	VisitListUserOrganizationsResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NotFoundApplicationProblemPlusJSONResponse added in v0.7.0

type NotFoundApplicationProblemPlusJSONResponse struct {
	Body Problem

	Headers NotFoundResponseHeaders
}

type NotFoundResponseHeaders added in v0.7.0

type NotFoundResponseHeaders struct {
	XRequestId string
}

type OrganizationHandler

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

OrganizationHandler handles requests related to organizations (all providers).

func NewOrganizationHandler

func NewOrganizationHandler(organizationsService *organizations.OrganizationsService) *OrganizationHandler

NewOrganizationHandler creates a new OrganizationHandler.

func (*OrganizationHandler) ListUserOrganizations

ListUserOrganizations implements api.StrictServerInterface.

type PipelineHandler added in v0.2.0

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

PipelineHandler handles requests related to CI/CD pipelines (all providers).

func NewPipelineHandler added in v0.2.0

func NewPipelineHandler(pipelinesService pipelineService) *PipelineHandler

NewPipelineHandler creates a new PipelineHandler.

func (*PipelineHandler) GetPipelineJobTrace added in v0.6.0

GetPipelineJobTrace implements api.StrictServerInterface.

func (*PipelineHandler) ListPipelineJobs added in v0.6.0

ListPipelineJobs implements api.StrictServerInterface.

func (*PipelineHandler) ListPipelines added in v0.3.0

ListPipelines implements api.StrictServerInterface.

func (*PipelineHandler) TriggerPipeline added in v0.2.0

TriggerPipeline implements api.StrictServerInterface.

type PullRequestHandler added in v0.2.0

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

PullRequestHandler handles requests related to pull/merge requests (all providers).

func NewPullRequestHandler added in v0.2.0

func NewPullRequestHandler(pullRequestsService pullRequestLister) *PullRequestHandler

NewPullRequestHandler creates a new PullRequestHandler.

func (*PullRequestHandler) ListPullRequests added in v0.2.0

ListPullRequests implements api.StrictServerInterface.

type RepositoryHandler

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

RepositoryHandler handles requests related to repositories (all providers).

func NewRepositoryHandler

func NewRepositoryHandler(repositoriesService *repositories.RepositoriesService) *RepositoryHandler

NewRepositoryHandler creates a new RepositoryHandler.

func (*RepositoryHandler) GetRepository

GetRepository implements api.StrictServerInterface.

func (*RepositoryHandler) ListRepositories

ListRepositories implements api.StrictServerInterface.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type Server

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

Server is the main server struct that implements the StrictServerInterface.

func NewServer

func NewServer(
	repositoryHandler *RepositoryHandler,
	organizationHandler *OrganizationHandler,
	branchHandler *BranchHandler,
	cacheHandler *CacheHandler,
	pipelineHandler *PipelineHandler,
	pullRequestHandler *PullRequestHandler,
) *Server

NewServer creates a new Server instance.

func (*Server) GetPipelineJobTrace added in v0.6.0

GetPipelineJobTrace implements StrictServerInterface.

func (*Server) GetRepository

GetRepository implements StrictServerInterface.

func (*Server) InvalidateCache

InvalidateCache implements StrictServerInterface.

func (*Server) ListBranches

ListBranches implements StrictServerInterface.

func (*Server) ListPipelineJobs added in v0.6.0

ListPipelineJobs implements StrictServerInterface.

func (*Server) ListPipelines added in v0.3.0

ListPipelines implements StrictServerInterface.

func (*Server) ListPullRequests added in v0.2.0

ListPullRequests implements StrictServerInterface.

func (*Server) ListRepositories

ListRepositories implements StrictServerInterface.

func (*Server) ListUserOrganizations

ListUserOrganizations implements StrictServerInterface.

func (*Server) TriggerPipeline added in v0.2.0

TriggerPipeline implements StrictServerInterface.

type ServerInterface

type ServerInterface interface {
	// List branches for a repository
	// (GET /api/v1/branches)
	ListBranches(w http.ResponseWriter, r *http.Request, params ListBranchesParams)
	// Invalidate cache for a specific endpoint
	// (DELETE /api/v1/cache/invalidate)
	InvalidateCache(w http.ResponseWriter, r *http.Request, params InvalidateCacheParams)
	// Get the trace (log) of a CI/CD pipeline job
	// (GET /api/v1/pipeline-job-trace)
	GetPipelineJobTrace(w http.ResponseWriter, r *http.Request, params GetPipelineJobTraceParams)
	// List jobs for a CI/CD pipeline
	// (GET /api/v1/pipeline-jobs)
	ListPipelineJobs(w http.ResponseWriter, r *http.Request, params ListPipelineJobsParams)
	// List CI/CD pipelines for a project
	// (GET /api/v1/pipelines)
	ListPipelines(w http.ResponseWriter, r *http.Request, params ListPipelinesParams)
	// List pull/merge requests for a repository
	// (GET /api/v1/pull-requests)
	ListPullRequests(w http.ResponseWriter, r *http.Request, params ListPullRequestsParams)
	// List repositories
	// (GET /api/v1/repositories)
	ListRepositories(w http.ResponseWriter, r *http.Request, params ListRepositoriesParams)
	// Get detailed information for a specific repository
	// (GET /api/v1/repository)
	GetRepository(w http.ResponseWriter, r *http.Request, params GetRepositoryParams)
	// Trigger a CI/CD pipeline
	// (POST /api/v1/trigger-pipeline)
	TriggerPipeline(w http.ResponseWriter, r *http.Request, params TriggerPipelineParams)
	// List organizations for the authenticated user
	// (GET /api/v1/user/organizations)
	ListUserOrganizations(w http.ResponseWriter, r *http.Request, params ListUserOrganizationsParams)
}

ServerInterface represents all server handlers.

func BuildHandler

func BuildHandler(conf Config) (ServerInterface, error)

BuildHandler returns the API handler and starts the organization cache warm-up in the background.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetPipelineJobTrace added in v0.6.0

func (siw *ServerInterfaceWrapper) GetPipelineJobTrace(w http.ResponseWriter, r *http.Request)

GetPipelineJobTrace operation middleware

func (*ServerInterfaceWrapper) GetRepository

func (siw *ServerInterfaceWrapper) GetRepository(w http.ResponseWriter, r *http.Request)

GetRepository operation middleware

func (*ServerInterfaceWrapper) InvalidateCache

func (siw *ServerInterfaceWrapper) InvalidateCache(w http.ResponseWriter, r *http.Request)

InvalidateCache operation middleware

func (*ServerInterfaceWrapper) ListBranches

func (siw *ServerInterfaceWrapper) ListBranches(w http.ResponseWriter, r *http.Request)

ListBranches operation middleware

func (*ServerInterfaceWrapper) ListPipelineJobs added in v0.6.0

func (siw *ServerInterfaceWrapper) ListPipelineJobs(w http.ResponseWriter, r *http.Request)

ListPipelineJobs operation middleware

func (*ServerInterfaceWrapper) ListPipelines added in v0.3.0

func (siw *ServerInterfaceWrapper) ListPipelines(w http.ResponseWriter, r *http.Request)

ListPipelines operation middleware

func (*ServerInterfaceWrapper) ListPullRequests added in v0.2.0

func (siw *ServerInterfaceWrapper) ListPullRequests(w http.ResponseWriter, r *http.Request)

ListPullRequests operation middleware

func (*ServerInterfaceWrapper) ListRepositories

func (siw *ServerInterfaceWrapper) ListRepositories(w http.ResponseWriter, r *http.Request)

ListRepositories operation middleware

func (*ServerInterfaceWrapper) ListUserOrganizations

func (siw *ServerInterfaceWrapper) ListUserOrganizations(w http.ResponseWriter, r *http.Request)

ListUserOrganizations operation middleware

func (*ServerInterfaceWrapper) TriggerPipeline added in v0.2.0

func (siw *ServerInterfaceWrapper) TriggerPipeline(w http.ResponseWriter, r *http.Request)

TriggerPipeline operation middleware

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictServerInterface

type StrictServerInterface interface {
	// List branches for a repository
	// (GET /api/v1/branches)
	ListBranches(ctx context.Context, request ListBranchesRequestObject) (ListBranchesResponseObject, error)
	// Invalidate cache for a specific endpoint
	// (DELETE /api/v1/cache/invalidate)
	InvalidateCache(ctx context.Context, request InvalidateCacheRequestObject) (InvalidateCacheResponseObject, error)
	// Get the trace (log) of a CI/CD pipeline job
	// (GET /api/v1/pipeline-job-trace)
	GetPipelineJobTrace(ctx context.Context, request GetPipelineJobTraceRequestObject) (GetPipelineJobTraceResponseObject, error)
	// List jobs for a CI/CD pipeline
	// (GET /api/v1/pipeline-jobs)
	ListPipelineJobs(ctx context.Context, request ListPipelineJobsRequestObject) (ListPipelineJobsResponseObject, error)
	// List CI/CD pipelines for a project
	// (GET /api/v1/pipelines)
	ListPipelines(ctx context.Context, request ListPipelinesRequestObject) (ListPipelinesResponseObject, error)
	// List pull/merge requests for a repository
	// (GET /api/v1/pull-requests)
	ListPullRequests(ctx context.Context, request ListPullRequestsRequestObject) (ListPullRequestsResponseObject, error)
	// List repositories
	// (GET /api/v1/repositories)
	ListRepositories(ctx context.Context, request ListRepositoriesRequestObject) (ListRepositoriesResponseObject, error)
	// Get detailed information for a specific repository
	// (GET /api/v1/repository)
	GetRepository(ctx context.Context, request GetRepositoryRequestObject) (GetRepositoryResponseObject, error)
	// Trigger a CI/CD pipeline
	// (POST /api/v1/trigger-pipeline)
	TriggerPipeline(ctx context.Context, request TriggerPipelineRequestObject) (TriggerPipelineResponseObject, error)
	// List organizations for the authenticated user
	// (GET /api/v1/user/organizations)
	ListUserOrganizations(ctx context.Context, request ListUserOrganizationsRequestObject) (ListUserOrganizationsResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type TriggerPipeline201JSONResponse added in v0.2.0

type TriggerPipeline201JSONResponse PipelineResponse

func (TriggerPipeline201JSONResponse) VisitTriggerPipelineResponse added in v0.2.0

func (response TriggerPipeline201JSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error

type TriggerPipeline400ApplicationProblemPlusJSONResponse added in v0.7.0

type TriggerPipeline400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (TriggerPipeline400ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse added in v0.7.0

func (response TriggerPipeline400ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error

type TriggerPipeline404ApplicationProblemPlusJSONResponse added in v0.7.0

type TriggerPipeline404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (TriggerPipeline404ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse added in v0.7.0

func (response TriggerPipeline404ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error

type TriggerPipeline500ApplicationProblemPlusJSONResponse added in v0.7.0

type TriggerPipeline500ApplicationProblemPlusJSONResponse struct {
	InternalErrorApplicationProblemPlusJSONResponse
}

func (TriggerPipeline500ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse added in v0.7.0

func (response TriggerPipeline500ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error

type TriggerPipeline502ApplicationProblemPlusJSONResponse added in v0.7.0

type TriggerPipeline502ApplicationProblemPlusJSONResponse struct {
	BadGatewayApplicationProblemPlusJSONResponse
}

func (TriggerPipeline502ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse added in v0.7.0

func (response TriggerPipeline502ApplicationProblemPlusJSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error

type TriggerPipelineRequestObject added in v0.2.0

type TriggerPipelineRequestObject struct {
	Params TriggerPipelineParams
}

type TriggerPipelineResponseObject added in v0.2.0

type TriggerPipelineResponseObject interface {
	VisitTriggerPipelineResponse(w http.ResponseWriter) error
}

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) GetPipelineJobTrace added in v0.6.0

func (_ Unimplemented) GetPipelineJobTrace(w http.ResponseWriter, r *http.Request, params GetPipelineJobTraceParams)

Get the trace (log) of a CI/CD pipeline job (GET /api/v1/pipeline-job-trace)

func (Unimplemented) GetRepository

func (_ Unimplemented) GetRepository(w http.ResponseWriter, r *http.Request, params GetRepositoryParams)

Get detailed information for a specific repository (GET /api/v1/repository)

func (Unimplemented) InvalidateCache

func (_ Unimplemented) InvalidateCache(w http.ResponseWriter, r *http.Request, params InvalidateCacheParams)

Invalidate cache for a specific endpoint (DELETE /api/v1/cache/invalidate)

func (Unimplemented) ListBranches

func (_ Unimplemented) ListBranches(w http.ResponseWriter, r *http.Request, params ListBranchesParams)

List branches for a repository (GET /api/v1/branches)

func (Unimplemented) ListPipelineJobs added in v0.6.0

func (_ Unimplemented) ListPipelineJobs(w http.ResponseWriter, r *http.Request, params ListPipelineJobsParams)

List jobs for a CI/CD pipeline (GET /api/v1/pipeline-jobs)

func (Unimplemented) ListPipelines added in v0.3.0

func (_ Unimplemented) ListPipelines(w http.ResponseWriter, r *http.Request, params ListPipelinesParams)

List CI/CD pipelines for a project (GET /api/v1/pipelines)

func (Unimplemented) ListPullRequests added in v0.2.0

func (_ Unimplemented) ListPullRequests(w http.ResponseWriter, r *http.Request, params ListPullRequestsParams)

List pull/merge requests for a repository (GET /api/v1/pull-requests)

func (Unimplemented) ListRepositories

func (_ Unimplemented) ListRepositories(w http.ResponseWriter, r *http.Request, params ListRepositoriesParams)

List repositories (GET /api/v1/repositories)

func (Unimplemented) ListUserOrganizations

func (_ Unimplemented) ListUserOrganizations(w http.ResponseWriter, r *http.Request, params ListUserOrganizationsParams)

List organizations for the authenticated user (GET /api/v1/user/organizations)

func (Unimplemented) TriggerPipeline added in v0.2.0

func (_ Unimplemented) TriggerPipeline(w http.ResponseWriter, r *http.Request, params TriggerPipelineParams)

Trigger a CI/CD pipeline (POST /api/v1/trigger-pipeline)

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

Jump to

Keyboard shortcuts

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