models

package
v0.15.1-hexun Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	FAILED      = "FAILED"
	ERROR       = "ERROR"
	UNDEPLOYED  = "UNDEPLOYED"
	STOPPED     = "STOPPED"
	SKIPPED     = "SKIPPED"
	SUCCESSFUL  = "SUCCESSFUL"
	COMPLETED   = "COMPLETED"
	PAUSED      = "COMPLETED"
	HALTED      = "HALTED"
	IN_PROGRESS = "IN_PROGRESS"
	PENDING     = "PENDING"
	BUILDING    = "BUILDING"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

func (BitbucketConnection) TableName

func (BitbucketConnection) TableName() string

type BitbucketDeployment added in v0.15.0

type BitbucketDeployment struct {
	ConnectionId   uint64 `gorm:"primaryKey"`
	BitbucketId    string `gorm:"primaryKey"`
	PipelineId     string `gorm:"type:varchar(255)"`
	Type           string `gorm:"type:varchar(255)"`
	Name           string `gorm:"type:varchar(255)"`
	Key            string `gorm:"type:varchar(255)"`
	WebUrl         string `gorm:"type:varchar(255)"`
	Status         string `gorm:"type:varchar(100)"`
	StateUrl       string `gorm:"type:varchar(255)"`
	CommitSha      string `gorm:"type:varchar(255)"`
	CommitUrl      string `gorm:"type:varchar(255)"`
	CreatedOn      *time.Time
	StartedOn      *time.Time
	CompletedOn    *time.Time
	LastUpdateTime *time.Time
	common.NoPKModel
}

func (BitbucketDeployment) TableName added in v0.15.0

func (BitbucketDeployment) 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 BitbucketPipeline added in v0.14.0

type BitbucketPipeline struct {
	ConnectionId      uint64 `gorm:"primaryKey"`
	BitbucketId       string `gorm:"primaryKey"`
	Status            string `gorm:"type:varchar(100)"`
	Result            string `gorm:"type:varchar(100)"`
	RefName           string `gorm:"type:varchar(255)"`
	RepoId            string `gorm:"type:varchar(255)"`
	CommitSha         string `gorm:"type:varchar(255)"`
	WebUrl            string `gorm:"type:varchar(255)"`
	DurationInSeconds uint64

	BitbucketCreatedOn  *time.Time
	BitbucketCompleteOn *time.Time

	common.NoPKModel
}

func (BitbucketPipeline) TableName added in v0.14.0

func (BitbucketPipeline) 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 BitbucketPrCommit added in v0.15.0

type BitbucketPrCommit struct {
	ConnectionId  uint64 `gorm:"primaryKey"`
	CommitSha     string `gorm:"primaryKey;type:varchar(40)"`
	PullRequestId int    `gorm:"primaryKey;autoIncrement:false"`
	common.NoPKModel
}

func (BitbucketPrCommit) TableName added in v0.15.0

func (BitbucketPrCommit) 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 {
	IssueStatusTODO       []string `mapstructure:"issueStatusTodo" json:"issueStatusTodo"`
	IssueStatusINPROGRESS []string `mapstructure:"issueStatusInProgress" json:"issueStatusInProgress"`
	IssueStatusDONE       []string `mapstructure:"issueStatusDone" json:"issueStatusDone"`
	IssueStatusOTHER      []string `mapstructure:"issueStatusOther" json:"issueStatusOther"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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