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.4.1 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
- type BranchHandler
- type CacheHandler
- type ChiServerOptions
- type Config
- type GetRepository200JSONResponse
- type GetRepository400JSONResponse
- type GetRepository404JSONResponse
- type GetRepositoryRequestObject
- type GetRepositoryResponseObject
- type InvalidParamFormatError
- type InvalidateCache200JSONResponse
- type InvalidateCache400JSONResponse
- type InvalidateCache500JSONResponse
- type InvalidateCacheRequestObject
- type InvalidateCacheResponseObject
- type ListBranches200JSONResponse
- type ListBranches400JSONResponse
- type ListBranches401JSONResponse
- type ListBranches500JSONResponse
- type ListBranchesRequestObject
- type ListBranchesResponseObject
- type ListPullRequests200JSONResponse
- type ListPullRequests400JSONResponse
- type ListPullRequests401JSONResponse
- type ListPullRequests404JSONResponse
- type ListPullRequests500JSONResponse
- type ListPullRequestsRequestObject
- type ListPullRequestsResponseObject
- type ListRepositories200JSONResponse
- type ListRepositories400JSONResponse
- type ListRepositories401JSONResponse
- type ListRepositories500JSONResponse
- type ListRepositoriesRequestObject
- type ListRepositoriesResponseObject
- type ListUserOrganizations200JSONResponse
- type ListUserOrganizations400JSONResponse
- type ListUserOrganizations401JSONResponse
- type ListUserOrganizations500JSONResponse
- type ListUserOrganizationsRequestObject
- type ListUserOrganizationsResponseObject
- type MiddlewareFunc
- type OrganizationHandler
- type PipelineHandler
- type PullRequestHandler
- type RepositoryHandler
- type RequiredHeaderError
- type RequiredParamError
- type Server
- 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) 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) 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) 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 TriggerPipeline400JSONResponse
- type TriggerPipeline401JSONResponse
- type TriggerPipeline404JSONResponse
- type TriggerPipeline500JSONResponse
- type TriggerPipelineRequestObject
- type TriggerPipelineResponseObject
- type UnescapedCookieParamError
- type Unimplemented
- 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) 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
Types ¶
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 GetRepository200JSONResponse ¶
type GetRepository200JSONResponse Repository
func (GetRepository200JSONResponse) VisitGetRepositoryResponse ¶
func (response GetRepository200JSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error
type GetRepository400JSONResponse ¶
type GetRepository400JSONResponse Error
func (GetRepository400JSONResponse) VisitGetRepositoryResponse ¶
func (response GetRepository400JSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error
type GetRepository404JSONResponse ¶
type GetRepository404JSONResponse Error
func (GetRepository404JSONResponse) VisitGetRepositoryResponse ¶
func (response GetRepository404JSONResponse) VisitGetRepositoryResponse(w http.ResponseWriter) error
type GetRepositoryRequestObject ¶
type GetRepositoryRequestObject struct {
Params GetRepositoryParams
}
type GetRepositoryResponseObject ¶
type GetRepositoryResponseObject interface {
VisitGetRepositoryResponse(w http.ResponseWriter) error
}
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 InvalidateCache400JSONResponse ¶
type InvalidateCache400JSONResponse Error
func (InvalidateCache400JSONResponse) VisitInvalidateCacheResponse ¶
func (response InvalidateCache400JSONResponse) VisitInvalidateCacheResponse(w http.ResponseWriter) error
type InvalidateCache500JSONResponse ¶
type InvalidateCache500JSONResponse Error
func (InvalidateCache500JSONResponse) VisitInvalidateCacheResponse ¶
func (response InvalidateCache500JSONResponse) 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 ListBranches400JSONResponse ¶
type ListBranches400JSONResponse Error
func (ListBranches400JSONResponse) VisitListBranchesResponse ¶
func (response ListBranches400JSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error
type ListBranches401JSONResponse ¶
type ListBranches401JSONResponse Error
func (ListBranches401JSONResponse) VisitListBranchesResponse ¶
func (response ListBranches401JSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error
type ListBranches500JSONResponse ¶
type ListBranches500JSONResponse Error
func (ListBranches500JSONResponse) VisitListBranchesResponse ¶
func (response ListBranches500JSONResponse) VisitListBranchesResponse(w http.ResponseWriter) error
type ListBranchesRequestObject ¶
type ListBranchesRequestObject struct {
Params ListBranchesParams
}
type ListBranchesResponseObject ¶
type ListBranchesResponseObject interface {
VisitListBranchesResponse(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 ListPullRequests400JSONResponse ¶ added in v0.2.0
type ListPullRequests400JSONResponse Error
func (ListPullRequests400JSONResponse) VisitListPullRequestsResponse ¶ added in v0.2.0
func (response ListPullRequests400JSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error
type ListPullRequests401JSONResponse ¶ added in v0.2.0
type ListPullRequests401JSONResponse Error
func (ListPullRequests401JSONResponse) VisitListPullRequestsResponse ¶ added in v0.2.0
func (response ListPullRequests401JSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error
type ListPullRequests404JSONResponse ¶ added in v0.2.0
type ListPullRequests404JSONResponse Error
func (ListPullRequests404JSONResponse) VisitListPullRequestsResponse ¶ added in v0.2.0
func (response ListPullRequests404JSONResponse) VisitListPullRequestsResponse(w http.ResponseWriter) error
type ListPullRequests500JSONResponse ¶ added in v0.2.0
type ListPullRequests500JSONResponse Error
func (ListPullRequests500JSONResponse) VisitListPullRequestsResponse ¶ added in v0.2.0
func (response ListPullRequests500JSONResponse) 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 ListRepositories400JSONResponse ¶
type ListRepositories400JSONResponse Error
func (ListRepositories400JSONResponse) VisitListRepositoriesResponse ¶
func (response ListRepositories400JSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error
type ListRepositories401JSONResponse ¶
type ListRepositories401JSONResponse Error
func (ListRepositories401JSONResponse) VisitListRepositoriesResponse ¶
func (response ListRepositories401JSONResponse) VisitListRepositoriesResponse(w http.ResponseWriter) error
type ListRepositories500JSONResponse ¶
type ListRepositories500JSONResponse Error
func (ListRepositories500JSONResponse) VisitListRepositoriesResponse ¶
func (response ListRepositories500JSONResponse) 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 ListUserOrganizations400JSONResponse ¶
type ListUserOrganizations400JSONResponse Error
func (ListUserOrganizations400JSONResponse) VisitListUserOrganizationsResponse ¶
func (response ListUserOrganizations400JSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error
type ListUserOrganizations401JSONResponse ¶
type ListUserOrganizations401JSONResponse Error
func (ListUserOrganizations401JSONResponse) VisitListUserOrganizationsResponse ¶
func (response ListUserOrganizations401JSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error
type ListUserOrganizations500JSONResponse ¶
type ListUserOrganizations500JSONResponse Error
func (ListUserOrganizations500JSONResponse) VisitListUserOrganizationsResponse ¶
func (response ListUserOrganizations500JSONResponse) VisitListUserOrganizationsResponse(w http.ResponseWriter) error
type ListUserOrganizationsRequestObject ¶
type ListUserOrganizationsRequestObject struct {
Params ListUserOrganizationsParams
}
type ListUserOrganizationsResponseObject ¶
type ListUserOrganizationsResponseObject interface {
VisitListUserOrganizationsResponse(w http.ResponseWriter) error
}
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 *pipelines.PipelinesService) *PipelineHandler
NewPipelineHandler creates a new PipelineHandler.
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) 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) 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)
// 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)
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) 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) 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)
// 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 TriggerPipeline400JSONResponse ¶ added in v0.2.0
type TriggerPipeline400JSONResponse Error
func (TriggerPipeline400JSONResponse) VisitTriggerPipelineResponse ¶ added in v0.2.0
func (response TriggerPipeline400JSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error
type TriggerPipeline401JSONResponse ¶ added in v0.2.0
type TriggerPipeline401JSONResponse Error
func (TriggerPipeline401JSONResponse) VisitTriggerPipelineResponse ¶ added in v0.2.0
func (response TriggerPipeline401JSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error
type TriggerPipeline404JSONResponse ¶ added in v0.2.0
type TriggerPipeline404JSONResponse Error
func (TriggerPipeline404JSONResponse) VisitTriggerPipelineResponse ¶ added in v0.2.0
func (response TriggerPipeline404JSONResponse) VisitTriggerPipelineResponse(w http.ResponseWriter) error
type TriggerPipeline500JSONResponse ¶ added in v0.2.0
type TriggerPipeline500JSONResponse Error
func (TriggerPipeline500JSONResponse) VisitTriggerPipelineResponse ¶ added in v0.2.0
func (response TriggerPipeline500JSONResponse) 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) 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) 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