Documentation ¶
Overview ¶
SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func OnComponentVersionAttachmentToIssue(db database.Database, e event.Event)
- type AddComponentVersionToIssueEvent
- type CreateIssueEvent
- type DeleteIssueEvent
- type GetIssueEvent
- type IssueHandler
- type IssueHandlerError
- type ListIssueNamesEvent
- type ListIssuesEvent
- type RemoveComponentVersionFromIssueEvent
- type UpdateIssueEvent
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 ¶
Types ¶
type AddComponentVersionToIssueEvent ¶
func (*AddComponentVersionToIssueEvent) Name ¶
func (e *AddComponentVersionToIssueEvent) Name() event.EventName
type CreateIssueEvent ¶
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 ¶
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 ¶
func (e *ListIssueNamesEvent) Name() event.EventName
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 ¶
func (*RemoveComponentVersionFromIssueEvent) Name ¶
func (e *RemoveComponentVersionFromIssueEvent) Name() event.EventName
type UpdateIssueEvent ¶
func (*UpdateIssueEvent) Name ¶
func (e *UpdateIssueEvent) Name() event.EventName
Click to show internal directories.
Click to hide internal directories.