archived

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConnection

type BaseConnection struct {
	Name string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	archived.Model
}

type BasicAuth

type BasicAuth struct {
	Username string `mapstructure:"username" validate:"required" json:"username"`
	Password string `mapstructure:"password" validate:"required" json:"password" encrypt:"yes"`
}

type BoardResponse

type BoardResponse struct {
	Id    int
	Title string
	Value string
}

type EpicResponse

type EpicResponse struct {
	Id    int
	Title string
	Value string
}

type JiraAccount

type JiraAccount struct {
	archived.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

func (JiraAccount) TableName() string

type JiraBoard

type JiraBoard struct {
	archived.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"`
	archived.NoPKModel
}

func (JiraBoardIssue) TableName

func (JiraBoardIssue) TableName() string

type JiraBoardSprint

type JiraBoardSprint struct {
	archived.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 {
	RestConnection `mapstructure:",squash"`
	BasicAuth      `mapstructure:",squash"`
}

func (JiraConnection) TableName

func (JiraConnection) TableName() string

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
	archived.NoPKModel
}

func (JiraIssue) TableName

func (JiraIssue) TableName() string

type JiraIssueChangelogItems

type JiraIssueChangelogItems struct {
	archived.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

func (JiraIssueChangelogItems) TableName() string

type JiraIssueChangelogs

type JiraIssueChangelogs struct {
	archived.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

func (JiraIssueChangelogs) TableName() string

type JiraIssueComment

type JiraIssueComment struct {
	archived.NoPKModel
	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"`
	IssueUpdated       *time.Time
}

func (JiraIssueComment) TableName

func (JiraIssueComment) TableName() string

type JiraIssueCommit

type JiraIssueCommit struct {
	archived.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)"`
	archived.NoPKModel
}

func (JiraIssueLabel) TableName

func (JiraIssueLabel) TableName() string

type JiraIssueStatusMapping

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

func (JiraIssueStatusMapping) TableName() string

type JiraIssueType

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"`
	archived.NoPKModel
}

func (JiraIssueType) TableName

func (JiraIssueType) TableName() string

type JiraIssueTypeMapping

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

func (JiraIssueTypeMapping) TableName() string

type JiraProject

type JiraProject struct {
	archived.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 {
	archived.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 JiraSource

type JiraSource struct {
	archived.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

func (JiraSource) 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
	archived.NoPKModel
}

func (JiraSprint) TableName

func (JiraSprint) TableName() string

type JiraSprintIssue

type JiraSprintIssue struct {
	archived.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 {
	archived.NoPKModel
	ConnectionId   uint64 `gorm:"primaryKey"`
	ID             string `gorm:"primaryKey"`
	Name           string
	Self           string
	StatusCategory string
}

func (JiraStatus) TableName

func (JiraStatus) TableName() string

type JiraTransformationRule

type JiraTransformationRule struct {
	archived.Model
	Name                       string          `gorm:"type:varchar(255);index:idx_name_jira,unique" validate:"required"`
	EpicKeyField               string          `json:"epicKeyField" gorm:"type:varchar(255)"`
	StoryPointField            string          `json:"storyPointField" gorm:"type:varchar(255)"`
	RemotelinkCommitShaPattern string          `json:"remotelinkCommitShaPattern" gorm:"type:varchar(255)"`
	TypeMappings               json.RawMessage `json:"typeMappings"`
}

func (JiraTransformationRule) TableName

func (JiraTransformationRule) TableName() string

type JiraWorklog

type JiraWorklog struct {
	archived.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 RestConnection

type RestConnection struct {
	BaseConnection   `mapstructure:",squash"`
	Endpoint         string `mapstructure:"endpoint" validate:"required" json:"endpoint"`
	Proxy            string `mapstructure:"proxy" json:"proxy"`
	RateLimitPerHour int    `comment:"api request rate limit per hour" json:"rateLimit"`
}

type TestConnectionRequest

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

Jump to

Keyboard shortcuts

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