gitlab.go 661 B

1234567891011121314151617181920212223
  1. package integrations
  2. import "gorm.io/gorm"
  3. // GitlabIntegration takes care of Gitlab related auth mechanisms and data
  4. type GitlabIntegration struct {
  5. gorm.Model
  6. // The id of the user that linked this auth mechanism
  7. UserID uint `json:"user_id"`
  8. // Project ID of the project that this gitlab integration is linked with
  9. ProjectID uint `json:"project_id"`
  10. // URL of the Gitlab instance to talk to
  11. ServerURL string `json:"server_url"`
  12. // Personal access token from Gitlab for a sudo user
  13. SudoAccessToken string `json:"sudo_access_token,omitempty"`
  14. // Username of the sudo admin account holder
  15. SudoUsername string `json:"sudo_username,omitempty"`
  16. }