models

package
v0.13.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiUserResponse

type ApiUserResponse struct {
	Username      string `json:"username"`
	DisplayName   string `json:"display_name"`
	AccountId     int    `json:"account_id"`
	Uuid          string `json:"uuid"`
	AccountStatus string `json:"account_status"`
}

type BitbucketAccount

type BitbucketAccount struct {
	ConnectionId  uint64 `gorm:"primaryKey"`
	AccountId     string `gorm:"primaryKey;type:varchar(255)"`
	UserName      string `gorm:"type:varchar(255)"`
	AccountStatus string `gorm:"type:varchar(255)"`
	DisplayName   string `gorm:"type:varchar(255)"`
	AvatarUrl     string `gorm:"type:varchar(255)"`
	HtmlUrl       string `gorm:"type:varchar(255)"`
	Uuid          string `gorm:"type:varchar(255)"`
	Has2FaEnabled bool
	common.NoPKModel
}

func (BitbucketAccount) TableName

func (BitbucketAccount) TableName() string

type BitbucketCommit

type BitbucketCommit struct {
	Sha           string `gorm:"primaryKey;type:varchar(40)"`
	AuthorId      string `gorm:"type:varchar(255)"`
	AuthorName    string `gorm:"type:varchar(255)"`
	AuthorEmail   string `gorm:"type:varchar(255)"`
	AuthoredDate  time.Time
	CommittedDate time.Time
	Message       string
	Url           string `gorm:"type:varchar(255)"`
	Additions     int    `gorm:"comment:Added lines of code"`
	Deletions     int    `gorm:"comment:Deleted lines of code"`
	common.NoPKModel
}

func (BitbucketCommit) TableName

func (BitbucketCommit) TableName() string

type BitbucketConnection

type BitbucketConnection struct {
	helper.RestConnection      `mapstructure:",squash"`
	helper.BasicAuth           `mapstructure:",squash"`
	RemotelinkCommitShaPattern string `` /* 179-byte string literal not displayed */
}

func (BitbucketConnection) TableName

func (BitbucketConnection) TableName() string

type BitbucketIssue

