archived

package
v0.10.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blueprint

type Blueprint struct {
	Name       string
	Tasks      datatypes.JSON
	Enable     bool
	CronConfig string
	Model
}

func (Blueprint) TableName

func (Blueprint) TableName() string

type Board

type Board struct {
	DomainEntity
	Name        string `gorm:"type:char(255)"`
	Description string
	Url         string `gorm:"type:char(255)"`
	CreatedDate *time.Time
}

type BoardIssue

type BoardIssue struct {
	BoardId string `gorm:"primaryKey;type:varchar(255)"`
	IssueId string `gorm:"primaryKey;type:varchar(255)"`
	NoPKModel
}

type BoardRepo

type BoardRepo struct {
	BoardId string `gorm:"primaryKey;type:varchar(255)"`
	RepoId  string `gorm:"primaryKey;type:varchar(255)"`
}

type BoardSprint

type BoardSprint struct {
	NoPKModel
	BoardId  string `gorm:"primaryKey;type:varchar(255)"`
	SprintId string `gorm:"primaryKey;type:varchar(255)"`
}

type Build

type Build struct {
	DomainEntity
	JobId       string `gorm:"index"`
	Name        string `gorm:"type:char(255)"`
	CommitSha   string `gorm:"type:char(40)"`
	DurationSec uint64
	Status      string `gorm:"type:char(100)"`
	StartedDate time.Time
}

type Changelog

type Changelog struct {
	DomainEntity
	IssueId     string `gorm:"index"`
	AuthorId    string `gorm:"type:char(255)"`
	AuthorName  string `gorm:"type:char(255)"`
	FieldId     string `gorm:"type:char(255)"`
	FieldName   string `gorm:"type:char(255)"`
	From        string
	To          string
	CreatedDate time.Time
}

type Commit

type Commit struct {
	NoPKModel
	Sha            string `json:"sha" gorm:"primaryKey;type:char(40);comment:commit hash"`
	Additions      int    `gorm:"comment:Added lines of code"`
	Deletions      int    `gorm:"comment:Deleted lines of code"`
	DevEq          int    `gorm:"comment:Merico developer equivalent from analysis engine"`
	Message        string
	AuthorName     string `gorm:"type:varchar(255)"`
	AuthorEmail    string `gorm:"type:varchar(255)"`
	AuthoredDate   time.Time
	AuthorId       string `gorm:"type:varchar(255)"`
	CommitterName  string `gorm:"type:varchar(255)"`
	CommitterEmail string `gorm:"type:varchar(255)"`
	CommittedDate  time.Time
	CommitterId    string `gorm:"index;type:varchar(255)"`
}

type CommitFile

type CommitFile struct {
	NoPKModel
	CommitSha string `gorm:"primaryKey;type:char(40)"`
	FilePath  string `gorm:"primaryKey;type:varchar(255)"`
	Additions int
	Deletions int
}

type CommitParent

type CommitParent struct {
	CommitSha       string `json:"commitSha" gorm:"primaryKey;type:char(40);comment:commit hash"`
	ParentCommitSha string `json:"parentCommitSha" gorm:"primaryKey;type:char(40);comment:parent commit hash"`
}

type DomainEntity

type DomainEntity struct {
	Id string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	NoPKModel
}

type Issue

type Issue struct {
	DomainEntity
	Url                     string `gorm:"type:char(255)"`
	Number                  string `gorm:"type:char(255)"`
	Title                   string
	Description             string
	EpicKey                 string `gorm:"type:char(255)"`
	Type                    string `gorm:"type:char(100)"`
	Status                  string `gorm:"type:char(100)"`
	OriginalStatus          string `gorm:"type:char(100)"`
	StoryPoint              uint
	ResolutionDate          *time.Time
	CreatedDate             *time.Time
	UpdatedDate             *time.Time
	LeadTimeMinutes         uint
	ParentIssueId           string `gorm:"type:char(255)"`
	Priority                string `gorm:"type:char(255)"`
	OriginalEstimateMinutes int64
	TimeSpentMinutes        int64
	TimeRemainingMinutes    int64
	CreatorId               string `gorm:"type:char(255)"`
	AssigneeId              string `gorm:"type:char(255)"`
	AssigneeName            string `gorm:"type:char(255)"`
	Severity                string `gorm:"type:char(255)"`
	Component               string `gorm:"type:char(255)"`
}

type IssueAssigneeHistory

type IssueAssigneeHistory struct {
	NoPKModel
	IssueId   string    `gorm:"primaryKey;type:varchar(255)"`
	Assignee  string    `gorm:"primaryKey;type:varchar(255)"`
	StartDate time.Time `gorm:"primaryKey"`
	EndDate   *time.Time
}

func (IssueAssigneeHistory) TableName

func (IssueAssigneeHistory) TableName() string

type IssueComment

type IssueComment struct {
	DomainEntity
	IssueId     string `gorm:"index"`
	Body        string
	UserId      string `gorm:"type:varchar(255)"`
	CreatedDate time.Time
}

type IssueCommit

type IssueCommit struct {
	NoPKModel
	IssueId   string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
}

type IssueLabel

