Documentation
¶
Index ¶
- func NewMiddleware(pr, tr cache.Store, opts ...Option) echo.MiddlewareFunc
- type Context
- func (c *Context) BindTemplateData(td *TemplateData) error
- func (c *Context) GetPipelineRun(namespace, name string) *pipelinev1beta1.PipelineRun
- func (c *Context) GetPipelineTaskRuns(namespace, name string) []*pipelinev1beta1.TaskRun
- func (c *Context) GetStoreFor(resource string) cache.Store
- func (c *Context) GetTaskRun(namespace, name string) *pipelinev1beta1.TaskRun
- type Option
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
Types ¶
type Context ¶
func (*Context) BindTemplateData ¶
func (c *Context) BindTemplateData(td *TemplateData) error
func (*Context) GetPipelineRun ¶
func (c *Context) GetPipelineRun(namespace, name string) *pipelinev1beta1.PipelineRun
func (*Context) GetPipelineTaskRuns ¶
func (c *Context) GetPipelineTaskRuns(namespace, name string) []*pipelinev1beta1.TaskRun
func (*Context) GetTaskRun ¶
func (c *Context) GetTaskRun(namespace, name string) *pipelinev1beta1.TaskRun
type Option ¶ added in v0.0.15
type Option func(*mwOpts)
func WithLogger ¶ added in v0.0.15
func WithNamespaces ¶ added in v0.0.15
type TemplateData ¶
type TemplateData struct { // Namespaces lists all namespaces found. Namespaces []string // Namespace specifies which namespace we are working in currently. Namespace string // Resource is the root object for this page, taskruns/pipelineruns Resource string // PipelineRun is resolved from the :pipelineRun url param PipelineRun *pipelinev1beta1.PipelineRun // TaskRun is resolved from the :taskRun url param TaskRun *pipelinev1beta1.TaskRun // TaskRuns is the list of taskRuns that should be rendered // in the middle "step view". It is either a list containing // a single taskRun in taskRun view, or the list of taskRuns // pertaining to a pipelineRUn TaskRuns []*pipelinev1beta1.TaskRun // Step is the name of the step resolved from the :step url param Step string URLFor func(name string, args ...interface{}) string }
Click to show internal directories.
Click to hide internal directories.