models

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiMyselfResponse added in v0.7.0

type ApiMyselfResponse struct {
	AccountId   string
	DisplayName string
}

func (ApiMyselfResponse) TableName added in v0.10.0

func (ApiMyselfResponse) TableName() string

type DeploymentType added in v0.7.0

type DeploymentType string
const DeploymentCloud DeploymentType = "Cloud"
const DeploymentServer DeploymentType = "Server"

type IssueComment added in v0.10.0

type IssueComment struct {
	SourceId           uint64 `gorm:"primaryKey"`
	IssueId            uint64 `gorm:"primarykey"`
	ComentId           string `gorm:"primarykey"`
	Self               string `gorm:"type:varchar(255)"`
	Body               string
	CreatorAccountId   string     `gorm:"type:varchar(255)"`
	CreatorDisplayName string     `gorm:"type:varchar(255)"`
	Created            *time.Time `json:"created"`
	Updated            *time.Time `json:"updated"`
}

type JiraBoard

type JiraBoard struct {
	common.NoPKModel
	SourceId  uint64 `gorm:"primaryKey"`
	BoardId   uint64 `gorm:"primaryKey"`
	ProjectId uint
	Name      string `gorm:"type:varchar(255)"`
	Self      string `gorm:"type:varchar(255)"`
	Type      string `gorm:"type:varchar(100)"`
}

func (JiraBoard) TableName added in v0.10.0

func (JiraBoard) TableName() string

type JiraBoardIssue

type JiraBoardIssue struct {
	SourceId uint64 `gorm:"primaryKey"`
	BoardId  uint64 `gorm:"primaryKey"`
	IssueId  uint64 `gorm:"primaryKey"`
	common.NoPKModel
}

func (JiraBoardIssue) TableName added in v0.10.0

func (JiraBoardIssue) TableName() string

type JiraBoardSprint added in v0.4.0

type JiraBoardSprint struct {
	common.NoPKModel
	SourceId uint64 `gorm:"primaryKey"`
	BoardId  uint64 `gorm:"primaryKey"`
	SprintId uint64 `gorm:"primaryKey"`
}

func (JiraBoardSprint) TableName added in v0.10.0

func (JiraBoardSprint) TableName() string

type JiraChangelog

type JiraChangelog struct {
	common.NoPKModel

	// collected fields
	SourceId          uint64 `gorm:"primaryKey"`
	ChangelogId       uint64 `gorm:"primarykey"`
	IssueId           uint64 `gorm:"index"`
	AuthorAccountId   string `gorm:"type:varchar(255)"`
	AuthorDisplayName string `gorm:"type:varchar(255)"`
	AuthorActive      bool
	Created           time.Time `gorm:"index"`
}

func (JiraChangelog) TableName added in v0.10.0

func (JiraChangelog) TableName() string

type JiraChangelogItem

type JiraChangelogItem struct {
	common.NoPKModel

	// collected fields
	SourceId    uint64 `gorm:"primaryKey"`
	ChangelogId uint64 `gorm:"primaryKey"`
	Field       string `gorm:"primaryKey"`
	FieldType   string
	FieldId     string
	From        string
	FromString  string
	To          string
	ToString    string
}

func (JiraChangelogItem) TableName added in v0.10.0

func (JiraChangelogItem) TableName() string

type JiraIssue

