archived

package
v0.14.3-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

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 BaseConnection added in v0.14.0

type BaseConnection struct {
	Name string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	archived.Model
}

type BasicAuth added in v0.14.0

type BasicAuth struct {
	Username string `mapstructure:"username" validate:"required" json:"username"`
	Password string `mapstructure:"password" validate:"required" json:"password" encrypt:"yes"`
}

func (BasicAuth) GetEncodedToken added in v0.14.0

func (ba BasicAuth) GetEncodedToken() string

type BitbucketAccount

type BitbucketAccount struct {
	ConnectionId  uint64 `gorm:"primaryKey"`
	UserName      string `gorm:"type:varchar(255)"`
	AccountId     string `gorm:"primaryKey;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
	archived.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"`
	archived.NoPKModel
}

func (BitbucketCommit) TableName

func (BitbucketCommit) TableName() string

type BitbucketConnection

type BitbucketConnection struct {
	RestConnection `mapstructure:",squash"`
	BasicAuth      `mapstructure:",squash"`
}

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)"`
	Status             string `gorm:"type:varchar(255)"`
	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)"`
	archived.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
	archived.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)"`
	WebUrl            string `gorm:"type:varchar(255)"`
	DurationInSeconds uint64

	BitbucketCreatedOn  *time.Time
	BitbucketCompleteOn *time.Time

	archived.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
	archived.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)"`
	archived.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"`
	archived.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)"`
	archived.NoPKModel
}

func (BitbucketRepoCommit) TableName

func (BitbucketRepoCommit) TableName() string

type RestConnection added in v0.14.0

type RestConnection struct {
	BaseConnection   `mapstructure:",squash"`
	Endpoint         string `mapstructure:"endpoint" validate:"required" json:"endpoint"`
	Proxy            string `mapstructure:"proxy" json:"proxy"`
	RateLimitPerHour int    `comment:"api request rate limit per hour" json:"rateLimit"`
}

type TestConnectionRequest

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

Jump to

Keyboard shortcuts

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