Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiUserResponse ¶
type ClifeAccessToken ¶
type ClifeAccessToken helper.AccessToken
func (ClifeAccessToken) SetupAuthentication ¶
func (gat ClifeAccessToken) SetupAuthentication(req *http.Request) errors.Error
SetupAuthentication sets up the HTTP Request Authentication
type ClifeAccount ¶
type ClifeAccount struct { ConnectionId uint64 `gorm:"primaryKey"` Id int `json:"id" gorm:"primaryKey;autoIncrement:false"` Login string `json:"login" gorm:"type:varchar(255)"` Name string `json:"name" gorm:"type:varchar(255)"` AvatarUrl string `json:"avatar_url" gorm:"type:varchar(255)"` EventsUrl string `json:"events_url" gorm:"type:varchar(255)"` FollowersUrl string `json:"followers_url" gorm:"type:varchar(255)"` FollowingUrl string `json:"following_url" gorm:"type:varchar(255)"` GistsUrl string `json:"gists_url" gorm:"type:varchar(255)"` HtmlUrl string `json:"html_url" gorm:"type:varchar(255)"` OrganizationsUrl string `json:"organizations_url" gorm:"type:varchar(255)"` ReceivedEventsUrl string `json:"received_events_url" gorm:"type:varchar(255)"` Remark string `json:"remark" gorm:"type:varchar(255)"` ReposUrl string `json:"repos_url" gorm:"type:varchar(255)"` StarredUrl string `json:"starred_url" gorm:"type:varchar(255)"` SubscriptionsUrl string `json:"subscriptions_url" gorm:"type:varchar(255)"` Url string `json:"url" gorm:"type:varchar(255)"` Type string `json:"type" gorm:"type:varchar(255)"` common.NoPKModel }
func (ClifeAccount) TableName ¶
func (ClifeAccount) TableName() string
type ClifeApiParams ¶
type ClifeConn ¶
type ClifeConn struct { helper.RestConnection `mapstructure:",squash"` ClifeAccessToken `mapstructure:",squash"` }
GiteeConn holds the essential information to connect to the Gitee API
type ClifeConnection ¶
type ClifeConnection struct { helper.BaseConnection `mapstructure:",squash"` ClifeConn `mapstructure:",squash"` }
GiteeConnection holds GiteeConn plus ID/Name for database storage
func (ClifeConnection) TableName ¶
func (ClifeConnection) TableName() string
type ClifeRepo ¶
type ClifeRepo struct { ConnectionId uint64 `gorm:"primaryKey"` GiteeId int `gorm:"primaryKey"` Name string `gorm:"type:varchar(255)"` HTMLUrl string `gorm:"type:varchar(255)"` Description string OwnerId int `json:"ownerId"` OwnerLogin string `json:"ownerLogin" gorm:"type:varchar(255)"` Language string `json:"language" gorm:"type:varchar(255)"` ParentGiteeId int `json:"parentId"` ParentHTMLUrl string `json:"parentHtmlUrl"` CreatedDate time.Time `json:"createdDate"` UpdatedDate *time.Time `json:"updatedDate"` common.NoPKModel }
func (ClifeRepo) ScopeParams ¶
func (r ClifeRepo) ScopeParams() interface{}
type ClifeScopeConfig ¶
type ClifeScopeConfig struct { PrType string `mapstructure:"prType" env:"GITEE_PR_TYPE" json:"prType"` PrComponent string `mapstructure:"prComponent" env:"GITEE_PR_COMPONENT" json:"prComponent"` PrBodyClosePattern string `mapstructure:"prBodyClosePattern" json:"prBodyClosePattern"` IssueSeverity string `mapstructure:"issueSeverity" env:"GITEE_ISSUE_SEVERITY" json:"issueSeverity"` IssuePriority string `mapstructure:"issuePriority" env:"GITEE_ISSUE_PRIORITY" json:"issuePriority"` IssueComponent string `mapstructure:"issueComponent" env:"GITEE_ISSUE_COMPONENT" json:"issueComponent"` IssueTypeBug string `mapstructure:"issueTypeBug" env:"GITEE_ISSUE_TYPE_BUG" json:"issueTypeBug"` IssueTypeIncident string `mapstructure:"issueTypeIncident" env:"GITEE_ISSUE_TYPE_INCIDENT" json:"issueTypeIncident"` IssueTypeRequirement string `mapstructure:"issueTypeRequirement" env:"GITEE_ISSUE_TYPE_REQUIREMENT" json:"issueTypeRequirement"` DeploymentPattern string `mapstructure:"deploymentPattern" json:"deploymentPattern"` }
Click to show internal directories.
Click to hide internal directories.