type BitbucketIssue struct {
	ConnectionId       uint64 `gorm:"primaryKey"`
	BitbucketId        int    `gorm:"primaryKey"`
	RepoId             string `gorm:"index;type:varchar(255)"`
	Number             int    `gorm:"index;comment:Used in API requests ex. api/issues/<THIS_NUMBER>"`
	State              string `gorm:"type:varchar(255)"`
	Title              string `gorm:"type:varchar(255)"`
	Body               string
	Priority           string `gorm:"type:varchar(255)"`
	Type               string `gorm:"type:varchar(100)"`
	AuthorId           string `gorm:"type:varchar(255)"`
	AuthorName         string `gorm:"type:varchar(255)"`
	AssigneeId         string `gorm:"type:varchar(255)"`
	AssigneeName       string `gorm:"type:varchar(255)"`
	MilestoneId        int    `gorm:"index"`
	LeadTimeMinutes    uint
	Url                string `gorm:"type:varchar(255)"`
	ClosedAt           *time.Time
	BitbucketCreatedAt time.Time
	BitbucketUpdatedAt time.Time `gorm:"index"`
	Severity           string    `gorm:"type:varchar(255)"`
	Component          string    `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (BitbucketIssue) TableName

func (BitbucketIssue) TableName() string

type BitbucketIssueComment

type BitbucketIssueComment struct {
	ConnectionId       uint64 `gorm:"primaryKey"`
	BitbucketId        int    `gorm:"primaryKey"`
	IssueId            int    `gorm:"index;comment:References the Issue"`
	AuthorName         string `gorm:"type:varchar(255)"`
	AuthorId           string `gorm:"type:varchar(255)"`
	BitbucketCreatedAt time.Time
	BitbucketUpdatedAt *time.Time
	Type               string
	Body               string
	common.NoPKModel
}

func (BitbucketIssueComment) TableName

func (BitbucketIssueComment) TableName() string

type BitbucketPrComment

type BitbucketPrComment struct {
	ConnectionId       uint64 `gorm:"primaryKey"`
	BitbucketId        int    `gorm:"primaryKey"`
	PullRequestId      int    `gorm:"index"`
	AuthorId           string `gorm:"type:varchar(255)"`
	AuthorName         string `gorm:"type:varchar(255)"`
	BitbucketCreatedAt time.Time
	BitbucketUpdatedAt *time.Time
	Type               string `gorm:"comment:if type=null, it is normal comment,if type=diffNote,it is diff comment"`
	Body               string
	common.NoPKModel
}

func (BitbucketPrComment) TableName

func (BitbucketPrComment) TableName() string

type BitbucketPullRequest

type BitbucketPullRequest struct {
	ConnectionId       uint64 `gorm:"primaryKey"`
	BitbucketId        int    `gorm:"primaryKey"`
	RepoId             string `gorm:"index;type:varchar(255)"`
	Number             int    `gorm:"index"` // This number is used in GET requests to the API associated to reviewers / comments / etc.
	BaseRepoId         string
	HeadRepoId         string
	State              string `gorm:"type:varchar(255)"`
	Title              string
	Description        string
	BitbucketCreatedAt time.Time
	BitbucketUpdatedAt time.Time `gorm:"index"`
	ClosedAt           *time.Time
	CommentCount       int
	Commits            int
	MergedAt           *time.Time
	Body               string
	Type               string `gorm:"type:varchar(255)"`
	Component          string `gorm:"type:varchar(255)"`
	MergeCommitSha     string `gorm:"type:varchar(40)"`
	HeadRef            string `gorm:"type:varchar(255)"`
	BaseRef            string `gorm:"type:varchar(255)"`
	BaseCommitSha      string `gorm:"type:varchar(255)"`
	HeadCommitSha      string `gorm:"type:varchar(255)"`
	Url                string `gorm:"type:varchar(255)"`
	AuthorName         string `gorm:"type:varchar(255)"`
	AuthorId           string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (BitbucketPullRequest) TableName

func (BitbucketPullRequest) TableName() string

type BitbucketRepo

type BitbucketRepo struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	BitbucketId  string `gorm:"primaryKey;type:varchar(255)"`
	Name         string `gorm:"type:varchar(255)"`
	HTMLUrl      string `gorm:"type:varchar(255)"`
	Description  string
	OwnerId      string     `json:"ownerId"`
	Language     string     `json:"language" gorm:"type:varchar(255)"`
	CreatedDate  time.Time  `json:"createdDate"`
	UpdatedDate  *time.Time `json:"updatedDate"`
	common.NoPKModel
}

func (BitbucketRepo) TableName

func (BitbucketRepo) TableName() string

type BitbucketRepoCommit

type BitbucketRepoCommit struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	RepoId       string `gorm:"primaryKey;type:varchar(255)"`
	CommitSha    string `gorm:"primaryKey;type:varchar(40)"`
	common.NoPKModel
}

func (BitbucketRepoCommit) TableName

func (BitbucketRepoCommit) TableName() string

type BoardResponse

type BoardResponse struct {
	Id    int
	Title string
	Value string
}

type EpicResponse

type EpicResponse struct {
	Id    int
	Title string
	Value string
}

type TestConnectionRequest

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

type TransformationRules

type TransformationRules struct {
	PrType               string `mapstructure:"prType" json:"prType"`
	PrComponent          string `mapstructure:"prComponent" json:"prComponent"`
	PrBodyClosePattern   string `mapstructure:"prBodyClosePattern" json:"prBodyClosePattern"`
	IssueSeverity        string `mapstructure:"issueSeverity" json:"issueSeverity"`
	IssuePriority        string `mapstructure:"issuePriority" json:"issuePriority"`
	IssueComponent       string `mapstructure:"issueComponent" json:"issueComponent"`
	IssueTypeBug         string `mapstructure:"issueTypeBug" json:"issueTypeBug"`
	IssueTypeIncident    string `mapstructure:"issueTypeIncident" json:"issueTypeIncident"`
	IssueTypeRequirement string `mapstructure:"issueTypeRequirement" json:"issueTypeRequirement"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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