Documentation ¶
Index ¶
- Variables
- func Activities(id uint64) (activites []*models.Activity, err error)
- func All(filterOptions *map[FilterOption]string, query requests.Query, ...) (*models.WorkPackageCollection, error)
- func AssigneeFilter(name string) requests.Filter
- func AvailableTypes(id uint64) ([]*models.Type, error)
- func Create(projectId uint64, options map[CreateOption]string) (*models.WorkPackage, error)
- func Lookup(id uint64) (*models.WorkPackage, error)
- func StatusFilter(status string) requests.Filter
- func TypeFilter(workPackageType string) requests.Filter
- func Update(id uint64, options map[UpdateOption]string) (*models.WorkPackage, error)
- type CreateOption
- type FilterOption
- type UpdateOption
Constants ¶
This section is empty.
Variables ¶
View Source
var InputValidationExpression = map[FilterOption]string{ Status: "^(open)$|^(closed)$|^(!?[0-9,]+)$", Type: "^(!?[0-9,]+)$", }
Functions ¶
func All ¶
func All(filterOptions *map[FilterOption]string, query requests.Query, showOnlyTotal bool) (*models.WorkPackageCollection, error)
func AssigneeFilter ¶
func Create ¶
func Create(projectId uint64, options map[CreateOption]string) (*models.WorkPackage, error)
func StatusFilter ¶
func TypeFilter ¶
func Update ¶
func Update(id uint64, options map[UpdateOption]string) (*models.WorkPackage, error)
Types ¶
type FilterOption ¶
type FilterOption int
const ( Assignee FilterOption = iota Project Status Type IncludeSubProjects )
func (FilterOption) String ¶
func (f FilterOption) String() string
type UpdateOption ¶
type UpdateOption int
const ( UpdateCustomAction UpdateOption = iota UpdateAssignee UpdateAttachment UpdateSubject UpdateType )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.