type IssueLabel struct {
	IssueId   string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	LabelName string `gorm:"primaryKey;type:varchar(255)"`
	NoPKModel
}

type IssueRepoCommit

type IssueRepoCommit struct {
	NoPKModel
	IssueId   string `gorm:"primaryKey;type:varchar(255)"`
	RepoUrl   string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha string `gorm:"primaryKey;type:varchar(255)"`
}

type IssueSprintsHistory

type IssueSprintsHistory struct {
	NoPKModel
	IssueId   string    `gorm:"primaryKey;type:varchar(255)"`
	SprintId  string    `gorm:"primaryKey;type:varchar(255)"`
	StartDate time.Time `gorm:"primaryKey"`
	EndDate   *time.Time
}

func (IssueSprintsHistory) TableName

func (IssueSprintsHistory) TableName() string

type IssueStatusHistory

type IssueStatusHistory struct {
	NoPKModel
	IssueId        string    `gorm:"primaryKey;type:varchar(255)"`
	OriginalStatus string    `gorm:"primaryKey;type:varchar(255)"`
	StartDate      time.Time `gorm:"primaryKey"`
	EndDate        *time.Time
}

func (IssueStatusHistory) TableName

func (IssueStatusHistory) TableName() string

type IssueWorklog

type IssueWorklog struct {
	DomainEntity
	AuthorId         string `gorm:"type:varchar(255)"`
	Comment          string
	TimeSpentMinutes int
	LoggedDate       *time.Time
	StartedDate      *time.Time
	IssueId          string `gorm:"index;type:varchar(255)"`
}

type Job

type Job struct {
	Name string `gorm:"type:char(255)"`
	DomainEntity
}

type Model

type Model struct {
	ID        uint64    `gorm:"primaryKey" json:"id"`
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
}

type NoPKModel

type NoPKModel struct {
	CreatedAt time.Time `json:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt"`
	RawDataOrigin
}

type Note

type Note struct {
	DomainEntity
	PrId        string `gorm:"index;comment:References the pull request for this note;type:varchar(100)"`
	Type        string `gorm:"type:char(100)"`
	Author      string `gorm:"type:char(255)"`
	Body        string
	Resolvable  bool `gorm:"comment:Is or is not a review comment"`
	System      bool `gorm:"comment:Is or is not auto-generated vs. human generated"`
	CreatedDate time.Time
}

type Notification

type Notification struct {
	Model
	Type         NotificationType
	Endpoint     string
	Nonce        string
	ResponseCode int
	Response     string
	Data         string
}

Notification records notifications sent by lake

func (Notification) TableName

func (Notification) TableName() string

type NotificationType

type NotificationType string

type Pipeline

type Pipeline struct {
	Model
	Name        string `json:"name" gorm:"index"`
	BlueprintId uint64
	Tasks       datatypes.JSON
	TotalTasks  int
	// Deprecated
	FinishedTasks int
	BeganAt       *time.Time
	FinishedAt    *time.Time `gorm:"index"`
	Status        string
	Message       string
	SpentSeconds  int
	Step          int
}

func (Pipeline) TableName

func (Pipeline) TableName() string

type PullRequest

type PullRequest struct {
	DomainEntity
	BaseRepoId     string `gorm:"index"`
	HeadRepoId     string `gorm:"index"`
	Status         string `gorm:"type:varchar(100);comment:open/closed or other"`
	Number         int
	Title          string
	Description    string
	Url            string `gorm:"type:char(255)"`
	AuthorName     string `gorm:"type:char(100)"`
	AuthorId       string `gorm:"type:char(100)"`
	ParentPrId     string `gorm:"index;type:varchar(100)"`
	Key            int
	CreatedDate    time.Time
	MergedDate     *time.Time
	ClosedDate     *time.Time
	Type           string `gorm:"type:char(100)"`
	Component      string `gorm:"type:char(100)"`
	MergeCommitSha string `gorm:"type:char(40)"`
	HeadRef        string `gorm:"type:char(255)"`
	BaseRef        string `gorm:"type:char(255)"`
	BaseCommitSha  string `gorm:"type:char(40)"`
	HeadCommitSha  string `gorm:"type:char(40)"`
}

type PullRequestComment

type PullRequestComment struct {
	DomainEntity
	PullRequestId string `gorm:"index"`
	Body          string
	UserId        string `gorm:"type:varchar(255)"`
	CreatedDate   time.Time
	CommitSha     string `gorm:"type:varchar(255)"`
	Position      int
}

type PullRequestCommit

type PullRequestCommit struct {
	CommitSha     string `gorm:"primaryKey;type:char(40)"`
	PullRequestId string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	NoPKModel
}

type PullRequestIssue

type PullRequestIssue struct {
	PullRequestId     string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	IssueId           string `gorm:"primaryKey;type:varchar(255)"`
	PullRequestNumber int
	IssueNumber       int
	NoPKModel
}

type PullRequestLabel

type PullRequestLabel struct {
	PullRequestId string `json:"id" gorm:"primaryKey;type:varchar(255);comment:This key is generated based on details from the original plugin"` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	LabelName     string `gorm:"primaryKey;type:varchar(255)"`
	NoPKModel
}

