Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertStringToTime(timeString string) (t time.Time, err error)
- func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
- type AccessToken
- type Account
- type BaseConnection
- type BasicAuth
- type Blueprint
- type BlueprintConnection
- type BlueprintScope
- type Board
- type BoardIssue
- type BoardRepo
- type BoardSprint
- type CicdDeploymentCommit
- type CicdScope
- type CollectorLatestState
- type Commit
- type CommitFile
- type CommitParent
- type CqFileMetrics
- type CqIssue
- type CqIssueCodeBlock
- type CqProject
- type Creator
- type DateTimeFormatItem
- type DomainEntity
- type DomainEntityExtended
- type GenericModel
- type Iso8601Time
- func (jt Iso8601Time) MarshalJSON() ([]byte, error)
- func (jt *Iso8601Time) Scan(v interface{}) error
- func (jt *Iso8601Time) String() string
- func (jt *Iso8601Time) ToNullableTime() *time.Time
- func (jt *Iso8601Time) ToTime() time.Time
- func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
- func (jt *Iso8601Time) Value() (driver.Value, error)
- type Issue
- type IssueChangelogs
- type IssueComment
- type IssueCommit
- type IssueCustomArrayField
- type IssueLabel
- type IssueRelationship
- type IssueRepoCommit
- type IssueWorklog
- type Model
- type NoPKModel
- type Note
- type Notification
- type NotificationType
- type Pipeline
- type ProjectIssueMetric
- type ProjectMapping
- type ProjectPrMetric
- type PullRequest
- type PullRequestComment
- type PullRequestCommit
- type PullRequestIssue
- type PullRequestLabel
- type RawDataOrigin
- type Ref
- type RefsCommitsDiff
- type RefsIssuesDiffs
- type RefsPrCherrypick
- type Repo
- type RepoCommit
- type RepoLanguage
- type RestConnection
- type ScopeConfig
- type Sprint
- type SprintIssue
- type Task
- type Team
- type TeamUser
- type Updater
- type User
- type UserAccount
Constants ¶
View Source
const ( BUG = "BUG" REQUIREMENT = "REQUIREMENT" INCIDENT = "INCIDENT" TODO = "TODO" DONE = "DONE" IN_PROGRESS = "IN_PROGRESS" )
Variables ¶
View Source
var ( BeforeSprint = "BEFORE_SPRINT" DuringSprint = "DURING_SPRINT" AfterSprint = "AFTER_SPRINT" )
View Source
var DateTimeFormats []DateTimeFormatItem
DateTimeFormats FIXME ...
Functions ¶
func ConvertStringToTime ¶
ConvertStringToTime FIXME ...
func Iso8601TimeToTime ¶
func Iso8601TimeToTime(iso8601Time *Iso8601Time) *time.Time
Iso8601TimeToTime FIXME ...
Types ¶
type AccessToken ¶
type AccessToken struct {
Token string
}
type Account ¶
type BaseConnection ¶
type Blueprint ¶
type BlueprintConnection ¶
type BlueprintConnection struct { BlueprintId uint64 `gorm:"primaryKey"` PluginName string `gorm:"primaryKey;type:varchar(255)"` ConnectionId uint64 `gorm:"primaryKey"` }
func (BlueprintConnection) TableName ¶
func (BlueprintConnection) TableName() string
type BlueprintScope ¶
type BlueprintScope struct { BlueprintId uint64 `gorm:"primaryKey"` PluginName string `gorm:"primaryKey;type:varchar(255)"` ConnectionId uint64 `gorm:"primaryKey"` ScopeId string `gorm:"primaryKey;type:varchar(255)"` }
func (BlueprintScope) TableName ¶
func (BlueprintScope) TableName() string
type Board ¶
type BoardIssue ¶
type BoardIssue struct { BoardId string `gorm:"primaryKey;type:varchar(255)"` IssueId string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (BoardIssue) TableName ¶
func (BoardIssue) TableName() string
type BoardRepo ¶
type BoardSprint ¶
type BoardSprint struct { NoPKModel BoardId string `gorm:"primaryKey;type:varchar(255)"` SprintId string `gorm:"primaryKey;type:varchar(255)"` }
func (BoardSprint) TableName ¶
func (BoardSprint) TableName() string
type CicdDeploymentCommit ¶
type CicdDeploymentCommit struct { DomainEntity CicdScopeId string `gorm:"index;type:varchar(255)"` CicdDeploymentId string `gorm:"type:varchar(255)"` // if it is converted from a cicd_pipeline_commit Name string `gorm:"type:varchar(255)"` Result string `gorm:"type:varchar(100)"` Status string `gorm:"type:varchar(100)"` Environment string `gorm:"type:varchar(255)"` CreatedDate time.Time StartedDate *time.Time FinishedDate *time.Time DurationSec *uint64 CommitSha string `gorm:"primaryKey;type:varchar(255)"` RefName string `gorm:"type:varchar(255)"` RepoId string `gorm:"type:varchar(255)"` RepoUrl string `gorm:"index;not null"` PrevSuccessDeploymentCommitId string `gorm:"type:varchar(255)"` }
func (CicdDeploymentCommit) TableName ¶
func (CicdDeploymentCommit) TableName() string
type CicdScope ¶
type CollectorLatestState ¶
type CollectorLatestState struct { CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` RawDataParams string `gorm:"primaryKey;column:raw_data_params;type:varchar(255);index" json:"raw_data_params"` RawDataTable string `gorm:"primaryKey;column:raw_data_table;type:varchar(255)" json:"raw_data_table"` CreatedDateAfter *time.Time LatestSuccessStart *time.Time }
func (CollectorLatestState) TableName ¶
func (CollectorLatestState) TableName() string
type Commit ¶
type Commit struct { NoPKModel Sha string `json:"sha" gorm:"primaryKey;type:varchar(40);comment:commit hash"` Additions int `json:"additions" gorm:"comment:Added lines of code"` Deletions int `json:"deletions" gorm:"comment:Deleted lines of code"` DevEq int `json:"deveq" 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:varchar(40)"` FilePath string `gorm:"primaryKey;type:varchar(255)"` Additions int Deletions int }
func (CommitFile) TableName ¶
func (CommitFile) TableName() string
type CommitParent ¶
type CommitParent struct { CommitSha string `json:"commitSha" gorm:"primaryKey;type:varchar(40);comment:commit hash"` ParentCommitSha string `json:"parentCommitSha" gorm:"primaryKey;type:varchar(40);comment:parent commit hash"` }
func (CommitParent) TableName ¶
func (CommitParent) TableName() string
type CqFileMetrics ¶
type CqFileMetrics struct { DomainEntity ProjectKey string `gorm:"index;type:varchar(255)"` //domain project key FileName string `gorm:"type:varchar(255)"` FilePath string FileLanguage string `gorm:"type:varchar(20)"` CodeSmells int SqaleIndex int SqaleRating float64 Bugs int ReliabilityRating string `gorm:"type:varchar(20)"` Vulnerabilities int SecurityRating string `gorm:"type:varchar(20)"` SecurityHotspots int SecurityHotspotsReviewed float64 SecurityReviewRating string `gorm:"type:varchar(20)"` Ncloc int Coverage float64 UncoveredLines int LinesToCover int DuplicatedLinesDensity float64 DuplicatedBlocks int DuplicatedFiles int DuplicatedLines int EffortToReachMaintainabilityRatingA int Complexity int CognitiveComplexity int NumOfLines int }
func (CqFileMetrics) TableName ¶
func (CqFileMetrics) TableName() string
type CqIssue ¶
type CqIssue struct { DomainEntity Rule string `gorm:"type:varchar(255)"` Severity string `gorm:"type:varchar(100)"` Component string `gorm:"type:varchar(255)"` ProjectKey string `gorm:"index;type:varchar(100)"` //domain project key Line int Status string `gorm:"type:varchar(20)"` Message string Debt int Effort int CommitAuthorEmail string `json:"author" gorm:"type:varchar(255)"` Assignee string `json:"assignee" gorm:"type:varchar(255)"` Hash string `gorm:"type:varchar(100)"` Tags string Type string `gorm:"type:varchar(100)"` Scope string `gorm:"type:varchar(255)"` StartLine int `json:"startLine"` EndLine int `json:"endLine"` StartOffset int `json:"startOffset"` EndOffset int `json:"endOffset"` VulnerabilityProbability string `gorm:"type:varchar(100)"` SecurityCategory string `gorm:"type:varchar(100)"` CreatedDate *time.Time UpdatedDate *time.Time }
type CqIssueCodeBlock ¶
type CqIssueCodeBlock struct { DomainEntity IssueKey string `json:"key" gorm:"index"` Component string `gorm:"index"` StartLine int EndLine int StartOffset int EndOffset int Msg string }
func (CqIssueCodeBlock) TableName ¶
func (CqIssueCodeBlock) TableName() string
type CqProject ¶
type DateTimeFormatItem ¶
DateTimeFormatItem FIXME ... TODO: move this to helper
type DomainEntity ¶
type DomainEntityExtended ¶
type GenericModel ¶
type Iso8601Time ¶
Iso8601Time is type time.Time
func (Iso8601Time) MarshalJSON ¶
func (jt Iso8601Time) MarshalJSON() ([]byte, error)
MarshalJSON FIXME ...
func (*Iso8601Time) String ¶
func (jt *Iso8601Time) String() string
func (*Iso8601Time) ToNullableTime ¶
func (jt *Iso8601Time) ToNullableTime() *time.Time
ToNullableTime FIXME ...
func (*Iso8601Time) UnmarshalJSON ¶
func (jt *Iso8601Time) UnmarshalJSON(b []byte) error
UnmarshalJSON FIXME ...
type Issue ¶
type Issue struct { DomainEntity Url string `gorm:"type:varchar(255)"` IconURL string `gorm:"type:varchar(255);column:icon_url"` IssueKey string `gorm:"type:varchar(255)"` Title string Description string EpicKey string `gorm:"type:varchar(255)"` Type string `gorm:"type:varchar(100)"` Status string `gorm:"type:varchar(100)"` OriginalStatus string `gorm:"type:varchar(100)"` StoryPoint int64 ResolutionDate *time.Time CreatedDate *time.Time UpdatedDate *time.Time LeadTimeMinutes uint ParentIssueId string `gorm:"type:varchar(255)"` Priority string `gorm:"type:varchar(255)"` OriginalEstimateMinutes int64 TimeSpentMinutes int64 TimeRemainingMinutes int64 CreatorId string `gorm:"type:varchar(255)"` CreatorName string `gorm:"type:varchar(255)"` AssigneeId string `gorm:"type:varchar(255)"` AssigneeName string `gorm:"type:varchar(255)"` Severity string `gorm:"type:varchar(255)"` Component string `gorm:"type:varchar(255)"` }
type IssueChangelogs ¶
type IssueChangelogs struct { DomainEntity // collected fields IssueId string `gorm:"index;type:varchar(255)"` AuthorId string `gorm:"type:varchar(255)"` AuthorName string `gorm:"type:varchar(255)"` FieldId string `gorm:"type:varchar(255)"` FieldName string `gorm:"type:varchar(255)"` OriginalFromValue string OriginalToValue string FromValue string ToValue string CreatedDate time.Time }
func (IssueChangelogs) TableName ¶
func (IssueChangelogs) TableName() string
type IssueComment ¶
type IssueComment struct { DomainEntity IssueId string `gorm:"index"` Body string UserId string `gorm:"type:varchar(255)"` CreatedDate time.Time }
func (IssueComment) TableName ¶
func (IssueComment) TableName() string
type IssueCommit ¶
type IssueCommit struct { NoPKModel IssueId string `gorm:"primaryKey;type:varchar(255)"` CommitSha string `gorm:"primaryKey;type:varchar(255)"` }
func (IssueCommit) TableName ¶
func (IssueCommit) TableName() string
type IssueCustomArrayField ¶
type IssueCustomArrayField struct { IssueId string `gorm:"primaryKey;type:varchar(255)"` FieldId string `gorm:"primaryKey;type:varchar(255)"` FieldValue string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (IssueCustomArrayField) TableName ¶
func (IssueCustomArrayField) TableName() string
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 }
func (IssueLabel) TableName ¶
func (IssueLabel) TableName() string
type IssueRelationship ¶
type IssueRelationship struct { SourceIssueId string `gorm:"primaryKey;type:varchar(255);index"` TargetIssueId string `gorm:"primaryKey;type:varchar(255)"` OriginalType string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (IssueRelationship) TableName ¶
func (IssueRelationship) TableName() string
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)"` }
func (IssueRepoCommit) TableName ¶
func (IssueRepoCommit) 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)"` }
func (IssueWorklog) TableName ¶
func (IssueWorklog) TableName() string
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:varchar(100)"` Author string `gorm:"type:varchar(255)"` Body string Resolvable bool `gorm:"comment:Is or is not a review comment"` IsSystem 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 ProjectIssueMetric ¶
type ProjectIssueMetric struct { DomainEntity ProjectName string `gorm:"primaryKey;type:varchar(100)"` DeploymentId string }
func (ProjectIssueMetric) TableName ¶
func (ProjectIssueMetric) TableName() string
type ProjectMapping ¶
type ProjectMapping struct { ProjectName string `gorm:"primaryKey;type:varchar(255)"` Table string `gorm:"primaryKey;type:varchar(255)"` RowId string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (ProjectMapping) TableName ¶
func (ProjectMapping) TableName() string
type ProjectPrMetric ¶
type ProjectPrMetric struct { DomainEntity ProjectName string `gorm:"primaryKey;type:varchar(100)"` FirstCommitSha string PrCodingTime *int64 FirstReviewId string PrPickupTime *int64 PrReviewTime *int64 DeploymentId string PrDeployTime *int64 PrCycleTime *int64 }
func (ProjectPrMetric) TableName ¶
func (ProjectPrMetric) 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"` Title string Description string Url string `gorm:"type:varchar(255)"` AuthorName string `gorm:"type:varchar(100)"` //User domainUser.User `gorm:"foreignKey:AuthorId"` AuthorId string `gorm:"type:varchar(100)"` ParentPrId string `gorm:"index;type:varchar(100)"` PullRequestKey int CreatedDate time.Time MergedDate *time.Time ClosedDate *time.Time Type string `gorm:"type:varchar(100)"` Component string `gorm:"type:varchar(100)"` MergeCommitSha string `gorm:"type:varchar(40)"` HeadRef string `gorm:"type:varchar(255)"` BaseRef string `gorm:"type:varchar(255)"` BaseCommitSha string `gorm:"type:varchar(40)"` HeadCommitSha string `gorm:"type:varchar(40)"` }
func (PullRequest) TableName ¶
func (PullRequest) TableName() string
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 string `gorm:"type:varchar(255)"` ReviewId string `gorm:"type:varchar(255)"` Status string `gorm:"type:varchar(255)"` }
func (PullRequestComment) TableName ¶
func (PullRequestComment) TableName() string
type PullRequestCommit ¶
type PullRequestCommit struct { CommitSha string `gorm:"primaryKey;type:varchar(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 }
func (PullRequestCommit) TableName ¶
func (PullRequestCommit) TableName() string
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 }
func (PullRequestIssue) TableName ¶
func (PullRequestIssue) TableName() string
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 }
func (PullRequestLabel) TableName ¶
func (PullRequestLabel) TableName() string
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"` }
RawDataOrigin is embedded fields for tool layer tables
type Ref ¶
type RefsCommitsDiff ¶
type RefsCommitsDiff struct { NewRefId string `gorm:"primaryKey;type:varchar(255)"` OldRefId string `gorm:"primaryKey;type:varchar(255)"` CommitSha string `gorm:"primaryKey;type:varchar(40)"` NewRefCommitSha string `gorm:"type:varchar(40)"` OldRefCommitSha string `gorm:"type:varchar(40)"` SortingIndex int }
func (RefsCommitsDiff) TableName ¶
func (RefsCommitsDiff) TableName() string
type RefsIssuesDiffs ¶
type RefsIssuesDiffs struct { NewRefId string `gorm:"primaryKey;type:varchar(255)"` OldRefId string `gorm:"primaryKey;type:varchar(255)"` NewRefCommitSha string `gorm:"type:varchar(40)"` OldRefCommitSha string `gorm:"type:varchar(40)"` IssueNumber string `gorm:"type:varchar(255)"` IssueId string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (RefsIssuesDiffs) TableName ¶
func (RefsIssuesDiffs) TableName() string
type RefsPrCherrypick ¶
type RefsPrCherrypick struct { RepoName string `gorm:"type:varchar(255)"` ParentPrKey int CherrypickBaseBranches string `gorm:"type:varchar(255)"` CherrypickPrKeys string `gorm:"type:varchar(255)"` ParentPrUrl string `gorm:"type:varchar(255)"` ParentPrId string `` // format: <Plugin>:<Entity>:<PK0>:<PK1> /* 127-byte string literal not displayed */ NoPKModel }
multi pk
func (RefsPrCherrypick) TableName ¶
func (RefsPrCherrypick) TableName() string
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:varchar(40)"` NoPKModel }
func (RepoCommit) TableName ¶
func (RepoCommit) TableName() string
type RepoLanguage ¶
type RepoLanguage struct { RepoId string `json:"repoId" gorm:"index;type:varchar(255)"` Language string `json:"language" gorm:"type:varchar(255)"` Bytes int }
func (RepoLanguage) TableName ¶
func (RepoLanguage) TableName() string
type RestConnection ¶
type ScopeConfig ¶
type Sprint ¶
type SprintIssue ¶
type SprintIssue struct { NoPKModel SprintId string `gorm:"primaryKey;type:varchar(255)"` IssueId string `gorm:"primaryKey;type:varchar(255)"` }
func (SprintIssue) TableName ¶
func (SprintIssue) TableName() string
type Task ¶
type Task struct { Model Plugin string `gorm:"index"` Options json.RawMessage `gorm:"type: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 }
type Team ¶
type Team struct { DomainEntity Name string `gorm:"type:varchar(255)"` Alias string `gorm:"type:varchar(255)"` ParentId string `gorm:"type:varchar(255)"` SortingIndex int }
type TeamUser ¶
type User ¶
type User struct { DomainEntity Email string `gorm:"type:varchar(255)"` Name string `gorm:"type:varchar(255)"` }
type UserAccount ¶
type UserAccount struct { UserId string `gorm:"type:varchar(255)"` AccountId string `gorm:"primaryKey;type:varchar(255)"` NoPKModel }
func (UserAccount) TableName ¶
func (UserAccount) TableName() string
Source Files ¶
- account.go
- base.go
- blueprint.go
- board.go
- cicd_deployment.go
- cicd_scope.go
- collector_state.go
- commit.go
- connection.go
- cq_file_metrics.go
- cq_issue_code_blocks.go
- cq_issues.go
- cq_projects.go
- iso8601time.go
- issue.go
- issue_changelog.go
- issue_custom_array_fields.go
- issue_relationship.go
- issue_repo_commits.go
- note.go
- notification.go
- pipeline.go
- project_issue_metric.go
- project_mapping.go
- project_pr_metric.go
- pull_request.go
- ref.go
- repo.go
- sprint.go
- task.go
- team.go
- team_user.go
- user.go
- user_account.go
- worklog.go
Click to show internal directories.
Click to hide internal directories.