type JiraIssue struct {
	// collected fields
	SourceId                 uint64 `gorm:"primaryKey"`
	IssueId                  uint64 `gorm:"primarykey"`
	ProjectId                uint64
	Self                     string `gorm:"type:varchar(255)"`
	Key                      string `gorm:"type:varchar(255)"`
	Summary                  string
	Type                     string `gorm:"type:varchar(255)"`
	EpicKey                  string `gorm:"type:varchar(255)"`
	StatusName               string `gorm:"type:varchar(255)"`
	StatusKey                string `gorm:"type:varchar(255)"`
	StoryPoint               float64
	OriginalEstimateMinutes  int64  // user input?
	AggregateEstimateMinutes int64  // sum up of all subtasks?
	RemainingEstimateMinutes int64  // could it be negative value?
	CreatorAccountId         string `gorm:"type:varchar(255)"`
	CreatorAccountType       string `gorm:"type:varchar(255)"`
	CreatorDisplayName       string `gorm:"type:varchar(255)"`
	AssigneeAccountId        string `gorm:"type:varchar(255);comment:latest assignee"`
	AssigneeAccountType      string `gorm:"type:varchar(255)"`
	AssigneeDisplayName      string `gorm:"type:varchar(255)"`
	PriorityId               uint64
	PriorityName             string `gorm:"type:varchar(255)"`
	ParentId                 uint64
	ParentKey                string `gorm:"type:varchar(255)"`
	SprintId                 uint64 // latest sprint, issue might cross multiple sprints, would be addressed by #514
	SprintName               string `gorm:"type:varchar(255)"`
	ResolutionDate           *time.Time
	Created                  time.Time
	Updated                  time.Time `gorm:"index"`
	SpentMinutes             int64
	LeadTimeMinutes          uint
	StdStoryPoint            uint
	StdType                  string `gorm:"type:varchar(255)"`
	StdStatus                string `gorm:"type:varchar(255)"`
	AllFields                datatypes.JSONMap

	// internal status tracking
	ChangelogUpdated  *time.Time
	RemotelinkUpdated *time.Time
	common.NoPKModel
}

func (JiraIssue) TableName added in v0.10.0

func (JiraIssue) TableName() string

type JiraIssueCommit added in v0.6.0

type JiraIssueCommit struct {
	common.NoPKModel
	SourceId  uint64 `gorm:"primaryKey"`
	IssueId   uint64 `gorm:"primaryKey"`
	CommitSha string `gorm:"primaryKey;type:varchar(40)"`
	CommitUrl string `gorm:"type:varchar(255)"`
}

func (JiraIssueCommit) TableName added in v0.10.0

func (JiraIssueCommit) TableName() string

type JiraIssueStatusMapping added in v0.4.0

type JiraIssueStatusMapping struct {
	SourceID       uint64 `gorm:"primaryKey" json:"jiraSourceId" validate:"required"`
	UserType       string `gorm:"type:varchar(50);primaryKey" json:"userType" validate:"required"`
	UserStatus     string `gorm:"type:varchar(50);primaryKey" json:"userStatus" validate:"required"`
	StandardStatus string `gorm:"type:varchar(50)" json:"standardStatus" validate:"required"`
}

func (JiraIssueStatusMapping) TableName added in v0.10.0

func (JiraIssueStatusMapping) TableName() string

type JiraIssueTypeMapping added in v0.4.0

type JiraIssueTypeMapping struct {
	SourceID     uint64 `gorm:"primaryKey" json:"jiraSourceId" validate:"required"`
	UserType     string `gorm:"type:varchar(50);primaryKey" json:"userType" validate:"required"`
	StandardType string `gorm:"type:varchar(50)" json:"standardType" validate:"required"`
}

func (JiraIssueTypeMapping) TableName added in v0.10.0

func (JiraIssueTypeMapping) TableName() string

type JiraProject added in v0.4.0

type JiraProject struct {
	common.NoPKModel

	// collected fields
	SourceId uint64 `gorm:"primarykey"`
	Id       string `gorm:"primaryKey;type:varchar(255)"`
	Key      string `gorm:"type:varchar(255)"`
	Name     string `gorm:"type:varchar(255)"`
}

func (JiraProject) TableName added in v0.10.0

func (JiraProject) TableName() string
type JiraRemotelink struct {
	common.NoPKModel

	// collected fields
	SourceId     uint64 `gorm:"primaryKey"`
	RemotelinkId uint64 `gorm:"primarykey"`
	IssueId      uint64 `gorm:"index"`
	RawJson      datatypes.JSON
	Self         string `gorm:"type:varchar(255)"`
	Title        string
	Url          string `gorm:"type:varchar(255)"`
}

func (JiraRemotelink) TableName added in v0.10.0

func (JiraRemotelink) TableName() string

