Documentation
¶
Index ¶
- type Account
- type Catalog
- type CatalogError
- type Category
- type Config
- type JobState
- type Platform
- type Resource
- type ResourceCategory
- type ResourcePlatform
- type ResourceTag
- type ResourceVersion
- type Scope
- type SyncJob
- type Tag
- type User
- type UserBackup
- type UserResourceRating
- type UserScope
- type UserType
- type VersionPlatform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
gorm.Model
Name string `gorm:"uniqueIndex:uix_name_org"`
Org string `gorm:"uniqueIndex:uix_name_org"`
Provider string `gorm:"not null;default:github"`
Type string `gorm:"not null;default:null"`
URL string `gorm:"not null;default:null"`
SSHURL string
Revision string `gorm:"not null;default:null"`
ContextDir string
SHA string
Resources []Resource
Errors []CatalogError
}
type CatalogError ¶
type Platform ¶
type Platform struct {
gorm.Model
Name string `gorm:"not null;unique"`
ResourceVersions []*ResourceVersion `gorm:"many2many:version_platforms;constraint:OnDelete:CASCADE;"`
Resource []*Resource `gorm:"many2many:resource_platforms;constraint:OnDelete:CASCADE;"`
}
type Resource ¶
type Resource struct {
gorm.Model
Name string `gorm:"not null;default:null"`
Kind string `gorm:"not null;default:null"`
Rating float64
Catalog Catalog
Categories []*Category `gorm:"many2many:resource_categories;constraint:OnDelete:CASCADE;"`
CatalogID uint
Platforms []*Platform `gorm:"many2many:resource_platforms;constraint:OnDelete:CASCADE;"`
Versions []ResourceVersion `gorm:"constraint:OnDelete:CASCADE;"`
Tags []*Tag `gorm:"many2many:resource_tags;constraint:OnDelete:CASCADE;"`
}
type ResourceCategory ¶
type ResourcePlatform ¶
type ResourceTag ¶
type ResourceVersion ¶
type ResourceVersion struct {
gorm.Model
Version string `gorm:"not null;default:null"`
Description string
URL string `gorm:"not null;default:null"`
DisplayName string
Deprecated bool `gorm:"default:false"`
MinPipelinesVersion string `gorm:"not null;default:null"`
Resource Resource `gorm:"constraint:OnDelete:CASCADE;"`
ResourceID uint
Platforms []*Platform `gorm:"many2many:version_platforms;constraint:OnDelete:CASCADE;"`
ModifiedAt time.Time
}
type SyncJob ¶
type UserBackup ¶
type UserResourceRating ¶
type VersionPlatform ¶
Click to show internal directories.
Click to hide internal directories.