Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ReleaseEntry) predicate.ReleaseEntry
- func HasArtifact() predicate.ReleaseEntry
- func HasArtifactWith(preds ...predicate.Artifact) predicate.ReleaseEntry
- func HasCodeScan() predicate.ReleaseEntry
- func HasCodeScanWith(preds ...predicate.CodeScan) predicate.ReleaseEntry
- func HasRelease() predicate.ReleaseEntry
- func HasReleaseWith(preds ...predicate.Release) predicate.ReleaseEntry
- func HasTestRun() predicate.ReleaseEntry
- func HasTestRunWith(preds ...predicate.TestRun) predicate.ReleaseEntry
- func ID(id int) predicate.ReleaseEntry
- func IDEQ(id int) predicate.ReleaseEntry
- func IDGT(id int) predicate.ReleaseEntry
- func IDGTE(id int) predicate.ReleaseEntry
- func IDIn(ids ...int) predicate.ReleaseEntry
- func IDLT(id int) predicate.ReleaseEntry
- func IDLTE(id int) predicate.ReleaseEntry
- func IDNEQ(id int) predicate.ReleaseEntry
- func IDNotIn(ids ...int) predicate.ReleaseEntry
- func Not(p predicate.ReleaseEntry) predicate.ReleaseEntry
- func Or(predicates ...predicate.ReleaseEntry) predicate.ReleaseEntry
- func Time(v time.Time) predicate.ReleaseEntry
- func TimeEQ(v time.Time) predicate.ReleaseEntry
- func TimeGT(v time.Time) predicate.ReleaseEntry
- func TimeGTE(v time.Time) predicate.ReleaseEntry
- func TimeIn(vs ...time.Time) predicate.ReleaseEntry
- func TimeLT(v time.Time) predicate.ReleaseEntry
- func TimeLTE(v time.Time) predicate.ReleaseEntry
- func TimeNEQ(v time.Time) predicate.ReleaseEntry
- func TimeNotIn(vs ...time.Time) predicate.ReleaseEntry
- func TypeEQ(v Type) predicate.ReleaseEntry
- func TypeIn(vs ...Type) predicate.ReleaseEntry
- func TypeNEQ(v Type) predicate.ReleaseEntry
- func TypeNotIn(vs ...Type) predicate.ReleaseEntry
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the releaseentry type in the database. Label = "release_entry" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // EdgeArtifact holds the string denoting the artifact edge name in mutations. EdgeArtifact = "artifact" // EdgeCodeScan holds the string denoting the code_scan edge name in mutations. EdgeCodeScan = "code_scan" // EdgeTestRun holds the string denoting the test_run edge name in mutations. EdgeTestRun = "test_run" // EdgeRelease holds the string denoting the release edge name in mutations. EdgeRelease = "release" // Table holds the table name of the releaseentry in the database. Table = "release_entry" // ArtifactTable is the table that holds the artifact relation/edge. ArtifactTable = "artifact" // ArtifactInverseTable is the table name for the Artifact entity. // It exists in this package in order to avoid circular dependency with the "artifact" package. ArtifactInverseTable = "artifact" // ArtifactColumn is the table column denoting the artifact relation/edge. ArtifactColumn = "release_entry_artifact" // CodeScanTable is the table that holds the code_scan relation/edge. CodeScanTable = "code_scan" // CodeScanInverseTable is the table name for the CodeScan entity. // It exists in this package in order to avoid circular dependency with the "codescan" package. CodeScanInverseTable = "code_scan" // CodeScanColumn is the table column denoting the code_scan relation/edge. CodeScanColumn = "release_entry_code_scan" // TestRunTable is the table that holds the test_run relation/edge. TestRunTable = "test_run" // TestRunInverseTable is the table name for the TestRun entity. // It exists in this package in order to avoid circular dependency with the "testrun" package. TestRunInverseTable = "test_run" // TestRunColumn is the table column denoting the test_run relation/edge. TestRunColumn = "release_entry_test_run" // ReleaseTable is the table that holds the release relation/edge. ReleaseTable = "release_entry" // ReleaseInverseTable is the table name for the Release entity. // It exists in this package in order to avoid circular dependency with the "release" package. ReleaseInverseTable = "release" // ReleaseColumn is the table column denoting the release relation/edge. ReleaseColumn = "release_entry_release" )
Variables ¶
var Columns = []string{ FieldID, FieldType, FieldTime, }
Columns holds all SQL columns for releaseentry fields.
var ( // DefaultTime holds the default value on creation for the "time" field. DefaultTime func() time.Time )
var ForeignKeys = []string{
"release_entry_release",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "release_entry" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.ReleaseEntry) predicate.ReleaseEntry
And groups predicates with the AND operator between them.
func HasArtifact ¶
func HasArtifact() predicate.ReleaseEntry
HasArtifact applies the HasEdge predicate on the "artifact" edge.
func HasArtifactWith ¶
func HasArtifactWith(preds ...predicate.Artifact) predicate.ReleaseEntry
HasArtifactWith applies the HasEdge predicate on the "artifact" edge with a given conditions (other predicates).
func HasCodeScan ¶
func HasCodeScan() predicate.ReleaseEntry
HasCodeScan applies the HasEdge predicate on the "code_scan" edge.
func HasCodeScanWith ¶
func HasCodeScanWith(preds ...predicate.CodeScan) predicate.ReleaseEntry
HasCodeScanWith applies the HasEdge predicate on the "code_scan" edge with a given conditions (other predicates).
func HasRelease ¶
func HasRelease() predicate.ReleaseEntry
HasRelease applies the HasEdge predicate on the "release" edge.
func HasReleaseWith ¶
func HasReleaseWith(preds ...predicate.Release) predicate.ReleaseEntry
HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).
func HasTestRun ¶
func HasTestRun() predicate.ReleaseEntry
HasTestRun applies the HasEdge predicate on the "test_run" edge.
func HasTestRunWith ¶
func HasTestRunWith(preds ...predicate.TestRun) predicate.ReleaseEntry
HasTestRunWith applies the HasEdge predicate on the "test_run" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.ReleaseEntry
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ReleaseEntry
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ReleaseEntry
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ReleaseEntry
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ReleaseEntry
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ReleaseEntry) predicate.ReleaseEntry
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ReleaseEntry) predicate.ReleaseEntry
Or groups predicates with the OR operator between them.
func Time ¶
func Time(v time.Time) predicate.ReleaseEntry
Time applies equality check predicate on the "time" field. It's identical to TimeEQ.
func TimeEQ ¶
func TimeEQ(v time.Time) predicate.ReleaseEntry
TimeEQ applies the EQ predicate on the "time" field.
func TimeGT ¶
func TimeGT(v time.Time) predicate.ReleaseEntry
TimeGT applies the GT predicate on the "time" field.
func TimeGTE ¶
func TimeGTE(v time.Time) predicate.ReleaseEntry
TimeGTE applies the GTE predicate on the "time" field.
func TimeIn ¶
func TimeIn(vs ...time.Time) predicate.ReleaseEntry
TimeIn applies the In predicate on the "time" field.
func TimeLT ¶
func TimeLT(v time.Time) predicate.ReleaseEntry
TimeLT applies the LT predicate on the "time" field.
func TimeLTE ¶
func TimeLTE(v time.Time) predicate.ReleaseEntry
TimeLTE applies the LTE predicate on the "time" field.
func TimeNEQ ¶
func TimeNEQ(v time.Time) predicate.ReleaseEntry
TimeNEQ applies the NEQ predicate on the "time" field.
func TimeNotIn ¶
func TimeNotIn(vs ...time.Time) predicate.ReleaseEntry
TimeNotIn applies the NotIn predicate on the "time" field.
func TypeEQ ¶
func TypeEQ(v Type) predicate.ReleaseEntry
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.ReleaseEntry
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.ReleaseEntry
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.ReleaseEntry
TypeNotIn applies the NotIn predicate on the "type" field.
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 Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeArtifact Type = "artifact" TypeDeploy Type = "deploy" TypeCodeScan Type = "code_scan" TypeTestRun Type = "test_run" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.