type JiraServerInfo added in v0.7.0

type JiraServerInfo struct {
	BaseURL        string         `json:"baseUrl"`
	BuildDate      string         `json:"buildDate"`
	BuildNumber    int            `json:"buildNumber"`
	DeploymentType DeploymentType `json:"deploymentType"`
	ScmInfo        string         `json:"ScmInfo"`
	ServerTime     string         `json:"serverTime"`
	ServerTitle    string         `json:"serverTitle"`
	Version        string         `json:"version"`
	VersionNumbers []int          `json:"versionNumbers"`
}

func (JiraServerInfo) TableName added in v0.10.0

func (JiraServerInfo) TableName() string

type JiraSource added in v0.4.0

type JiraSource struct {
	common.Model
	Name                       string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	Endpoint                   string `json:"endpoint" validate:"required"`
	BasicAuthEncoded           string `json:"basicAuthEncoded" validate:"required"`
	EpicKeyField               string `gorm:"type:varchar(50);" json:"epicKeyField"`
	StoryPointField            string `gorm:"type:varchar(50);" json:"storyPointField"`
	RemotelinkCommitShaPattern string `` /* 179-byte string literal not displayed */
	Proxy                      string `json:"proxy"`
	RateLimit                  int    `comment:"api request rate limt per second"`
}

func (JiraSource) TableName added in v0.10.0

func (JiraSource) TableName() string

type JiraSourceDetail added in v0.4.0

type JiraSourceDetail struct {
	JiraSource
	TypeMappings map[string]map[string]interface{} `json:"typeMappings"`
}

type JiraSprint added in v0.4.0

type JiraSprint struct {
	SourceId      uint64 `gorm:"primaryKey"`
	SprintId      uint64 `gorm:"primaryKey"`
	Self          string `gorm:"type:varchar(255)"`
	State         string `gorm:"type:varchar(255)"`
	Name          string `gorm:"type:varchar(255)"`
	StartDate     *time.Time
	EndDate       *time.Time
	CompleteDate  *time.Time
	OriginBoardID uint64
	common.NoPKModel
}

func (JiraSprint) TableName added in v0.10.0

func (JiraSprint) TableName() string

type JiraSprintIssue added in v0.4.0

type JiraSprintIssue struct {
	common.NoPKModel
	SourceId         uint64 `gorm:"primaryKey"`
	SprintId         uint64 `gorm:"primaryKey"`
	IssueId          uint64 `gorm:"primaryKey"`
	ResolutionDate   *time.Time
	IssueCreatedDate *time.Time
}

func (JiraSprintIssue) TableName added in v0.10.0

func (JiraSprintIssue) TableName() string

type JiraUser added in v0.4.0

type JiraUser struct {
	common.NoPKModel

	// collected fields
	SourceId    uint64 `gorm:"primarykey"`
	AccountId   string `gorm:"primaryKey;type:varchar(100)"`
	AccountType string `gorm:"type:varchar(100)"`
	Name        string `gorm:"type:varchar(255)"`
	Email       string `gorm:"type:varchar(255)"`
	AvatarUrl   string `gorm:"type:varchar(255)"`
	Timezone    string `gorm:"type:varchar(255)"`
}

func (JiraUser) TableName added in v0.10.0

func (JiraUser) TableName() string

type JiraWorklog added in v0.6.0

type JiraWorklog struct {
	common.NoPKModel
	SourceId         uint64 `gorm:"primaryKey"`
	IssueId          uint64 `gorm:"primarykey"`
	WorklogId        string `gorm:"primarykey;type:varchar(255)"`
	AuthorId         string `gorm:"type:varchar(255)"`
	UpdateAuthorId   string `gorm:"type:varchar(255)"`
	TimeSpent        string `gorm:"type:varchar(255)"`
	TimeSpentSeconds int
	Updated          time.Time
	Started          time.Time
}

func (JiraWorklog) TableName added in v0.10.0

func (JiraWorklog) TableName() string

type Locale added in v0.7.0

type Locale string
const LocaleEnUS Locale = "en_US"

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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