Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Attestation) predicate.Attestation
- func Bundle(v []byte) predicate.Attestation
- func BundleEQ(v []byte) predicate.Attestation
- func BundleGT(v []byte) predicate.Attestation
- func BundleGTE(v []byte) predicate.Attestation
- func BundleIn(vs ...[]byte) predicate.Attestation
- func BundleLT(v []byte) predicate.Attestation
- func BundleLTE(v []byte) predicate.Attestation
- func BundleNEQ(v []byte) predicate.Attestation
- func BundleNotIn(vs ...[]byte) predicate.Attestation
- func CreatedAt(v time.Time) predicate.Attestation
- func CreatedAtEQ(v time.Time) predicate.Attestation
- func CreatedAtGT(v time.Time) predicate.Attestation
- func CreatedAtGTE(v time.Time) predicate.Attestation
- func CreatedAtIn(vs ...time.Time) predicate.Attestation
- func CreatedAtLT(v time.Time) predicate.Attestation
- func CreatedAtLTE(v time.Time) predicate.Attestation
- func CreatedAtNEQ(v time.Time) predicate.Attestation
- func CreatedAtNotIn(vs ...time.Time) predicate.Attestation
- func HasWorkflowrun() predicate.Attestation
- func HasWorkflowrunWith(preds ...predicate.WorkflowRun) predicate.Attestation
- func ID(id uuid.UUID) predicate.Attestation
- func IDEQ(id uuid.UUID) predicate.Attestation
- func IDGT(id uuid.UUID) predicate.Attestation
- func IDGTE(id uuid.UUID) predicate.Attestation
- func IDIn(ids ...uuid.UUID) predicate.Attestation
- func IDLT(id uuid.UUID) predicate.Attestation
- func IDLTE(id uuid.UUID) predicate.Attestation
- func IDNEQ(id uuid.UUID) predicate.Attestation
- func IDNotIn(ids ...uuid.UUID) predicate.Attestation
- func Not(p predicate.Attestation) predicate.Attestation
- func Or(predicates ...predicate.Attestation) predicate.Attestation
- func ValidColumn(column string) bool
- func WorkflowrunID(v uuid.UUID) predicate.Attestation
- func WorkflowrunIDEQ(v uuid.UUID) predicate.Attestation
- func WorkflowrunIDIn(vs ...uuid.UUID) predicate.Attestation
- func WorkflowrunIDNEQ(v uuid.UUID) predicate.Attestation
- func WorkflowrunIDNotIn(vs ...uuid.UUID) predicate.Attestation
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the attestation type in the database. Label = "attestation" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldBundle holds the string denoting the bundle field in the database. FieldBundle = "bundle" // FieldWorkflowrunID holds the string denoting the workflowrun_id field in the database. FieldWorkflowrunID = "workflowrun_id" // EdgeWorkflowrun holds the string denoting the workflowrun edge name in mutations. EdgeWorkflowrun = "workflowrun" // Table holds the table name of the attestation in the database. Table = "attestations" // WorkflowrunTable is the table that holds the workflowrun relation/edge. WorkflowrunTable = "attestations" // WorkflowrunInverseTable is the table name for the WorkflowRun entity. // It exists in this package in order to avoid circular dependency with the "workflowrun" package. WorkflowrunInverseTable = "workflow_runs" // WorkflowrunColumn is the table column denoting the workflowrun relation/edge. WorkflowrunColumn = "workflowrun_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // BundleValidator is a validator for the "bundle" field. It is called by the builders before save. BundleValidator func([]byte) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldBundle, FieldWorkflowrunID, }
Columns holds all SQL columns for attestation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Attestation) predicate.Attestation
And groups predicates with the AND operator between them.
func Bundle ¶
func Bundle(v []byte) predicate.Attestation
Bundle applies equality check predicate on the "bundle" field. It's identical to BundleEQ.
func BundleEQ ¶
func BundleEQ(v []byte) predicate.Attestation
BundleEQ applies the EQ predicate on the "bundle" field.
func BundleGT ¶
func BundleGT(v []byte) predicate.Attestation
BundleGT applies the GT predicate on the "bundle" field.
func BundleGTE ¶
func BundleGTE(v []byte) predicate.Attestation
BundleGTE applies the GTE predicate on the "bundle" field.
func BundleIn ¶
func BundleIn(vs ...[]byte) predicate.Attestation
BundleIn applies the In predicate on the "bundle" field.
func BundleLT ¶
func BundleLT(v []byte) predicate.Attestation
BundleLT applies the LT predicate on the "bundle" field.
func BundleLTE ¶
func BundleLTE(v []byte) predicate.Attestation
BundleLTE applies the LTE predicate on the "bundle" field.
func BundleNEQ ¶
func BundleNEQ(v []byte) predicate.Attestation
BundleNEQ applies the NEQ predicate on the "bundle" field.
func BundleNotIn ¶
func BundleNotIn(vs ...[]byte) predicate.Attestation
BundleNotIn applies the NotIn predicate on the "bundle" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Attestation
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Attestation
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Attestation
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Attestation
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Attestation
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Attestation
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Attestation
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Attestation
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Attestation
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasWorkflowrun ¶
func HasWorkflowrun() predicate.Attestation
HasWorkflowrun applies the HasEdge predicate on the "workflowrun" edge.
func HasWorkflowrunWith ¶
func HasWorkflowrunWith(preds ...predicate.WorkflowRun) predicate.Attestation
HasWorkflowrunWith applies the HasEdge predicate on the "workflowrun" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Attestation
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Attestation
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Attestation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Attestation
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Attestation
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Attestation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Attestation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Attestation
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Attestation) predicate.Attestation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Attestation) predicate.Attestation
Or groups predicates with the OR operator between them.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkflowrunID ¶
func WorkflowrunID(v uuid.UUID) predicate.Attestation
WorkflowrunID applies equality check predicate on the "workflowrun_id" field. It's identical to WorkflowrunIDEQ.
func WorkflowrunIDEQ ¶
func WorkflowrunIDEQ(v uuid.UUID) predicate.Attestation
WorkflowrunIDEQ applies the EQ predicate on the "workflowrun_id" field.
func WorkflowrunIDIn ¶
func WorkflowrunIDIn(vs ...uuid.UUID) predicate.Attestation
WorkflowrunIDIn applies the In predicate on the "workflowrun_id" field.
func WorkflowrunIDNEQ ¶
func WorkflowrunIDNEQ(v uuid.UUID) predicate.Attestation
WorkflowrunIDNEQ applies the NEQ predicate on the "workflowrun_id" field.
func WorkflowrunIDNotIn ¶
func WorkflowrunIDNotIn(vs ...uuid.UUID) predicate.Attestation
WorkflowrunIDNotIn applies the NotIn predicate on the "workflowrun_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Attestation queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByWorkflowrunField ¶
func ByWorkflowrunField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkflowrunField orders the results by workflowrun field.
func ByWorkflowrunID ¶
func ByWorkflowrunID(opts ...sql.OrderTermOption) OrderOption
ByWorkflowrunID orders the results by the workflowrun_id field.