model

package
v0.3.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []interface{}

All builds all models. Models are enumerated such that each are listed after all the other models on which they may depend.

Types

type Analysis

type Analysis = model.Analysis

type Application

type Application = model.Application

type ApplicationTag

type ApplicationTag = model.ApplicationTag

type Bucket

type Bucket = model.Bucket

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 Fact

type Fact = model.Fact

type File

type File = model.File

type Identity

type Identity = model.Identity

type Import

type Import = model.Import

type ImportSummary

type ImportSummary = model.ImportSummary

type ImportTag

type ImportTag = model.ImportTag

type Incident

type Incident = model.Incident

type Issue

type Issue = model.Issue

type JSON

type JSON = []byte

JSON field (data) type.

type JobFunction

type JobFunction = model.JobFunction

type MigrationWave

type MigrationWave = model.MigrationWave

type Model

type Model = model.Model

type Proxy

type Proxy = model.Proxy

type Review

type Review = model.Review

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
	Repository  JSON  `gorm:"type:json"`
	IdentityID  *uint `gorm:"index"`
	Identity    *Identity
	Rules       []Rule    `gorm:"constraint:OnDelete:CASCADE"`
	DependsOn   []RuleSet `gorm:"many2many:RuleSetDependencies;constraint:OnDelete:CASCADE"`
}

RuleSet - Analysis ruleset.

func (*RuleSet) BeforeUpdate

func (r *RuleSet) BeforeUpdate(db *gorm.DB) (err error)

BeforeUpdate hook to avoid cyclic dependencies.

func (*RuleSet) Builtin

func (r *RuleSet) Builtin() bool

type Setting

type Setting = model.Setting

type Stakeholder

type Stakeholder = model.Stakeholder

type StakeholderGroup

type StakeholderGroup = model.StakeholderGroup

type TTL

type TTL = model.TTL

type Tag

type Tag = model.Tag

type TagCategory

type TagCategory = model.TagCategory

type Target

type Target struct {
	Model
	UUID        *string `gorm:"uniqueIndex"`
	Name        string  `gorm:"uniqueIndex;not null"`
	Description string
	Choice      bool
	Labels      JSON `gorm:"type:json"`
	ImageID     uint `gorm:"index" ref:"file"`
	Image       *File
	RuleSetID   *uint `gorm:"index"`
	RuleSet     *RuleSet
}

Target - analysis rule selector.

func (*Target) Builtin

func (r *Target) Builtin() bool

type Task

type Task = model.Task

type TaskGroup

type TaskGroup = model.TaskGroup

type TaskReport

type TaskReport = model.TaskReport

type TechDependency

type TechDependency = model.TechDependency

type Ticket

type Ticket = model.Ticket

type Tracker

type Tracker = model.Tracker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL