Documentation ¶
Index ¶
- func All() []interface{}
- type Analysis
- type Application
- type ApplicationTag
- type Bucket
- type BucketOwner
- type BusinessService
- type Dependency
- type DependencyCyclicError
- type Fact
- type File
- type Identity
- type Import
- type ImportSummary
- type ImportTag
- type Incident
- type Issue
- type JSON
- type JobFunction
- type MigrationWave
- type Model
- type Proxy
- type Review
- type Rule
- type RuleSet
- type Setting
- type Stakeholder
- type StakeholderGroup
- type TTL
- type Tag
- type TagCategory
- type Task
- type TaskGroup
- type TaskReport
- type TechDependency
- type Ticket
- type Tracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct { Model BucketOwner Name string `gorm:"index;unique;not null"` Description string Review *Review `gorm:"constraint:OnDelete:CASCADE"` Repository JSON `gorm:"type:json"` Binary string Facts []Fact `gorm:"constraint:OnDelete:CASCADE"` Comments string Tasks []Task `gorm:"constraint:OnDelete:CASCADE"` Tags []Tag `gorm:"many2many:ApplicationTags"` Identities []Identity `gorm:"many2many:ApplicationIdentity;constraint:OnDelete:CASCADE"` BusinessServiceID *uint `gorm:"index"` BusinessService *BusinessService OwnerID *uint `gorm:"index"` Owner *Stakeholder `gorm:"foreignKey:OwnerID"` Contributors []Stakeholder `gorm:"many2many:ApplicationContributors;constraint:OnDelete:CASCADE"` Analyses []Analysis `gorm:"constraint:OnDelete:CASCADE"` MigrationWaveID *uint `gorm:"index"` MigrationWave *MigrationWave Ticket *Ticket `gorm:"constraint:OnDelete:CASCADE"` }
type ApplicationTag ¶
type ApplicationTag struct { ApplicationID uint `gorm:"primaryKey"` TagID uint `gorm:"primaryKey"` Source string `gorm:"primaryKey;not null"` Application Application `gorm:"constraint:OnDelete:CASCADE"` Tag Tag `gorm:"constraint:OnDelete:CASCADE"` }
ApplicationTag represents a row in the join table for the many-to-many relationship between Applications and Tags.
func (ApplicationTag) TableName ¶
func (ApplicationTag) TableName() string
TableName must return "ApplicationTags" to ensure compatibility with the autogenerated join table name.
type BucketOwner ¶
type BucketOwner = model.BucketOwner
type BusinessService ¶
type BusinessService struct { Model Name string `gorm:"index;unique;not null"` Description string Applications []Application `gorm:"constraint:OnDelete:SET NULL"` StakeholderID *uint `gorm:"index"` Stakeholder *Stakeholder }
type Dependency ¶
type Dependency = model.Dependency
type DependencyCyclicError ¶
type DependencyCyclicError = model.DependencyCyclicError
type ImportSummary ¶
type ImportSummary = model.ImportSummary
type JobFunction ¶
type JobFunction struct { Model UUID *string `gorm:"uniqueIndex"` Username string Name string `gorm:"index;unique;not null"` Stakeholders []Stakeholder `gorm:"constraint:OnDelete:SET NULL"` }
type MigrationWave ¶
type MigrationWave struct { Model Name string `gorm:"uniqueIndex:MigrationWaveA"` StartDate time.Time `gorm:"uniqueIndex:MigrationWaveA"` EndDate time.Time `gorm:"uniqueIndex:MigrationWaveA"` Applications []Application `gorm:"constraint:OnDelete:SET NULL"` Stakeholders []Stakeholder `gorm:"many2many:MigrationWaveStakeholders;constraint:OnDelete:CASCADE"` StakeholderGroups []StakeholderGroup `gorm:"many2many:MigrationWaveStakeholderGroups;constraint:OnDelete:CASCADE"` }
type Rule ¶
type Rule struct { Model Name string Description string Labels JSON `gorm:"type:json"` RuleSetID uint `gorm:"uniqueIndex:RuleA;not null"` RuleSet *RuleSet FileID *uint `gorm:"uniqueIndex:RuleA" ref:"file"` File *File }
Rule - Analysis rule.
type RuleSet ¶
type RuleSet struct { Model UUID *string `gorm:"uniqueIndex"` Kind string Name string `gorm:"uniqueIndex;not null"` Description string Custom bool Repository JSON `gorm:"type:json"` ImageID uint `gorm:"index" ref:"file"` Image *File IdentityID *uint `gorm:"index"` Identity *Identity Rules []Rule `gorm:"constraint:OnDelete:CASCADE"` DependsOn []RuleSet `gorm:"many2many:RuleSetDependencies;constraint:OnDelete:CASCADE"` }
RuleSet - Analysis ruleset.
type Stakeholder ¶
type Stakeholder struct { Model Name string `gorm:"not null;"` Email string `gorm:"index;unique;not null"` Groups []StakeholderGroup `gorm:"many2many:StakeholderGroupStakeholder;constraint:OnDelete:CASCADE"` BusinessServices []BusinessService `gorm:"constraint:OnDelete:SET NULL"` JobFunctionID *uint `gorm:"index"` JobFunction *JobFunction Owns []Application `gorm:"foreignKey:OwnerID;constraint:OnDelete:SET NULL"` Contributes []Application `gorm:"many2many:ApplicationContributors;constraint:OnDelete:CASCADE"` MigrationWaves []MigrationWave `gorm:"many2many:MigrationWaveStakeholders;constraint:OnDelete:CASCADE"` }
type StakeholderGroup ¶
type StakeholderGroup struct { Model Name string `gorm:"index;unique;not null"` Username string Description string Stakeholders []Stakeholder `gorm:"many2many:StakeholderGroupStakeholder;constraint:OnDelete:CASCADE"` MigrationWaves []MigrationWave `gorm:"many2many:MigrationWaveStakeholderGroups;constraint:OnDelete:CASCADE"` }
type TagCategory ¶
type TaskReport ¶
type TaskReport = model.TaskReport
type TechDependency ¶
type TechDependency = model.TechDependency
Click to show internal directories.
Click to hide internal directories.