Documentation ¶
Index ¶
- type ScopedHandlerFactory
- type Server
- func (s *Server) DeletePipeline(_ db.PipelineDB, pipelineDB dbng.Pipeline) http.Handler
- func (s *Server) ExposePipeline(_ db.PipelineDB, pipeline dbng.Pipeline) http.Handler
- func (s *Server) GetPipeline(_ db.PipelineDB, pipeline dbng.Pipeline) http.Handler
- func (s *Server) GetVersionsDB(_ db.PipelineDB, pipelineDB dbng.Pipeline) http.Handler
- func (s *Server) HidePipeline(_ db.PipelineDB, pipelineDB dbng.Pipeline) http.Handler
- func (s *Server) ListAllPipelines(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListPipelines(w http.ResponseWriter, r *http.Request)
- func (s *Server) OrderPipelines(w http.ResponseWriter, r *http.Request)
- func (s *Server) PausePipeline(_ db.PipelineDB, pipelineDB dbng.Pipeline) http.Handler
- func (s *Server) RenamePipeline(_ db.PipelineDB, pipeline dbng.Pipeline) http.Handler
- func (s *Server) UnpausePipeline(_ db.PipelineDB, pipelineDB dbng.Pipeline) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScopedHandlerFactory ¶
type ScopedHandlerFactory struct {
// contains filtered or unexported fields
}
func NewScopedHandlerFactory ¶
func NewScopedHandlerFactory( pipelineDBFactory db.PipelineDBFactory, teamDBFactory db.TeamDBFactory, teamDBNGFactory dbng.TeamFactory, ) *ScopedHandlerFactory
func (*ScopedHandlerFactory) HandlerFor ¶
func (pdbh *ScopedHandlerFactory) HandlerFor(pipelineScopedHandler func(db.PipelineDB, dbng.Pipeline) http.Handler) http.HandlerFunc
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( logger lager.Logger, teamFactory dbng.TeamFactory, teamDBFactory db.TeamDBFactory, pipelineFactory dbng.PipelineFactory, ) *Server
func (*Server) DeletePipeline ¶
func (*Server) ExposePipeline ¶
func (*Server) GetPipeline ¶
func (*Server) GetVersionsDB ¶
func (*Server) HidePipeline ¶
func (*Server) ListAllPipelines ¶
func (s *Server) ListAllPipelines(w http.ResponseWriter, r *http.Request)
show all public pipelines and team private pipelines if authorized
func (*Server) ListPipelines ¶
func (s *Server) ListPipelines(w http.ResponseWriter, r *http.Request)
func (*Server) OrderPipelines ¶
func (s *Server) OrderPipelines(w http.ResponseWriter, r *http.Request)
func (*Server) PausePipeline ¶
func (*Server) RenamePipeline ¶
func (*Server) UnpausePipeline ¶
Click to show internal directories.
Click to hide internal directories.