Documentation
¶
Index ¶
- func Ambiguousf(format string, args ...any) error
- func Authf(format string, args ...any) error
- func NotFoundf(format string, args ...any) error
- func Runtimef(format string, args ...any) error
- func Validationf(format string, args ...any) error
- type EditRequest
- type Error
- type ErrorKind
- type FieldAssignment
- type FieldInput
- type FieldResolver
- type GroupStore
- type IssuePatch
- type IssueStore
- type ProjectFieldStore
- type ProjectStore
- type RawAPI
- type RawResponse
- type Service
- func (s *Service) AddTag(ctx context.Context, ref domain.IssueRef, name string) error
- func (s *Service) ClearField(ctx context.Context, ref domain.IssueRef, field domain.FieldRef) (domain.Issue, error)
- func (s *Service) EditIssue(ctx context.Context, ref domain.IssueRef, req EditRequest) (domain.Issue, error)
- func (s *Service) GetField(ctx context.Context, ref domain.IssueRef, field domain.FieldRef) (domain.IssueField, error)
- func (s *Service) GetIssue(ctx context.Context, ref domain.IssueRef) (domain.Issue, error)
- func (s *Service) ListFields(ctx context.Context, ref domain.IssueRef) ([]domain.IssueField, error)
- func (s *Service) ListTags(ctx context.Context, ref domain.IssueRef) ([]domain.Tag, error)
- func (s *Service) MoveIssue(ctx context.Context, ref domain.IssueRef, projectRef domain.ProjectRef) (domain.Issue, error)
- func (s *Service) RemoveTag(ctx context.Context, ref domain.IssueRef, name string) error
- func (s *Service) SetField(ctx context.Context, ref domain.IssueRef, field domain.FieldRef, ...) (domain.Issue, error)
- type TagStore
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ambiguousf ¶
func Validationf ¶
Types ¶
type EditRequest ¶
type EditRequest struct {
Summary *string
Description *string
Fields []FieldInput
AddTags []string
RemoveTags []string
}
type FieldAssignment ¶
type FieldAssignment struct {
Field domain.FieldDefinition
Value domain.FieldValue
}
type FieldInput ¶
type FieldResolver ¶
type FieldResolver struct {
// contains filtered or unexported fields
}
func NewFieldResolver ¶
func NewFieldResolver(fields ProjectFieldStore, users UserStore, groups GroupStore) *FieldResolver
func (*FieldResolver) Definitions ¶
func (r *FieldResolver) Definitions(ctx context.Context, projectID string) ([]domain.FieldDefinition, error)
type GroupStore ¶
type IssuePatch ¶
type IssuePatch struct {
Summary *string
Description *string
Fields []FieldAssignment
Tags *[]domain.Tag
}
type IssueStore ¶
type IssueStore interface {
GetIssue(context.Context, domain.IssueRef) (domain.Issue, error)
UpdateIssue(context.Context, domain.IssueRef, IssuePatch) (domain.Issue, error)
MoveIssue(context.Context, domain.IssueRef, string) (domain.Issue, error)
AddIssueTag(context.Context, domain.IssueRef, domain.Tag) error
RemoveIssueTag(context.Context, domain.IssueRef, domain.Tag) error
}
type ProjectFieldStore ¶
type ProjectStore ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(issues IssueStore, fields ProjectFieldStore, projects ProjectStore, tags TagStore, users UserStore, groups GroupStore) *Service
func (*Service) ClearField ¶
func (*Service) ListFields ¶
Click to show internal directories.
Click to hide internal directories.