type RawDataOrigin

type RawDataOrigin struct {
	// can be used for flushing outdated records from table
	RawDataParams string `gorm:"column:_raw_data_params;type:varchar(255);index" json:"_raw_data_params"`
	RawDataTable  string `gorm:"column:_raw_data_table;type:varchar(255)" json:"_raw_data_table"`
	// can be used for debugging
	RawDataId uint64 `gorm:"column:_raw_data_id" json:"_raw_data_id"`
	// we can store record index into this field, which is helpful for debugging
	RawDataRemark string `gorm:"column:_raw_data_remark" json:"_raw_data_remark"`
}

embedded fields for tool layer tables

type Ref

type Ref struct {
	DomainEntity
	RepoId      string `gorm:"type:varchar(255)"`
	Name        string `gorm:"type:varchar(255)"`
	CommitSha   string `gorm:"type:char(40)"`
	IsDefault   bool
	RefType     string `gorm:"type:varchar(255)"`
	CreatedDate *time.Time
}

type RefsCommitsDiff

type RefsCommitsDiff struct {
	NewRefId        string `gorm:"primaryKey;type:varchar(255)"`
	OldRefId        string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha       string `gorm:"primaryKey;type:char(40)"`
	NewRefCommitSha string `gorm:"type:char(40)"`
	OldRefCommitSha string `gorm:"type:char(40)"`
	SortingIndex    int
}

type RefsIssuesDiffs

type RefsIssuesDiffs struct {
	NewRefId        string `gorm:"type:varchar(255)"`
	OldRefId        string `gorm:"type:varchar(255)"`
	NewRefCommitSha string `gorm:"type:char(40)"`
	OldRefCommitSha string `gorm:"type:char(40)"`
	IssueNumber     string `gorm:"type:varchar(255)"`
	IssueId         string `gorm:";type:varchar(255)"`
	NoPKModel
}

type RefsPrCherrypick

type RefsPrCherrypick struct {
	RepoName               string `gorm:"type:char(255)"`
	ParentPrKey            int
	CherrypickBaseBranches string `gorm:"type:char(255)"`
	CherrypickPrKeys       string `gorm:"type:char(255)"`
	ParentPrUrl            string `gorm:"type:char(255)"`
	ParentPrId             string `` // format: <Plugin>:<Entity>:<PK0>:<PK1>
	/* 127-byte string literal not displayed */
	NoPKModel
}

type Repo

type Repo struct {
	DomainEntity
	Name        string     `json:"name"`
	Url         string     `json:"url"`
	Description string     `json:"Description"`
	OwnerId     string     `json:"ownerId" gorm:"type:varchar(255)"`
	Language    string     `json:"language" gorm:"type:varchar(255)"`
	ForkedFrom  string     `json:"forkedFrom"`
	CreatedDate time.Time  `json:"createdDate"`
	UpdatedDate *time.Time `json:"updatedDate"`
	Deleted     bool       `json:"deleted"`
}

type RepoCommit

type RepoCommit struct {
	RepoId    string `json:"repoId" gorm:"primaryKey;type:varchar(255)"`
	CommitSha string `json:"commitSha" gorm:"primaryKey;type:char(40)"`
	NoPKModel
}

type RepoLanguage

type RepoLanguage struct {
	RepoId   string `json:"repoId" gorm:"index;type:varchar(255)"`
	Language string `json:"language" gorm:"type:varchar(255)"`
	Bytes    int
}

type Sprint

type Sprint struct {
	DomainEntity
	Name            string `gorm:"type:char(255)"`
	Url             string `gorm:"type:char(255)"`
	Status          string `gorm:"type:char(100)"`
	StartedDate     *time.Time
	EndedDate       *time.Time
	CompletedDate   *time.Time
	OriginalBoardID string `gorm:"type:char(255)"`
}

type SprintIssue

type SprintIssue struct {
	NoPKModel
	SprintId      string `gorm:"primaryKey;type:varchar(255)"`
	IssueId       string `gorm:"primaryKey;type:varchar(255)"`
	IsRemoved     bool
	AddedDate     *time.Time
	RemovedDate   *time.Time
	AddedStage    *string `gorm:"type:varchar(255)"`
	ResolvedStage *string `gorm:"type:varchar(255)"`
}

type Task

type Task struct {
	Model
	Plugin        string `gorm:"index"`
	Options       datatypes.JSON
	Status        string
	Message       string
	Progress      float32
	FailedSubTask string
	PipelineId    uint64 `gorm:"index"`
	PipelineRow   int
	PipelineCol   int
	BeganAt       *time.Time
	FinishedAt    *time.Time `gorm:"index"`
	SpentSeconds  int
}

func (Task) TableName

func (Task) TableName() string

type User

type User struct {
	DomainEntity
	Name      string `gorm:"type:varchar(255)"`
	Email     string `gorm:"type:varchar(255)"`
	AvatarUrl string `gorm:"type:varchar(255)"`
	Timezone  string `gorm:"type:varchar(255)"`
}

Jump to

Keyboard shortcuts

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