Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + const EndpointWorkItemLinkCategories + const EndpointWorkItemLinkTypes + const EndpointWorkItemLinks + const EndpointWorkItemTypes + const EndpointWorkItems + const TopologyDependency + const TopologyDirectedNetwork + const TopologyNetwork + const TopologyTree + var SystemWorkItemLinkCategorySystemID = uuid.FromStringOrNil("B1482C65-A64D-4058-BEB0-62F7198CB0F4") + var SystemWorkItemLinkCategoryUserID = uuid.FromStringOrNil("2F24724F-797C-4073-8B16-4BB8CE9E84A6") + var SystemWorkItemLinkPlannerItemRelatedID = uuid.FromStringOrNil("9B631885-83B1-4ABB-A340-3A9EDE8493FA") + var SystemWorkItemLinkTypeBugBlockerID = uuid.FromStringOrNil("2CEA3C79-3B79-423B-90F4-1E59174C8F43") + var SystemWorkItemLinkTypeParentChildID = uuid.FromStringOrNil("25C326A7-6D03-4F5A-B23B-86A9EE4171E9") + func CheckValidTopology(t string) error + type GormWorkItemLinkCategoryRepository struct + func NewWorkItemLinkCategoryRepository(db *gorm.DB) *GormWorkItemLinkCategoryRepository + func (r *GormWorkItemLinkCategoryRepository) Create(ctx context.Context, linkCat *WorkItemLinkCategory) (*WorkItemLinkCategory, error) + func (r *GormWorkItemLinkCategoryRepository) Delete(ctx context.Context, ID uuid.UUID) error + func (r *GormWorkItemLinkCategoryRepository) List(ctx context.Context) ([]WorkItemLinkCategory, error) + func (r *GormWorkItemLinkCategoryRepository) Load(ctx context.Context, ID uuid.UUID) (*WorkItemLinkCategory, error) + func (r *GormWorkItemLinkCategoryRepository) Save(ctx context.Context, linkCat WorkItemLinkCategory) (*WorkItemLinkCategory, error) + type GormWorkItemLinkRepository struct + func NewWorkItemLinkRepository(db *gorm.DB) *GormWorkItemLinkRepository + func (r *GormWorkItemLinkRepository) CheckParentExists(ctx context.Context, targetID uint64, linkType *WorkItemLinkType) (bool, error) + func (r *GormWorkItemLinkRepository) Create(ctx context.Context, sourceID, targetID uint64, linkTypeID uuid.UUID, ...) (*WorkItemLink, error) + func (r *GormWorkItemLinkRepository) Delete(ctx context.Context, linkID uuid.UUID, suppressorID uuid.UUID) error + func (r *GormWorkItemLinkRepository) DeleteRelatedLinks(ctx context.Context, wiIDStr string, suppressorID uuid.UUID) error + func (r *GormWorkItemLinkRepository) List(ctx context.Context) ([]WorkItemLink, error) + func (r *GormWorkItemLinkRepository) ListByWorkItemID(ctx context.Context, wiIDStr string) ([]WorkItemLink, error) + func (r *GormWorkItemLinkRepository) ListWorkItemChildren(ctx context.Context, parent string) ([]workitem.WorkItem, error) + func (r *GormWorkItemLinkRepository) Load(ctx context.Context, ID uuid.UUID) (*WorkItemLink, error) + func (r *GormWorkItemLinkRepository) Save(ctx context.Context, linkToSave WorkItemLink, modifierID uuid.UUID) (*WorkItemLink, error) + func (r *GormWorkItemLinkRepository) ValidateCorrectSourceAndTargetType(ctx context.Context, sourceID, targetID uint64, linkTypeID uuid.UUID) error + func (r *GormWorkItemLinkRepository) ValidateTopology(ctx context.Context, targetID uint64, linkType *WorkItemLinkType) error + func (r *GormWorkItemLinkRepository) WorkItemHasChildren(ctx context.Context, parent string) (bool, error) + type GormWorkItemLinkRevisionRepository struct + func NewRevisionRepository(db *gorm.DB) *GormWorkItemLinkRevisionRepository + func (r *GormWorkItemLinkRevisionRepository) Create(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + func (r *GormWorkItemLinkRevisionRepository) List(ctx context.Context, linkID uuid.UUID) ([]Revision, error) + type GormWorkItemLinkTypeRepository struct + func NewWorkItemLinkTypeRepository(db *gorm.DB) *GormWorkItemLinkTypeRepository + func (r *GormWorkItemLinkTypeRepository) Create(ctx context.Context, linkType *WorkItemLinkType) (*WorkItemLinkType, error) + func (r *GormWorkItemLinkTypeRepository) Delete(ctx context.Context, spaceID uuid.UUID, ID uuid.UUID) error + func (r *GormWorkItemLinkTypeRepository) List(ctx context.Context, spaceID uuid.UUID) ([]WorkItemLinkType, error) + func (r *GormWorkItemLinkTypeRepository) ListSourceLinkTypes(ctx context.Context, witID uuid.UUID) ([]WorkItemLinkType, error) + func (r *GormWorkItemLinkTypeRepository) ListTargetLinkTypes(ctx context.Context, witID uuid.UUID) ([]WorkItemLinkType, error) + func (r *GormWorkItemLinkTypeRepository) Load(ctx context.Context, ID uuid.UUID) (*WorkItemLinkType, error) + func (r *GormWorkItemLinkTypeRepository) Save(ctx context.Context, modelToSave WorkItemLinkType) (*WorkItemLinkType, error) + type Revision struct + ID uuid.UUID + ModifierIdentity uuid.UUID + Time time.Time + Type RevisionType + WorkItemLinkID uuid.UUID + WorkItemLinkSourceID uint64 + WorkItemLinkTargetID uint64 + WorkItemLinkTypeID uuid.UUID + WorkItemLinkVersion int + func (w Revision) TableName() string + type RevisionRepository interface + Create func(ctx context.Context, modifierID uuid.UUID, revisionType RevisionType, ...) error + List func(ctx context.Context, workitemID uuid.UUID) ([]Revision, error) + type RevisionType int + const RevisionTypeCreate + const RevisionTypeDelete + const RevisionTypeUpdate + type WorkItemLink struct + ID uuid.UUID + LinkTypeID uuid.UUID + SourceID uint64 + TargetID uint64 + Version int + func (l *WorkItemLink) CheckValidForCreation() error + func (l WorkItemLink) Equal(u convert.Equaler) bool + func (l WorkItemLink) GetETagData() []interface{} + func (l WorkItemLink) GetLastModified() time.Time + func (l WorkItemLink) TableName() string + type WorkItemLinkCategory struct + Description *string + ID uuid.UUID + Name string + Version int + func (c WorkItemLinkCategory) Equal(u convert.Equaler) bool + func (c WorkItemLinkCategory) TableName() string + type WorkItemLinkCategoryRepository interface + Create func(ctx context.Context, linkCat *WorkItemLinkCategory) (*WorkItemLinkCategory, error) + Delete func(ctx context.Context, ID uuid.UUID) error + List func(ctx context.Context) ([]WorkItemLinkCategory, error) + Load func(ctx context.Context, ID uuid.UUID) (*WorkItemLinkCategory, error) + Save func(ctx context.Context, linkCat WorkItemLinkCategory) (*WorkItemLinkCategory, error) + type WorkItemLinkRepository interface + Create func(ctx context.Context, sourceID, targetID uint64, linkTypeID uuid.UUID, ...) (*WorkItemLink, error) + Delete func(ctx context.Context, ID uuid.UUID, suppressorID uuid.UUID) error + DeleteRelatedLinks func(ctx context.Context, wiIDStr string, suppressorID uuid.UUID) error + List func(ctx context.Context) ([]WorkItemLink, error) + ListByWorkItemID func(ctx context.Context, wiIDStr string) ([]WorkItemLink, error) + ListWorkItemChildren func(ctx context.Context, parent string) ([]workitem.WorkItem, error) + Load func(ctx context.Context, ID uuid.UUID) (*WorkItemLink, error) + Save func(ctx context.Context, linkCat WorkItemLink, modifierID uuid.UUID) (*WorkItemLink, error) + WorkItemHasChildren func(ctx context.Context, parent string) (bool, error) + type WorkItemLinkType struct + Description *string + ForwardName string + ID uuid.UUID + LinkCategoryID uuid.UUID + Name string + ReverseName string + SourceTypeID uuid.UUID + SpaceID uuid.UUID + TargetTypeID uuid.UUID + Topology string + Version int + func (t *WorkItemLinkType) CheckValidForCreation() error + func (t WorkItemLinkType) Equal(u convert.Equaler) bool + func (t WorkItemLinkType) GetETagData() []interface{} + func (t WorkItemLinkType) GetLastModified() time.Time + func (t WorkItemLinkType) TableName() string + type WorkItemLinkTypeRepository interface + Create func(ctx context.Context, linkType *WorkItemLinkType) (*WorkItemLinkType, error) + Delete func(ctx context.Context, spaceID uuid.UUID, ID uuid.UUID) error + List func(ctx context.Context, spaceID uuid.UUID) ([]WorkItemLinkType, error) + ListSourceLinkTypes func(ctx context.Context, witID uuid.UUID) ([]WorkItemLinkType, error) + ListTargetLinkTypes func(ctx context.Context, witID uuid.UUID) ([]WorkItemLinkType, error) + Load func(ctx context.Context, ID uuid.UUID) (*WorkItemLinkType, error) + Save func(ctx context.Context, linkCat WorkItemLinkType) (*WorkItemLinkType, error)