models

package
v0.12.1-beta4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiMyselfResponse

type ApiMyselfResponse struct {
	AccountId   string
	DisplayName string
}

func (ApiMyselfResponse) TableName

func (ApiMyselfResponse) TableName() string

type BoardResponse

type BoardResponse struct {
	Id    int
	Title string
	Value string
}

type DeploymentType

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

type EpicResponse

type EpicResponse struct {
	Id    int
	Title string
	Value string
}

type IssueComment

type IssueComment struct {
	ConnectionId       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 JiraAccount added in v0.12.0

type JiraAccount struct {
	common.NoPKModel

	// collected fields
	ConnectionId 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 (JiraAccount) TableName added in v0.12.0

func (JiraAccount) TableName() string

type JiraBoard

type JiraBoard struct {
	common.NoPKModel
	ConnectionId 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

func (JiraBoard) TableName() string

type JiraBoardIssue

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

func (JiraBoardIssue) TableName

func (JiraBoardIssue) TableName() string

type JiraBoardSprint

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

func (JiraBoardSprint) TableName

func (JiraBoardSprint) TableName() string

type JiraConnection

type JiraConnection struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.BasicAuth      `mapstructure:",squash"`
}

func (JiraConnection) TableName

func (JiraConnection) TableName() string

type JiraErrorInfo added in v0.12.0

type JiraErrorInfo struct {
	ErrorMessages []string `json:"errorMessages"`
}

type JiraIssue

type JiraIssue struct {
	// collected fields
	ConnectionId             uint64 `gorm:"primaryKey"`
	IssueId                  uint64 `gorm:"primarykey"`
	ProjectId                uint64
	Self                     string `gorm:"type:varchar(255)"`
	IconURL                  string `gorm:"type:varchar(255);column:icon_url"`
	IssueKey                 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            int64
	StdType                  string `gorm:"type:varchar(255)"`
	StdStatus                string `gorm:"type:varchar(255)"`
	AllFields                datatypes.JSONMap
	common.NoPKModel
}

func (JiraIssue) TableName

func (JiraIssue) TableName() string

type JiraIssueChangelogItems added in v0.12.0

type JiraIssueChangelogItems struct {
	common.NoPKModel

	// collected fields
	ConnectionId uint64 `gorm:"primaryKey"`
	ChangelogId  uint64 `gorm:"primaryKey"`
	Field        string `gorm:"primaryKey"`
	FieldType    string
	FieldId      string
	FromValue    string
	FromString   string
	ToValue      string
	ToString     string
}

func (JiraIssueChangelogItems) TableName added in v0.12.0

func (JiraIssueChangelogItems) TableName() string

type JiraIssueChangelogs added in v0.12.0

type JiraIssueChangelogs struct {
	common.NoPKModel

	// collected fields
	ConnectionId      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"`
	IssueUpdated      *time.Time `comment:"corresponding issue.updated time, changelog might need update IFF changelog.issue_updated < issue.updated"`
}

func (JiraIssueChangelogs) TableName added in v0.12.0

func (JiraIssueChangelogs) TableName() string

type JiraIssueCommit

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

func (JiraIssueCommit) TableName

func (JiraIssueCommit) TableName() string

type JiraIssueLabel

type JiraIssueLabel struct {
	ConnectionId uint64 `gorm:"primaryKey;autoIncrement:false"`
	IssueId      uint64 `gorm:"primaryKey;autoIncrement:false"`
	LabelName    string `gorm:"primaryKey;type:varchar(255)"`
	common.NoPKModel
}

func (JiraIssueLabel) TableName

func (JiraIssueLabel) TableName() string

type JiraIssueType added in v0.12.0

type JiraIssueType struct {
	ConnectionId     uint64 `gorm:"primaryKey;autoIncrement:false"`
	Self             string `json:"self" gorm:"type:varchar(255)"`
	Id               string `json:"id" gorm:"primaryKey;type:varchar(255)"`
	Description      string `json:"description"`
	IconURL          string `json:"iconUrl" gorm:"type:varchar(255)"`
	Name             string `json:"name" gorm:"type:varchar(255)"`
	UntranslatedName string `json:"untranslatedName" gorm:"type:varchar(255)"`
	Subtask          bool   `json:"subtask"`
	AvatarID         uint64 `json:"avatarId"`
	HierarchyLevel   int    `json:"hierarchyLevel"`
	common.NoPKModel
}

func (JiraIssueType) TableName added in v0.12.0

func (JiraIssueType) TableName() string

type JiraProject

type JiraProject struct {
	common.NoPKModel

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

func (JiraProject) TableName

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

	// collected fields
	ConnectionId 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)"`
	IssueUpdated *time.Time
}

func (JiraRemotelink) TableName

func (JiraRemotelink) TableName() string

type JiraServerInfo

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

func (JiraServerInfo) TableName() string

type JiraSprint

type JiraSprint struct {
	ConnectionId  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

func (JiraSprint) TableName() string

type JiraSprintIssue

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

func (JiraSprintIssue) TableName

func (JiraSprintIssue) TableName() string

type JiraStatus

type JiraStatus struct {
	common.NoPKModel
	ConnectionId   uint64 `gorm:"primaryKey"`
	ID             string `gorm:"primaryKey"`
	Name           string
	Self           string
	StatusCategory string
}

func (JiraStatus) TableName

func (JiraStatus) TableName() string

type JiraWorklog

type JiraWorklog struct {
	common.NoPKModel
	ConnectionId     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
	IssueUpdated     *time.Time
}

func (JiraWorklog) TableName

func (JiraWorklog) TableName() string

type Locale

type Locale string
const LocaleEnUS Locale = "en_US"

type TestConnectionRequest

type TestConnectionRequest struct {
	Endpoint         string `json:"endpoint"`
	Proxy            string `json:"proxy"`
	helper.BasicAuth `mapstructure:",squash"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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