archived

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

type BasicAuth

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

func (BasicAuth) GetEncodedToken

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 BitbucketDeployment

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

func (BitbucketDeployment) TableName

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

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

func (BitbucketPipeline) TableName() string

type BitbucketPipelineStep

type BitbucketPipelineStep struct {
	ConnectionId      uint64 `gorm:"primaryKey"`
	BitbucketId       string `gorm:"primaryKey"`
	PipelineId        string `gorm:"type:varchar(255)"`
	Name              string `gorm:"type:varchar(255)"`
	Trigger           string `gorm:"type:varchar(255)"`
	State             string `gorm:"type:varchar(255)"`
	Result            string `gorm:"type:varchar(255)"`
	MaxTime           int
	StartedOn         *time.Time
	CompletedOn       *time.Time
	DurationInSeconds int
	BuildSecondsUsed  int
	RunNumber         int
	archived.NoPKModel
}

func (BitbucketPipelineStep) TableName

func (BitbucketPipelineStep) TableName() string

type BitbucketPipelineStep20230411

type BitbucketPipelineStep20230411 struct {
	RepoId string `gorm:"type:varchar(255)"`
}

func (BitbucketPipelineStep20230411) TableName

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 BitbucketPrCommit

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

func (BitbucketPrCommit) TableName

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)"`
	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 BitbucketTransformationRule

type BitbucketTransformationRule struct {
	archived.Model
	Name              string            `gorm:"type:varchar(255);index:idx_name_github,unique"`
	DeploymentPattern string            `gorm:"type:varchar(255)"`
	ProductionPattern string            `gorm:"type:varchar(255)"`
	Refdiff           datatypes.JSONMap `format:"json"`

	// a string array, split by `,`.
	IssueStatusTodo       string `gorm:"type:varchar(255)"`
	IssueStatusInProgress string `gorm:"type:varchar(255)"`
	IssueStatusDone       string `gorm:"type:varchar(255)"`
	IssueStatusOther      string `gorm:"type:varchar(255)"`
}

func (BitbucketTransformationRule) TableName

func (BitbucketTransformationRule) TableName() string

type RestConnection

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