archived

package
v0.12.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseConnection added in v0.12.0

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

type BasicAuth added in v0.12.0

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

type BoardResponse added in v0.12.0

type BoardResponse struct {
	Id    int
	Title string
	Value string
}

type EpicResponse added in v0.12.0

type EpicResponse struct {
	Id    int
	Title string
	Value string
}

type JiraAccount added in v0.12.0

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 added in v0.12.0

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 added in v0.12.0

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

func (JiraConnection) TableName added in v0.12.0

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 added in v0.12.0

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 added in v0.12.0

func (JiraIssueChangelogItems) TableName() string

type JiraIssueChangelogs added in v0.12.0

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 added in v0.12.0

func (JiraIssueChangelogs) 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 added in v0.12.0

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 added in v0.12.0

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

func (JiraIssueType) TableName added in v0.12.0

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 added in v0.12.0

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

func (JiraStatus) TableName added in v0.12.0

func (JiraStatus) 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 added in v0.12.0

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 added in v0.12.0

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