stackhandlers

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

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 EmptyStackHandler

type EmptyStackHandler struct {
}

func NewEmptyStackHandler

func NewEmptyStackHandler() *EmptyStackHandler

func (*EmptyStackHandler) GetFilterOptions

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

func (*EmptyStackHandler) GetIndexer

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

func (*EmptyStackHandler) GetStacks

func (h *EmptyStackHandler) 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