models

package
v0.11.0-test1 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 GitlabCommit

type GitlabCommit struct {
	Sha            string `gorm:"primaryKey;type:varchar(40)"`
	Title          string
	Message        string
	ShortId        string `gorm:"type:varchar(255)"`
	AuthorName     string `gorm:"type:varchar(255)"`
	AuthorEmail    string `gorm:"type:varchar(255)"`
	AuthoredDate   time.Time
	CommitterName  string `gorm:"type:varchar(255)"`
	CommitterEmail string `gorm:"type:varchar(255)"`
	CommittedDate  time.Time
	WebUrl         string `gorm:"type:varchar(255)"`
	Additions      int    `gorm:"comment:Added lines of code"`
	Deletions      int    `gorm:"comment:Deleted lines of code"`
	Total          int    `gorm:"comment:Sum of added/deleted lines of code"`
	common.NoPKModel
}

func (GitlabCommit) TableName added in v0.10.0

func (GitlabCommit) TableName() string

type GitlabMergeRequest

type GitlabMergeRequest struct {
	GitlabId         int `gorm:"primaryKey"`
	Iid              int `gorm:"index"`
	ProjectId        int `gorm:"index"`
	SourceProjectId  int
	TargetProjectId  int
	State            string `gorm:"type:varchar(255)"`
	Title            string
	WebUrl           string `gorm:"type:varchar(255)"`
	UserNotesCount   int
	WorkInProgress   bool
	SourceBranch     string `gorm:"type:varchar(255)"`
	TargetBranch     string `gorm:"type:varchar(255)"`
	MergeCommitSha   string `gorm:"type:varchar(255)"`
	MergedAt         *time.Time
	GitlabCreatedAt  time.Time
	ClosedAt         *time.Time
	MergedByUsername string `gorm:"type:varchar(255)"`
	Description      string
	AuthorUsername   string `gorm:"type:varchar(255)"`
	AuthorUserId     int
	Component        string     `gorm:"type:varchar(255)"`
	FirstCommentTime *time.Time `gorm:"comment:Time when the first comment occurred"`
	ReviewRounds     int        `gorm:"comment:How many rounds of review this MR went through"`
	common.NoPKModel
}

func (GitlabMergeRequest) TableName added in v0.10.0

func (GitlabMergeRequest) TableName() string

type GitlabMergeRequestComment added in v0.10.0

type GitlabMergeRequestComment struct {
	GitlabId        int `gorm:"primaryKey"`
	MergeRequestId  int `gorm:"index"`
	MergeRequestIid int `gorm:"comment:Used in API requests ex. /api/merge_requests/<THIS_IID>"`
	Body            string
	AuthorUsername  string `gorm:"type:varchar(255)"`
	AuthorUserId    int
	GitlabCreatedAt time.Time
	Resolvable      bool `gorm:"comment:Is or is not review comment"`
	common.NoPKModel
}

func (GitlabMergeRequestComment) TableName added in v0.10.0

func (GitlabMergeRequestComment) TableName() string

type GitlabMergeRequestCommit

type GitlabMergeRequestCommit struct {
	CommitSha      string `gorm:"primaryKey;type:varchar(40)"`
	MergeRequestId int    `gorm:"primaryKey;autoIncrement:false"`
	common.NoPKModel
}

func (GitlabMergeRequestCommit) TableName added in v0.10.0

func (GitlabMergeRequestCommit) TableName() string

type GitlabMergeRequestNote

type GitlabMergeRequestNote struct {
	GitlabId        int    `gorm:"primaryKey"`
	MergeRequestId  int    `gorm:"index"`
	MergeRequestIid int    `gorm:"comment:Used in API requests ex. /api/merge_requests/<THIS_IID>"`
	NoteableType    string `gorm:"type:varchar(100)"`
	AuthorUsername  string `gorm:"type:varchar(255)"`
	Body            string
	GitlabCreatedAt time.Time
	Confidential    bool
	Resolvable      bool `gorm:"comment:Is or is not review comment"`
	System          bool `gorm:"comment:Is or is not auto-generated vs. human generated"`

	common.NoPKModel
}

func (GitlabMergeRequestNote) TableName added in v0.10.0

func (GitlabMergeRequestNote) TableName() string

type GitlabPipeline

type GitlabPipeline struct {
	GitlabId        int `gorm:"primaryKey"`
	ProjectId       int `gorm:"index"`
	GitlabCreatedAt time.Time
	Status          string `gorm:"type:varchar(100)"`
	Ref             string `gorm:"type:varchar(255)"`
	Sha             string `gorm:"type:varchar(255)"`
	WebUrl          string `gorm:"type:varchar(255)"`
	Duration        int
	StartedAt       *time.Time
	FinishedAt      *time.Time
	Coverage        string
	common.NoPKModel
}

func (GitlabPipeline) TableName added in v0.10.0

func (GitlabPipeline) TableName() string

type GitlabProject

type GitlabProject struct {
	GitlabId                int    `gorm:"primaryKey"`
	Name                    string `gorm:"type:varchar(255)"`
	Description             string
	DefaultBranch           string `gorm:"varchar(255)"`
	PathWithNamespace       string `gorm:"varchar(255)"`
	WebUrl                  string `gorm:"varchar(255)"`
	CreatorId               int
	Visibility              string `gorm:"varchar(255)"`
	OpenIssuesCount         int
	StarCount               int
	ForkedFromProjectId     int
	ForkedFromProjectWebUrl string `gorm:"varchar(255)"`

	CreatedDate time.Time
	UpdatedDate *time.Time
	common.NoPKModel
}

func (GitlabProject) TableName added in v0.10.0

func (GitlabProject) TableName() string

type GitlabProjectCommit added in v0.6.0

type GitlabProjectCommit struct {
	GitlabProjectId int    `gorm:"primaryKey"`
	CommitSha       string `gorm:"primaryKey;type:varchar(40)"`
	common.NoPKModel
}

func (GitlabProjectCommit) TableName added in v0.10.0

func (GitlabProjectCommit) TableName() string

type GitlabReviewer

type GitlabReviewer struct {
	GitlabId       int    `gorm:"primaryKey"`
	MergeRequestId int    `gorm:"index"`
	ProjectId      int    `gorm:"index"`
	Name           string `gorm:"type:varchar(255)"`
	Username       string `gorm:"type:varchar(255)"`
	State          string `gorm:"type:varchar(255)"`
	AvatarUrl      string `gorm:"type:varchar(255)"`
	WebUrl         string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (GitlabReviewer) TableName added in v0.10.0

func (GitlabReviewer) TableName() string

type GitlabTag added in v0.9.0

type GitlabTag struct {
	Name               string `gorm:"primaryKey;type:varchar(60)"`
	Message            string
	Target             string `gorm:"type:varchar(255)"`
	Protected          bool
	ReleaseDescription string
	common.NoPKModel
}

func (GitlabTag) TableName added in v0.10.0

func (GitlabTag) TableName() string

type GitlabUser added in v0.6.0

type GitlabUser struct {
	Email string `gorm:"primaryKey;type:varchar(255)"`
	Name  string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (GitlabUser) TableName added in v0.10.0

func (GitlabUser) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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