handlers

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchHandler

type BranchHandler struct {
	Store  *visualizer.Store
	Render *render.Render
	Logger *logrus.Logger
}

func (*BranchHandler) ServeHTTP

func (h *BranchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type HomeHandler

type HomeHandler struct {
	Store  *visualizer.Store
	Render *render.Render
	Logger *logrus.Logger
}

func (*HomeHandler) ServeHTTP

func (h *HomeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LiveLogsHandler

type LiveLogsHandler struct {
	JXClient           jxclient.Interface
	TektonClient       tknclient.Interface
	DefaultJXNamespace string
	KubeClient         kubernetes.Interface
	Namespace          string
	Broker             *sse.Broker
	Logger             *logrus.Logger
}

func (*LiveLogsHandler) ServeHTTP

func (h *LiveLogsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LogsHandler

type LogsHandler struct {
	PAInterfaceFactory   func(namespace string) jxclientv1.PipelineActivityInterface
	DefaultJXNamespace   string
	BuildLogsURLTemplate *template.Template
	Logger               *logrus.Logger
}

func (*LogsHandler) ServeHTTP

func (h *LogsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OwnerHandler

type OwnerHandler struct {
	Store  *visualizer.Store
	Render *render.Render
	Logger *logrus.Logger
}

func (*OwnerHandler) ServeHTTP

func (h *OwnerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PipelineHandler

type PipelineHandler struct {
	PAInterfaceFactory         func(namespace string) jxclientv1.PipelineActivityInterface
	DefaultJXNamespace         string
	BuildLogsURLTemplate       *template.Template
	StoredPipelinesURLTemplate *template.Template
	RenderYAML                 bool
	Render                     *render.Render
	Logger                     *logrus.Logger
}

func (*PipelineHandler) ServeHTTP

func (h *PipelineHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PipelineRunHandler added in v0.0.25

type PipelineRunHandler struct {
	PAInterfaceFactory            func(namespace string) jxclientv1.PipelineActivityInterface
	TektonClient                  tknclient.Interface
	StoredPipelineRunsURLTemplate *template.Template
	Namespace                     string
	Store                         *visualizer.Store
	Render                        *render.Render
	Logger                        *logrus.Logger
}

func (*PipelineRunHandler) ServeHTTP added in v0.0.25

func (h *PipelineRunHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RepositoryHandler

type RepositoryHandler struct {
	Store  *visualizer.Store
	Render *render.Render
	Logger *logrus.Logger
}

func (*RepositoryHandler) ServeHTTP

func (h *RepositoryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Router

type Router struct {
	Store                           *visualizer.Store
	RunningPipelines                *visualizer.RunningPipelines
	KConfig                         *rest.Config
	PAInterfaceFactory              func(namespace string) jenkinsv1.PipelineActivityInterface
	Namespace                       string
	DefaultJXNamespace              string
	ArchivedLogsURLTemplate         string
	ArchivedPipelinesURLTemplate    string
	ArchivedPipelineRunsURLTemplate string
	PipelineTraceURLTemplate        string
	Logger                          *logrus.Logger
	// contains filtered or unexported fields
}

func (Router) Handler

func (r Router) Handler() (http.Handler, error)

type RunningEventsHandler added in v1.1.0

type RunningEventsHandler struct {
	RunningPipelines *visualizer.RunningPipelines
	Broker           *sse.Broker
	Logger           *logrus.Logger
}

func (*RunningEventsHandler) ServeHTTP added in v1.1.0

func (h *RunningEventsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RunningHandler added in v1.1.0

type RunningHandler struct {
	RunningPipelines *visualizer.RunningPipelines
	Render           *render.Render
	Logger           *logrus.Logger
}

func (*RunningHandler) ServeHTTP added in v1.1.0

func (h *RunningHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ShieldsIOBadge added in v1.4.0

type ShieldsIOBadge struct {
	SchemaVersion int    `json:"schemaVersion"`
	Label         string `json:"label"`
	Message       string `json:"message"`
	Color         string `json:"color"`
}

ShieldsIOBadge is documented at https://shields.io/endpoint

type ShieldsIOHandler added in v1.4.0

type ShieldsIOHandler struct {
	Store  *visualizer.Store
	Render *render.Render
	Logger *logrus.Logger
}

func (*ShieldsIOHandler) ServeHTTP added in v1.4.0

func (h *ShieldsIOHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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