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 Link
- type Map
- 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 TaskError
- type TaskGroup
- type TaskReport
- type TechDependency
- type Ticket
- type Tracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Analysis ¶
type Analysis struct { Model Effort int Issues []Issue `gorm:"constraint:OnDelete:CASCADE"` Dependencies []TechDependency `gorm:"constraint:OnDelete:CASCADE"` ApplicationID uint `gorm:"index;not null"` Application *Application }
Analysis report.
type Application ¶
type Application = model.Application
type ApplicationTag ¶
type ApplicationTag = model.ApplicationTag
type BucketOwner ¶
type BucketOwner = model.BucketOwner
type BusinessService ¶
type BusinessService = model.BusinessService
type Dependency ¶
type Dependency = model.Dependency
type DependencyCyclicError ¶
type DependencyCyclicError = model.DependencyCyclicError
type ImportSummary ¶
type ImportSummary = model.ImportSummary
type Incident ¶
type Incident struct { Model File string `gorm:"index;not null"` Line int Message string CodeSnip string Facts JSON `gorm:"type:json"` IssueID uint `gorm:"index;not null"` Issue *Issue }
Incident report an issue incident.
type Issue ¶
type Issue struct { Model RuleSet string `gorm:"uniqueIndex:issueA;not null"` Rule string `gorm:"uniqueIndex:issueA;not null"` Name string `gorm:"index"` Description string Category string `gorm:"index;not null"` Incidents []Incident `gorm:"foreignKey:IssueID;constraint:OnDelete:CASCADE"` Links JSON `gorm:"type:json"` Facts JSON `gorm:"type:json"` Labels JSON `gorm:"type:json"` Effort int `gorm:"index;not null"` AnalysisID uint `gorm:"index;uniqueIndex:issueA;not null"` Analysis *Analysis }
Issue report issue (violation).
type JobFunction ¶
type JobFunction = model.JobFunction
type MigrationWave ¶
type MigrationWave = model.MigrationWave
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 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 = model.Stakeholder
type StakeholderGroup ¶
type StakeholderGroup = model.StakeholderGroup
type TTL ¶
type TTL struct { Created int `json:"created,omitempty"` Pending int `json:"pending,omitempty"` Postponed int `json:"postponed,omitempty"` Running int `json:"running,omitempty"` Succeeded int `json:"succeeded,omitempty"` Failed int `json:"failed,omitempty"` }
TTL time-to-live.
type TagCategory ¶
type TagCategory = model.TagCategory
type Task ¶
type Task struct { Model BucketOwner Name string `gorm:"index"` Addon string `gorm:"index"` Locator string `gorm:"index"` Priority int Image string Variant string Policy string TTL JSON Data JSON Started *time.Time Terminated *time.Time State string `gorm:"index"` Errors JSON Pod string `gorm:"index"` Retries int Canceled bool Report *TaskReport `gorm:"constraint:OnDelete:CASCADE"` ApplicationID *uint Application *Application TaskGroupID *uint `gorm:"<-:create"` TaskGroup *TaskGroup }
type TaskGroup ¶
type TaskReport ¶
type TechDependency ¶
type TechDependency struct { Model Provider string `gorm:"uniqueIndex:depA"` Name string `gorm:"uniqueIndex:depA"` Version string `gorm:"uniqueIndex:depA"` SHA string `gorm:"uniqueIndex:depA"` Indirect bool Labels JSON `gorm:"type:json"` AnalysisID uint `gorm:"index;uniqueIndex:depA;not null"` Analysis *Analysis }
TechDependency report dependency.
Click to show internal directories.
Click to hide internal directories.