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 ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewHTTPHandler(si ServerInterface, r chi.Router) http.Handler
- type BadGatewayApplicationProblemPlusJSONResponse
- type BadGatewayResponseHeaders
- type BadRequestApplicationProblemPlusJSONResponse
- type BadRequestResponseHeaders
- type BranchHandler
- type CacheHandler
- type ChiServerOptions
- type Config
- type GetPipelineJobTrace200JSONResponse
- type GetPipelineJobTrace400ApplicationProblemPlusJSONResponse
- type GetPipelineJobTrace404ApplicationProblemPlusJSONResponse
- type GetPipelineJobTrace500ApplicationProblemPlusJSONResponse
- type GetPipelineJobTrace502ApplicationProblemPlusJSONResponse
- type GetPipelineJobTraceRequestObject
- type GetPipelineJobTraceResponseObject
- type GetRepository200JSONResponse
- type GetRepository400ApplicationProblemPlusJSONResponse
- type GetRepository404ApplicationProblemPlusJSONResponse
- type GetRepository500ApplicationProblemPlusJSONResponse
- type GetRepository502ApplicationProblemPlusJSONResponse
- type GetRepositoryRequestObject
- type GetRepositoryResponseObject
- type InternalErrorApplicationProblemPlusJSONResponse
- type InternalErrorResponseHeaders
- type InvalidParamFormatError
- type InvalidateCache200JSONResponse
- type InvalidateCache400ApplicationProblemPlusJSONResponse
- type InvalidateCache500ApplicationProblemPlusJSONResponse
- type InvalidateCacheRequestObject
- type InvalidateCacheResponseObject
- type ListBranches200JSONResponse
- type ListBranches400ApplicationProblemPlusJSONResponse
- type ListBranches404ApplicationProblemPlusJSONResponse
- type ListBranches500ApplicationProblemPlusJSONResponse
- type ListBranches502ApplicationProblemPlusJSONResponse
- type ListBranchesRequestObject
- type ListBranchesResponseObject
- type ListPipelineJobs200JSONResponse
- type ListPipelineJobs400ApplicationProblemPlusJSONResponse
- type ListPipelineJobs404ApplicationProblemPlusJSONResponse
- type ListPipelineJobs500ApplicationProblemPlusJSONResponse
- type ListPipelineJobs502ApplicationProblemPlusJSONResponse
- type ListPipelineJobsRequestObject
- type ListPipelineJobsResponseObject
- type ListPipelines200JSONResponse
- type ListPipelines400ApplicationProblemPlusJSONResponse
- type ListPipelines404ApplicationProblemPlusJSONResponse
- type ListPipelines500ApplicationProblemPlusJSONResponse
- type ListPipelines502ApplicationProblemPlusJSONResponse
- type ListPipelinesRequestObject
- type ListPipelinesResponseObject
- type ListPullRequests200JSONResponse
- type ListPullRequests400ApplicationProblemPlusJSONResponse
- type ListPullRequests404ApplicationProblemPlusJSONResponse
- type ListPullRequests500ApplicationProblemPlusJSONResponse
- type ListPullRequests502ApplicationProblemPlusJSONResponse
- type ListPullRequestsRequestObject
- type ListPullRequestsResponseObject
- type ListRepositories200JSONResponse
- type ListRepositories400ApplicationProblemPlusJSONResponse
- type ListRepositories404ApplicationProblemPlusJSONResponse
- type ListRepositories500ApplicationProblemPlusJSONResponse
- type ListRepositories502ApplicationProblemPlusJSONResponse
- type ListRepositoriesRequestObject
- type ListRepositoriesResponseObject
- type ListUserOrganizations200JSONResponse
- type ListUserOrganizations400ApplicationProblemPlusJSONResponse
- type ListUserOrganizations404ApplicationProblemPlusJSONResponse
- type ListUserOrganizations500ApplicationProblemPlusJSONResponse
- type ListUserOrganizations502ApplicationProblemPlusJSONResponse
- type ListUserOrganizationsRequestObject
- type ListUserOrganizationsResponseObject
- type MiddlewareFunc
- type NotFoundApplicationProblemPlusJSONResponse
- type NotFoundResponseHeaders
- type OrganizationHandler
- type PipelineHandler
- func (h *PipelineHandler) GetPipelineJobTrace(ctx context.Context, request GetPipelineJobTraceRequestObject) (GetPipelineJobTraceResponseObject, error)
- func (h *PipelineHandler) ListPipelineJobs(ctx context.Context, request ListPipelineJobsRequestObject) (ListPipelineJobsResponseObject, error)
- func (h *PipelineHandler) ListPipelines(ctx context.Context, request ListPipelinesRequestObject) (ListPipelinesResponseObject, error)
- func (h *PipelineHandler) TriggerPipeline(ctx context.Context, request TriggerPipelineRequestObject) (TriggerPipelineResponseObject, error)
- type PullRequestHandler
- type RepositoryHandler
- type RequiredHeaderError
- type RequiredParamError
- type Server
- func (s *Server) GetPipelineJobTrace(ctx context.Context, request GetPipelineJobTraceRequestObject) (GetPipelineJobTraceResponseObject, error)
- func (r *Server) GetRepository(ctx context.Context, request GetRepositoryRequestObject) (GetRepositoryResponseObject, error)
- func (s *Server) InvalidateCache(ctx context.Context, request InvalidateCacheRequestObject) (InvalidateCacheResponseObject, error)
- func (s *Server) ListBranches(ctx context.Context, request ListBranchesRequestObject) (ListBranchesResponseObject, error)
- func (s *Server) ListPipelineJobs(ctx context.Context, request ListPipelineJobsRequestObject) (ListPipelineJobsResponseObject, error)
- func (s *Server) ListPipelines(ctx context.Context, request ListPipelinesRequestObject) (ListPipelinesResponseObject, error)
- func (s *Server) ListPullRequests(ctx context.Context, request ListPullRequestsRequestObject) (ListPullRequestsResponseObject, error)
- func (r *Server) ListRepositories(ctx context.Context, request ListRepositoriesRequestObject) (ListRepositoriesResponseObject, error)
- func (s *Server) ListUserOrganizations(ctx context.Context, request ListUserOrganizationsRequestObject) (ListUserOrganizationsResponseObject, error)
- func (s *Server) TriggerPipeline(ctx context.Context, request TriggerPipelineRequestObject) (TriggerPipelineResponseObject, error)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetPipelineJobTrace(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRepository(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InvalidateCache(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListBranches(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPipelineJobs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPipelines(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListPullRequests(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRepositories(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUserOrganizations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) TriggerPipeline(w http.ResponseWriter, r *http.Request)
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type TriggerPipeline201JSONResponse
- type TriggerPipeline400ApplicationProblemPlusJSONResponse
- type TriggerPipeline404ApplicationProblemPlusJSONResponse
- type TriggerPipeline500ApplicationProblemPlusJSONResponse
- type TriggerPipeline502ApplicationProblemPlusJSONResponse
- type TriggerPipelineRequestObject
- type TriggerPipelineResponseObject
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) GetPipelineJobTrace(w http.ResponseWriter, r *http.Request, params GetPipelineJobTraceParams)
- func (_ Unimplemented) GetRepository(w http.ResponseWriter, r *http.Request, params GetRepositoryParams)
- func (_ Unimplemented) InvalidateCache(w http.ResponseWriter, r *http.Request, params InvalidateCacheParams)
- func (_ Unimplemented) ListBranches(w http.ResponseWriter, r *http.Request, params ListBranchesParams)
- func (_ Unimplemented) ListPipelineJobs(w http.ResponseWriter, r *http.Request, params ListPipelineJobsParams)
- func (_ Unimplemented) ListPipelines(w http.ResponseWriter, r *http.Request, params ListPipelinesParams)
- func (_ Unimplemented) ListPullRequests(w http.ResponseWriter, r *http.Request, params ListPullRequestsParams)
- func (_ Unimplemented) ListRepositories(w http.ResponseWriter, r *http.Request, params ListRepositoriesParams)
- func (_ Unimplemented) ListUserOrganizations(w http.ResponseWriter, r *http.Request, params ListUserOrganizationsParams)
- func (_ Unimplemented) TriggerPipeline(w http.ResponseWriter, r *http.Request, params TriggerPipelineParams)
- type UnmarshalingParamError
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 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 ¶
func (h *BranchHandler) ListBranches( ctx context.Context, request ListBranchesRequestObject, ) (ListBranchesResponseObject, error)
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 ¶
func (c *CacheHandler) InvalidateCache( ctx context.Context, request InvalidateCacheRequestObject, ) (InvalidateCacheResponseObject, error)
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 ¶
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 ¶
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 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 ¶
func (h *OrganizationHandler) ListUserOrganizations( ctx context.Context, request ListUserOrganizationsRequestObject, ) (ListUserOrganizationsResponseObject, error)
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
func (h *PipelineHandler) GetPipelineJobTrace( ctx context.Context, request GetPipelineJobTraceRequestObject, ) (GetPipelineJobTraceResponseObject, error)
GetPipelineJobTrace implements api.StrictServerInterface.
func (*PipelineHandler) ListPipelineJobs ¶ added in v0.6.0
func (h *PipelineHandler) ListPipelineJobs( ctx context.Context, request ListPipelineJobsRequestObject, ) (ListPipelineJobsResponseObject, error)
ListPipelineJobs implements api.StrictServerInterface.
func (*PipelineHandler) ListPipelines ¶ added in v0.3.0
func (h *PipelineHandler) ListPipelines( ctx context.Context, request ListPipelinesRequestObject, ) (ListPipelinesResponseObject, error)
ListPipelines implements api.StrictServerInterface.
func (*PipelineHandler) TriggerPipeline ¶ added in v0.2.0
func (h *PipelineHandler) TriggerPipeline( ctx context.Context, request TriggerPipelineRequestObject, ) (TriggerPipelineResponseObject, error)
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
func (h *PullRequestHandler) ListPullRequests( ctx context.Context, request ListPullRequestsRequestObject, ) (ListPullRequestsResponseObject, error)
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 ¶
func (r *RepositoryHandler) GetRepository( ctx context.Context, request GetRepositoryRequestObject, ) (GetRepositoryResponseObject, error)
GetRepository implements api.StrictServerInterface.
func (*RepositoryHandler) ListRepositories ¶
func (r *RepositoryHandler) ListRepositories( ctx context.Context, request ListRepositoriesRequestObject, ) (ListRepositoriesResponseObject, error)
ListRepositories implements api.StrictServerInterface.
type RequiredHeaderError ¶
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
func (s *Server) GetPipelineJobTrace( ctx context.Context, request GetPipelineJobTraceRequestObject, ) (GetPipelineJobTraceResponseObject, error)
GetPipelineJobTrace implements StrictServerInterface.
func (*Server) GetRepository ¶
func (r *Server) GetRepository( ctx context.Context, request GetRepositoryRequestObject, ) (GetRepositoryResponseObject, error)
GetRepository implements StrictServerInterface.
func (*Server) InvalidateCache ¶
func (s *Server) InvalidateCache( ctx context.Context, request InvalidateCacheRequestObject, ) (InvalidateCacheResponseObject, error)
InvalidateCache implements StrictServerInterface.
func (*Server) ListBranches ¶
func (s *Server) ListBranches( ctx context.Context, request ListBranchesRequestObject, ) (ListBranchesResponseObject, error)
ListBranches implements StrictServerInterface.
func (*Server) ListPipelineJobs ¶ added in v0.6.0
func (s *Server) ListPipelineJobs( ctx context.Context, request ListPipelineJobsRequestObject, ) (ListPipelineJobsResponseObject, error)
ListPipelineJobs implements StrictServerInterface.
func (*Server) ListPipelines ¶ added in v0.3.0
func (s *Server) ListPipelines( ctx context.Context, request ListPipelinesRequestObject, ) (ListPipelinesResponseObject, error)
ListPipelines implements StrictServerInterface.
func (*Server) ListPullRequests ¶ added in v0.2.0
func (s *Server) ListPullRequests( ctx context.Context, request ListPullRequestsRequestObject, ) (ListPullRequestsResponseObject, error)
ListPullRequests implements StrictServerInterface.
func (*Server) ListRepositories ¶
func (r *Server) ListRepositories( ctx context.Context, request ListRepositoriesRequestObject, ) (ListRepositoriesResponseObject, error)
ListRepositories implements StrictServerInterface.
func (*Server) ListUserOrganizations ¶
func (s *Server) ListUserOrganizations( ctx context.Context, request ListUserOrganizationsRequestObject, ) (ListUserOrganizationsResponseObject, error)
ListUserOrganizations implements StrictServerInterface.
func (*Server) TriggerPipeline ¶ added in v0.2.0
func (s *Server) TriggerPipeline( ctx context.Context, request TriggerPipelineRequestObject, ) (TriggerPipelineResponseObject, error)
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 StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
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 ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
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 ¶
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 ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error