Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CodeIssue) predicate.CodeIssue
- func HasScan() predicate.CodeIssue
- func HasScanWith(preds ...predicate.CodeScan) predicate.CodeIssue
- func ID(id int) predicate.CodeIssue
- func IDEQ(id int) predicate.CodeIssue
- func IDGT(id int) predicate.CodeIssue
- func IDGTE(id int) predicate.CodeIssue
- func IDIn(ids ...int) predicate.CodeIssue
- func IDLT(id int) predicate.CodeIssue
- func IDLTE(id int) predicate.CodeIssue
- func IDNEQ(id int) predicate.CodeIssue
- func IDNotIn(ids ...int) predicate.CodeIssue
- func Message(v string) predicate.CodeIssue
- func MessageContains(v string) predicate.CodeIssue
- func MessageContainsFold(v string) predicate.CodeIssue
- func MessageEQ(v string) predicate.CodeIssue
- func MessageEqualFold(v string) predicate.CodeIssue
- func MessageGT(v string) predicate.CodeIssue
- func MessageGTE(v string) predicate.CodeIssue
- func MessageHasPrefix(v string) predicate.CodeIssue
- func MessageHasSuffix(v string) predicate.CodeIssue
- func MessageIn(vs ...string) predicate.CodeIssue
- func MessageLT(v string) predicate.CodeIssue
- func MessageLTE(v string) predicate.CodeIssue
- func MessageNEQ(v string) predicate.CodeIssue
- func MessageNotIn(vs ...string) predicate.CodeIssue
- func MetadataIsNil() predicate.CodeIssue
- func MetadataNotNil() predicate.CodeIssue
- func Not(p predicate.CodeIssue) predicate.CodeIssue
- func Or(predicates ...predicate.CodeIssue) predicate.CodeIssue
- func RuleID(v string) predicate.CodeIssue
- func RuleIDContains(v string) predicate.CodeIssue
- func RuleIDContainsFold(v string) predicate.CodeIssue
- func RuleIDEQ(v string) predicate.CodeIssue
- func RuleIDEqualFold(v string) predicate.CodeIssue
- func RuleIDGT(v string) predicate.CodeIssue
- func RuleIDGTE(v string) predicate.CodeIssue
- func RuleIDHasPrefix(v string) predicate.CodeIssue
- func RuleIDHasSuffix(v string) predicate.CodeIssue
- func RuleIDIn(vs ...string) predicate.CodeIssue
- func RuleIDLT(v string) predicate.CodeIssue
- func RuleIDLTE(v string) predicate.CodeIssue
- func RuleIDNEQ(v string) predicate.CodeIssue
- func RuleIDNotIn(vs ...string) predicate.CodeIssue
- func SeverityEQ(v Severity) predicate.CodeIssue
- func SeverityIn(vs ...Severity) predicate.CodeIssue
- func SeverityNEQ(v Severity) predicate.CodeIssue
- func SeverityNotIn(vs ...Severity) predicate.CodeIssue
- func SeverityValidator(s Severity) error
- func TypeEQ(v Type) predicate.CodeIssue
- func TypeIn(vs ...Type) predicate.CodeIssue
- func TypeNEQ(v Type) predicate.CodeIssue
- func TypeNotIn(vs ...Type) predicate.CodeIssue
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Severity
- type Type
Constants ¶
const ( // Label holds the string label denoting the codeissue type in the database. Label = "code_issue" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRuleID holds the string denoting the rule_id field in the database. FieldRuleID = "rule_id" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldSeverity holds the string denoting the severity field in the database. FieldSeverity = "severity" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeScan holds the string denoting the scan edge name in mutations. EdgeScan = "scan" // Table holds the table name of the codeissue in the database. Table = "code_issue" // ScanTable is the table that holds the scan relation/edge. ScanTable = "code_issue" // ScanInverseTable is the table name for the CodeScan entity. // It exists in this package in order to avoid circular dependency with the "codescan" package. ScanInverseTable = "code_scan" // ScanColumn is the table column denoting the scan relation/edge. ScanColumn = "code_issue_scan" )
Variables ¶
var ( // RuleIDValidator is a validator for the "rule_id" field. It is called by the builders before save. RuleIDValidator func(string) error // MessageValidator is a validator for the "message" field. It is called by the builders before save. MessageValidator func(string) error )
var Columns = []string{ FieldID, FieldRuleID, FieldMessage, FieldSeverity, FieldType, FieldMetadata, }
Columns holds all SQL columns for codeissue fields.
var ForeignKeys = []string{
"code_issue_scan",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "code_issue" table and are not defined as standalone fields in the schema.
Functions ¶
func HasScanWith ¶
HasScanWith applies the HasEdge predicate on the "scan" edge with a given conditions (other predicates).
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func RuleID ¶
RuleID applies equality check predicate on the "rule_id" field. It's identical to RuleIDEQ.
func RuleIDContains ¶
RuleIDContains applies the Contains predicate on the "rule_id" field.
func RuleIDContainsFold ¶
RuleIDContainsFold applies the ContainsFold predicate on the "rule_id" field.
func RuleIDEqualFold ¶
RuleIDEqualFold applies the EqualFold predicate on the "rule_id" field.
func RuleIDHasPrefix ¶
RuleIDHasPrefix applies the HasPrefix predicate on the "rule_id" field.
func RuleIDHasSuffix ¶
RuleIDHasSuffix applies the HasSuffix predicate on the "rule_id" field.
func RuleIDNotIn ¶
RuleIDNotIn applies the NotIn predicate on the "rule_id" field.
func SeverityEQ ¶
SeverityEQ applies the EQ predicate on the "severity" field.
func SeverityIn ¶
SeverityIn applies the In predicate on the "severity" field.
func SeverityNEQ ¶
SeverityNEQ applies the NEQ predicate on the "severity" field.
func SeverityNotIn ¶
SeverityNotIn applies the NotIn predicate on the "severity" field.
func SeverityValidator ¶
SeverityValidator is a validator for the "severity" field enum values. It is called by the builders before save.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Severity ¶
type Severity string
Severity defines the type for the "severity" enum field.
const ( SeverityLow Severity = "low" SeverityMedium Severity = "medium" SeverityHigh Severity = "high" )
Severity values.
func (Severity) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Severity) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type Type ¶
type Type string
Type defines the type for the "type" enum field.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.