codeissue

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for codeissue fields.

View Source
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 And

func And(predicates ...predicate.CodeIssue) predicate.CodeIssue

And groups predicates with the AND operator between them.

func HasScan

func HasScan() predicate.CodeIssue

HasScan applies the HasEdge predicate on the "scan" edge.

func HasScanWith

func HasScanWith(preds ...predicate.CodeScan) predicate.CodeIssue

HasScanWith applies the HasEdge predicate on the "scan" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.CodeIssue

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CodeIssue

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CodeIssue

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CodeIssue

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.CodeIssue

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CodeIssue

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CodeIssue

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CodeIssue

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.CodeIssue

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.CodeIssue

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.CodeIssue

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.CodeIssue

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.CodeIssue

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.CodeIssue

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.CodeIssue

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.CodeIssue

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.CodeIssue

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.CodeIssue

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.CodeIssue

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.CodeIssue

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.CodeIssue

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.CodeIssue

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.CodeIssue

MessageNotIn applies the NotIn predicate on the "message" field.

func MetadataIsNil

func MetadataIsNil() predicate.CodeIssue

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.CodeIssue

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CodeIssue) predicate.CodeIssue

Or groups predicates with the OR operator between them.

func RuleID

func RuleID(v string) predicate.CodeIssue

RuleID applies equality check predicate on the "rule_id" field. It's identical to RuleIDEQ.

func RuleIDContains

func RuleIDContains(v string) predicate.CodeIssue

RuleIDContains applies the Contains predicate on the "rule_id" field.

func RuleIDContainsFold

func RuleIDContainsFold(v string) predicate.CodeIssue

RuleIDContainsFold applies the ContainsFold predicate on the "rule_id" field.

func RuleIDEQ

func RuleIDEQ(v string) predicate.CodeIssue

RuleIDEQ applies the EQ predicate on the "rule_id" field.

func RuleIDEqualFold

func RuleIDEqualFold(v string) predicate.CodeIssue

RuleIDEqualFold applies the EqualFold predicate on the "rule_id" field.

func RuleIDGT

func RuleIDGT(v string) predicate.CodeIssue

RuleIDGT applies the GT predicate on the "rule_id" field.

func RuleIDGTE

func RuleIDGTE(v string) predicate.CodeIssue

RuleIDGTE applies the GTE predicate on the "rule_id" field.

func RuleIDHasPrefix

func RuleIDHasPrefix(v string) predicate.CodeIssue

RuleIDHasPrefix applies the HasPrefix predicate on the "rule_id" field.

func RuleIDHasSuffix

func RuleIDHasSuffix(v string) predicate.CodeIssue

RuleIDHasSuffix applies the HasSuffix predicate on the "rule_id" field.

func RuleIDIn

func RuleIDIn(vs ...string) predicate.CodeIssue

RuleIDIn applies the In predicate on the "rule_id" field.

func RuleIDLT

func RuleIDLT(v string) predicate.CodeIssue

RuleIDLT applies the LT predicate on the "rule_id" field.

func RuleIDLTE

func RuleIDLTE(v string) predicate.CodeIssue

RuleIDLTE applies the LTE predicate on the "rule_id" field.

func RuleIDNEQ

func RuleIDNEQ(v string) predicate.CodeIssue

RuleIDNEQ applies the NEQ predicate on the "rule_id" field.

func RuleIDNotIn

func RuleIDNotIn(vs ...string) predicate.CodeIssue

RuleIDNotIn applies the NotIn predicate on the "rule_id" field.

func SeverityEQ

func SeverityEQ(v Severity) predicate.CodeIssue

SeverityEQ applies the EQ predicate on the "severity" field.

func SeverityIn

func SeverityIn(vs ...Severity) predicate.CodeIssue

SeverityIn applies the In predicate on the "severity" field.

func SeverityNEQ

func SeverityNEQ(v Severity) predicate.CodeIssue

SeverityNEQ applies the NEQ predicate on the "severity" field.

func SeverityNotIn

func SeverityNotIn(vs ...Severity) predicate.CodeIssue

SeverityNotIn applies the NotIn predicate on the "severity" field.

func SeverityValidator

func SeverityValidator(s Severity) error

SeverityValidator is a validator for the "severity" field enum values. It is called by the builders before save.

func TypeEQ

func TypeEQ(v Type) predicate.CodeIssue

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.CodeIssue

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.CodeIssue

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.CodeIssue

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

func (s Severity) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Severity) String

func (s Severity) String() string

func (*Severity) UnmarshalGQL

func (s *Severity) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeStyle    Type = "style"
	TypeSecurity Type = "security"
	TypeBug      Type = "bug"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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