gitlab.go 712 B

123456789101112131415161718192021222324
  1. package integrations
  2. import "gorm.io/gorm"
  3. // GitlabIntegration takes care of Gitlab app related data
  4. type GitlabIntegration struct {
  5. gorm.Model
  6. // Project ID of the project that this gitlab integration is linked with
  7. ProjectID uint `json:"project_id"`
  8. // URL of the Gitlab instance to talk to
  9. InstanceURL string `json:"instance_url"`
  10. // ------------------------------------------------------------------
  11. // All fields encrypted before storage.
  12. // ------------------------------------------------------------------
  13. // Gitlab instance-wide app's client ID
  14. AppClientID []byte `json:"app_client_id"`
  15. // Gitlab instance-wide app's client secret
  16. AppClientSecret []byte `json:"app_client_secret"`
  17. }