stackhandlers

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Priority   = "Priority"
	Complexity = "Complexity"
	Severity   = "Severity"
	State      = "State"
	Stage      = "Stage"
)

Variables

This section is empty.

Functions

func WithIssueStageList

func WithIssueStageList(issueStageList []apistructs.IssueStage) option

func WithIssueStateList

func WithIssueStateList(issueStateList []dao.IssueState) option

func WithStacksReversed

func WithStacksReversed(reverse bool) option

Types

type ComplexityStackHandler

type ComplexityStackHandler struct {
	// contains filtered or unexported fields
}

func NewComplexityStackHandler

func NewComplexityStackHandler(reverse bool) *ComplexityStackHandler

func (*ComplexityStackHandler) GetFilterOptions

func (h *ComplexityStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*ComplexityStackHandler) GetIndexer

func (h *ComplexityStackHandler) GetIndexer() func(issue interface{}) string

func (*ComplexityStackHandler) GetStacks

func (h *ComplexityStackHandler) GetStacks() []Stack

type DefaultStackHandler added in v1.4.0

type DefaultStackHandler struct {
	SingleStackName string
}

func NewDefaultStackHandler added in v1.4.0

func NewDefaultStackHandler(single string) *DefaultStackHandler

func (*DefaultStackHandler) GetFilterOptions added in v1.4.0

func (h *DefaultStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*DefaultStackHandler) GetIndexer added in v1.4.0

func (h *DefaultStackHandler) GetIndexer() func(issue interface{}) string

func (*DefaultStackHandler) GetStacks added in v1.4.0

func (h *DefaultStackHandler) GetStacks() []Stack

type PriorityStackHandler

type PriorityStackHandler struct {
	// contains filtered or unexported fields
}

func NewPriorityStackHandler

func NewPriorityStackHandler(reverse bool) *PriorityStackHandler

func (*PriorityStackHandler) GetFilterOptions

func (h *PriorityStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*PriorityStackHandler) GetIndexer

func (h *PriorityStackHandler) GetIndexer() func(issue interface{}) string

func (*PriorityStackHandler) GetStacks

func (h *PriorityStackHandler) GetStacks() []Stack

type SeverityStackHandler

type SeverityStackHandler struct {
	// contains filtered or unexported fields
}

func NewSeverityStackHandler

func NewSeverityStackHandler(reverse bool) *SeverityStackHandler

func (*SeverityStackHandler) GetFilterOptions

func (h *SeverityStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*SeverityStackHandler) GetIndexer

func (h *SeverityStackHandler) GetIndexer() func(issue interface{}) string

func (*SeverityStackHandler) GetStacks

func (h *SeverityStackHandler) GetStacks() []Stack

type Stack

type Stack struct {
	Name  string
	Value string
	Color string
}

type StackHandler

type StackHandler interface {
	GetStacks() []Stack
	GetIndexer() func(issue interface{}) string

	GetFilterOptions() []filter.PropConditionOption
}

type StackRetriever

type StackRetriever struct {
	// contains filtered or unexported fields
}

func NewStackRetriever

func NewStackRetriever(options ...option) *StackRetriever

func (*StackRetriever) GetRetriever

func (r *StackRetriever) GetRetriever(t string) StackHandler

type StageStackHandler

type StageStackHandler struct {
	// contains filtered or unexported fields
}

func NewStageStackHandler

func NewStageStackHandler(reverse bool, issueStageList []apistructs.IssueStage) *StageStackHandler

func (*StageStackHandler) GetFilterOptions

func (h *StageStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*StageStackHandler) GetIndexer

func (h *StageStackHandler) GetIndexer() func(issue interface{}) string

func (*StageStackHandler) GetStacks

func (h *StageStackHandler) GetStacks() []Stack

type StateStackHandler

type StateStackHandler struct {
	// contains filtered or unexported fields
}

func NewStateStackHandler

func NewStateStackHandler(reverse bool, issueStateList []dao.IssueState) *StateStackHandler

func (*StateStackHandler) GetFilterOptions

func (h *StateStackHandler) GetFilterOptions() []filter.PropConditionOption

func (*StateStackHandler) GetIndexer

func (h *StateStackHandler) GetIndexer() func(issue interface{}) string

func (*StateStackHandler) GetStacks

func (h *StateStackHandler) GetStacks() []Stack

Jump to

Keyboard shortcuts

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