Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RobotAccount) predicate.RobotAccount
- func CreatedAt(v time.Time) predicate.RobotAccount
- func CreatedAtEQ(v time.Time) predicate.RobotAccount
- func CreatedAtGT(v time.Time) predicate.RobotAccount
- func CreatedAtGTE(v time.Time) predicate.RobotAccount
- func CreatedAtIn(vs ...time.Time) predicate.RobotAccount
- func CreatedAtLT(v time.Time) predicate.RobotAccount
- func CreatedAtLTE(v time.Time) predicate.RobotAccount
- func CreatedAtNEQ(v time.Time) predicate.RobotAccount
- func CreatedAtNotIn(vs ...time.Time) predicate.RobotAccount
- func HasWorkflow() predicate.RobotAccount
- func HasWorkflowWith(preds ...predicate.Workflow) predicate.RobotAccount
- func HasWorkflowruns() predicate.RobotAccount
- func HasWorkflowrunsWith(preds ...predicate.WorkflowRun) predicate.RobotAccount
- func ID(id uuid.UUID) predicate.RobotAccount
- func IDEQ(id uuid.UUID) predicate.RobotAccount
- func IDGT(id uuid.UUID) predicate.RobotAccount
- func IDGTE(id uuid.UUID) predicate.RobotAccount
- func IDIn(ids ...uuid.UUID) predicate.RobotAccount
- func IDLT(id uuid.UUID) predicate.RobotAccount
- func IDLTE(id uuid.UUID) predicate.RobotAccount
- func IDNEQ(id uuid.UUID) predicate.RobotAccount
- func IDNotIn(ids ...uuid.UUID) predicate.RobotAccount
- func Name(v string) predicate.RobotAccount
- func NameContains(v string) predicate.RobotAccount
- func NameContainsFold(v string) predicate.RobotAccount
- func NameEQ(v string) predicate.RobotAccount
- func NameEqualFold(v string) predicate.RobotAccount
- func NameGT(v string) predicate.RobotAccount
- func NameGTE(v string) predicate.RobotAccount
- func NameHasPrefix(v string) predicate.RobotAccount
- func NameHasSuffix(v string) predicate.RobotAccount
- func NameIn(vs ...string) predicate.RobotAccount
- func NameLT(v string) predicate.RobotAccount
- func NameLTE(v string) predicate.RobotAccount
- func NameNEQ(v string) predicate.RobotAccount
- func NameNotIn(vs ...string) predicate.RobotAccount
- func Not(p predicate.RobotAccount) predicate.RobotAccount
- func Or(predicates ...predicate.RobotAccount) predicate.RobotAccount
- func RevokedAt(v time.Time) predicate.RobotAccount
- func RevokedAtEQ(v time.Time) predicate.RobotAccount
- func RevokedAtGT(v time.Time) predicate.RobotAccount
- func RevokedAtGTE(v time.Time) predicate.RobotAccount
- func RevokedAtIn(vs ...time.Time) predicate.RobotAccount
- func RevokedAtIsNil() predicate.RobotAccount
- func RevokedAtLT(v time.Time) predicate.RobotAccount
- func RevokedAtLTE(v time.Time) predicate.RobotAccount
- func RevokedAtNEQ(v time.Time) predicate.RobotAccount
- func RevokedAtNotIn(vs ...time.Time) predicate.RobotAccount
- func RevokedAtNotNil() predicate.RobotAccount
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkflowruns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWorkflowrunsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the robotaccount type in the database. Label = "robot_account" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldRevokedAt holds the string denoting the revoked_at field in the database. FieldRevokedAt = "revoked_at" // EdgeWorkflow holds the string denoting the workflow edge name in mutations. EdgeWorkflow = "workflow" // EdgeWorkflowruns holds the string denoting the workflowruns edge name in mutations. EdgeWorkflowruns = "workflowruns" // Table holds the table name of the robotaccount in the database. Table = "robot_accounts" // WorkflowTable is the table that holds the workflow relation/edge. WorkflowTable = "robot_accounts" // WorkflowInverseTable is the table name for the Workflow entity. // It exists in this package in order to avoid circular dependency with the "workflow" package. WorkflowInverseTable = "workflows" // WorkflowColumn is the table column denoting the workflow relation/edge. WorkflowColumn = "workflow_robotaccounts" // WorkflowrunsTable is the table that holds the workflowruns relation/edge. WorkflowrunsTable = "workflow_runs" // WorkflowrunsInverseTable is the table name for the WorkflowRun entity. // It exists in this package in order to avoid circular dependency with the "workflowrun" package. WorkflowrunsInverseTable = "workflow_runs" // WorkflowrunsColumn is the table column denoting the workflowruns relation/edge. WorkflowrunsColumn = "robot_account_workflowruns" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldCreatedAt, FieldRevokedAt, }
Columns holds all SQL columns for robotaccount fields.
var ForeignKeys = []string{
"workflow_robotaccounts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "robot_accounts" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.RobotAccount) predicate.RobotAccount
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.RobotAccount
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.RobotAccount
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.RobotAccount
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.RobotAccount
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.RobotAccount
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.RobotAccount
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.RobotAccount
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.RobotAccount
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.RobotAccount
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasWorkflow ¶
func HasWorkflow() predicate.RobotAccount
HasWorkflow applies the HasEdge predicate on the "workflow" edge.
func HasWorkflowWith ¶
func HasWorkflowWith(preds ...predicate.Workflow) predicate.RobotAccount
HasWorkflowWith applies the HasEdge predicate on the "workflow" edge with a given conditions (other predicates).
func HasWorkflowruns ¶
func HasWorkflowruns() predicate.RobotAccount
HasWorkflowruns applies the HasEdge predicate on the "workflowruns" edge.
func HasWorkflowrunsWith ¶
func HasWorkflowrunsWith(preds ...predicate.WorkflowRun) predicate.RobotAccount
HasWorkflowrunsWith applies the HasEdge predicate on the "workflowruns" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.RobotAccount
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.RobotAccount
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.RobotAccount
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.RobotAccount
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.RobotAccount
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.RobotAccount
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.RobotAccount
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.RobotAccount
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.RobotAccount
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.RobotAccount
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.RobotAccount
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.RobotAccount
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.RobotAccount
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.RobotAccount
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.RobotAccount
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.RobotAccount
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.RobotAccount
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.RobotAccount
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.RobotAccount
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.RobotAccount
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.RobotAccount
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.RobotAccount
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.RobotAccount) predicate.RobotAccount
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.RobotAccount) predicate.RobotAccount
Or groups predicates with the OR operator between them.
func RevokedAt ¶
func RevokedAt(v time.Time) predicate.RobotAccount
RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.
func RevokedAtEQ ¶
func RevokedAtEQ(v time.Time) predicate.RobotAccount
RevokedAtEQ applies the EQ predicate on the "revoked_at" field.
func RevokedAtGT ¶
func RevokedAtGT(v time.Time) predicate.RobotAccount
RevokedAtGT applies the GT predicate on the "revoked_at" field.
func RevokedAtGTE ¶
func RevokedAtGTE(v time.Time) predicate.RobotAccount
RevokedAtGTE applies the GTE predicate on the "revoked_at" field.
func RevokedAtIn ¶
func RevokedAtIn(vs ...time.Time) predicate.RobotAccount
RevokedAtIn applies the In predicate on the "revoked_at" field.
func RevokedAtIsNil ¶
func RevokedAtIsNil() predicate.RobotAccount
RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.
func RevokedAtLT ¶
func RevokedAtLT(v time.Time) predicate.RobotAccount
RevokedAtLT applies the LT predicate on the "revoked_at" field.
func RevokedAtLTE ¶
func RevokedAtLTE(v time.Time) predicate.RobotAccount
RevokedAtLTE applies the LTE predicate on the "revoked_at" field.
func RevokedAtNEQ ¶
func RevokedAtNEQ(v time.Time) predicate.RobotAccount
RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.
func RevokedAtNotIn ¶
func RevokedAtNotIn(vs ...time.Time) predicate.RobotAccount
RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.
func RevokedAtNotNil ¶
func RevokedAtNotNil() predicate.RobotAccount
RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v0.13.0
OrderOption defines the ordering options for the RobotAccount queries.
func ByCreatedAt ¶ added in v0.13.0
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶ added in v0.13.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶ added in v0.13.0
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRevokedAt ¶ added in v0.13.0
func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
ByRevokedAt orders the results by the revoked_at field.
func ByWorkflowField ¶ added in v0.13.0
func ByWorkflowField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkflowField orders the results by workflow field.
func ByWorkflowruns ¶ added in v0.13.0
func ByWorkflowruns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWorkflowruns orders the results by workflowruns terms.
func ByWorkflowrunsCount ¶ added in v0.13.0
func ByWorkflowrunsCount(opts ...sql.OrderTermOption) OrderOption
ByWorkflowrunsCount orders the results by workflowruns count.