issue

package
v0.0.0-...-113e83d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	CreateIssueEventName                     event.EventName = "CreateIssue"
	UpdateIssueEventName                     event.EventName = "UpdateIssue"
	DeleteIssueEventName                     event.EventName = "DeleteIssue"
	AddComponentVersionToIssueEventName      event.EventName = "AddComponentVersionToIssue"
	RemoveComponentVersionFromIssueEventName event.EventName = "RemoveComponentVersionFromIssue"
	ListIssuesEventName                      event.EventName = "ListIssues"
	GetIssueEventName                        event.EventName = "GetIssue"
	ListIssueNamesEventName                  event.EventName = "ListIssueNames"
)

Variables

This section is empty.

Functions

func OnComponentVersionAttachmentToIssue

func OnComponentVersionAttachmentToIssue(db database.Database, e event.Event)

OnComponentVersionAttachmentToIssue is an event handler whenever a ComponentVersion is attached to an Issue.

Types

type AddComponentVersionToIssueEvent

type AddComponentVersionToIssueEvent struct {
	IssueID            int64
	ComponentVersionID int64
}

func (*AddComponentVersionToIssueEvent) Name

type CreateIssueEvent

type CreateIssueEvent struct {
	Issue *entity.Issue
}

func (*CreateIssueEvent) Name

func (e *CreateIssueEvent) Name() event.EventName

type DeleteIssueEvent

type DeleteIssueEvent struct {
	IssueID int64
}

func (*DeleteIssueEvent) Name

func (e *DeleteIssueEvent) Name() event.EventName

type GetIssueEvent

type GetIssueEvent struct {
	IssueID int64
	Issue   *entity.Issue
}

func (*GetIssueEvent) Name

func (e *GetIssueEvent) Name() event.EventName

type IssueHandler

type IssueHandler interface {
	ListIssues(*entity.IssueFilter, *entity.IssueListOptions) (*entity.IssueList, error)
	CreateIssue(*entity.Issue) (*entity.Issue, error)
	UpdateIssue(*entity.Issue) (*entity.Issue, error)
	DeleteIssue(int64) error
	AddComponentVersionToIssue(int64, int64) (*entity.Issue, error)
	RemoveComponentVersionFromIssue(int64, int64) (*entity.Issue, error)
	ListIssueNames(*entity.IssueFilter, *entity.ListOptions) ([]string, error)
}

func NewIssueHandler

func NewIssueHandler(db database.Database, er event.EventRegistry) IssueHandler

type IssueHandlerError

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

func NewIssueHandlerError

func NewIssueHandlerError(msg string) *IssueHandlerError

func (*IssueHandlerError) Error

func (e *IssueHandlerError) Error() string

type ListIssueNamesEvent

type ListIssueNamesEvent struct {
	Filter  *entity.IssueFilter
	Options *entity.ListOptions
	Names   []string
}

func (*ListIssueNamesEvent) Name

type ListIssuesEvent

type ListIssuesEvent struct {
	Filter  *entity.IssueFilter
	Options *entity.IssueListOptions
	Issues  *entity.IssueList
}

func (*ListIssuesEvent) Name

func (e *ListIssuesEvent) Name() event.EventName

type RemoveComponentVersionFromIssueEvent

type RemoveComponentVersionFromIssueEvent struct {
	IssueID            int64
	ComponentVersionID int64
}

func (*RemoveComponentVersionFromIssueEvent) Name

type UpdateIssueEvent

type UpdateIssueEvent struct {
	Issue *entity.Issue
}

func (*UpdateIssueEvent) Name

func (e *UpdateIssueEvent) Name() event.EventName

Jump to

Keyboard shortcuts

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