Documentation ¶
Index ¶
- Constants
- Variables
- func ActionRead(v bool) predicate.Permission
- func ActionReadEQ(v bool) predicate.Permission
- func ActionReadNEQ(v bool) predicate.Permission
- func ActionWrite(v bool) predicate.Permission
- func ActionWriteEQ(v bool) predicate.Permission
- func ActionWriteNEQ(v bool) predicate.Permission
- func And(predicates ...predicate.Permission) predicate.Permission
- func Data(v string) predicate.Permission
- func DataContains(v string) predicate.Permission
- func DataContainsFold(v string) predicate.Permission
- func DataEQ(v string) predicate.Permission
- func DataEqualFold(v string) predicate.Permission
- func DataGT(v string) predicate.Permission
- func DataGTE(v string) predicate.Permission
- func DataHasPrefix(v string) predicate.Permission
- func DataHasSuffix(v string) predicate.Permission
- func DataIn(vs ...string) predicate.Permission
- func DataLT(v string) predicate.Permission
- func DataLTE(v string) predicate.Permission
- func DataNEQ(v string) predicate.Permission
- func DataNotIn(vs ...string) predicate.Permission
- func HasSubject() predicate.Permission
- func HasSubjectWith(preds ...predicate.User) predicate.Permission
- func ID(id uuid.UUID) predicate.Permission
- func IDEQ(id uuid.UUID) predicate.Permission
- func IDGT(id uuid.UUID) predicate.Permission
- func IDGTE(id uuid.UUID) predicate.Permission
- func IDIn(ids ...uuid.UUID) predicate.Permission
- func IDLT(id uuid.UUID) predicate.Permission
- func IDLTE(id uuid.UUID) predicate.Permission
- func IDNEQ(id uuid.UUID) predicate.Permission
- func IDNotIn(ids ...uuid.UUID) predicate.Permission
- func Not(p predicate.Permission) predicate.Permission
- func Or(predicates ...predicate.Permission) predicate.Permission
- func User(v string) predicate.Permission
- func UserContains(v string) predicate.Permission
- func UserContainsFold(v string) predicate.Permission
- func UserEQ(v string) predicate.Permission
- func UserEqualFold(v string) predicate.Permission
- func UserGT(v string) predicate.Permission
- func UserGTE(v string) predicate.Permission
- func UserHasPrefix(v string) predicate.Permission
- func UserHasSuffix(v string) predicate.Permission
- func UserIn(vs ...string) predicate.Permission
- func UserLT(v string) predicate.Permission
- func UserLTE(v string) predicate.Permission
- func UserNEQ(v string) predicate.Permission
- func UserNotIn(vs ...string) predicate.Permission
Constants ¶
const ( // Label holds the string label denoting the permission type in the database. Label = "permission" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUser holds the string denoting the user field in the database. FieldUser = "user" // FieldData holds the string denoting the data field in the database. FieldData = "data" // FieldActionRead holds the string denoting the action_read field in the database. FieldActionRead = "action_read" // FieldActionWrite holds the string denoting the action_write field in the database. FieldActionWrite = "action_write" // EdgeSubject holds the string denoting the subject edge name in mutations. EdgeSubject = "subject" // Table holds the table name of the permission in the database. Table = "permissions" // SubjectTable is the table the holds the subject relation/edge. SubjectTable = "permissions" // SubjectInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. SubjectInverseTable = "users" // SubjectColumn is the table column denoting the subject relation/edge. SubjectColumn = "user_permissions" )
Variables ¶
var ( // UserValidator is a validator for the "user" field. It is called by the builders before save. UserValidator func(string) error // DataValidator is a validator for the "data" field. It is called by the builders before save. DataValidator func(string) error )
var Columns = []string{ FieldID, FieldUser, FieldData, FieldActionRead, FieldActionWrite, }
Columns holds all SQL columns for permission fields.
var ForeignKeys = []string{
"user_permissions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Permission type.
Functions ¶
func ActionRead ¶
func ActionRead(v bool) predicate.Permission
ActionRead applies equality check predicate on the "action_read" field. It's identical to ActionReadEQ.
func ActionReadEQ ¶
func ActionReadEQ(v bool) predicate.Permission
ActionReadEQ applies the EQ predicate on the "action_read" field.
func ActionReadNEQ ¶
func ActionReadNEQ(v bool) predicate.Permission
ActionReadNEQ applies the NEQ predicate on the "action_read" field.
func ActionWrite ¶
func ActionWrite(v bool) predicate.Permission
ActionWrite applies equality check predicate on the "action_write" field. It's identical to ActionWriteEQ.
func ActionWriteEQ ¶
func ActionWriteEQ(v bool) predicate.Permission
ActionWriteEQ applies the EQ predicate on the "action_write" field.
func ActionWriteNEQ ¶
func ActionWriteNEQ(v bool) predicate.Permission
ActionWriteNEQ applies the NEQ predicate on the "action_write" field.
func And ¶
func And(predicates ...predicate.Permission) predicate.Permission
And groups list of predicates with the AND operator between them.
func Data ¶
func Data(v string) predicate.Permission
Data applies equality check predicate on the "data" field. It's identical to DataEQ.
func DataContains ¶
func DataContains(v string) predicate.Permission
DataContains applies the Contains predicate on the "data" field.
func DataContainsFold ¶
func DataContainsFold(v string) predicate.Permission
DataContainsFold applies the ContainsFold predicate on the "data" field.
func DataEQ ¶
func DataEQ(v string) predicate.Permission
DataEQ applies the EQ predicate on the "data" field.
func DataEqualFold ¶
func DataEqualFold(v string) predicate.Permission
DataEqualFold applies the EqualFold predicate on the "data" field.
func DataGT ¶
func DataGT(v string) predicate.Permission
DataGT applies the GT predicate on the "data" field.
func DataGTE ¶
func DataGTE(v string) predicate.Permission
DataGTE applies the GTE predicate on the "data" field.
func DataHasPrefix ¶
func DataHasPrefix(v string) predicate.Permission
DataHasPrefix applies the HasPrefix predicate on the "data" field.
func DataHasSuffix ¶
func DataHasSuffix(v string) predicate.Permission
DataHasSuffix applies the HasSuffix predicate on the "data" field.
func DataIn ¶
func DataIn(vs ...string) predicate.Permission
DataIn applies the In predicate on the "data" field.
func DataLT ¶
func DataLT(v string) predicate.Permission
DataLT applies the LT predicate on the "data" field.
func DataLTE ¶
func DataLTE(v string) predicate.Permission
DataLTE applies the LTE predicate on the "data" field.
func DataNEQ ¶
func DataNEQ(v string) predicate.Permission
DataNEQ applies the NEQ predicate on the "data" field.
func DataNotIn ¶
func DataNotIn(vs ...string) predicate.Permission
DataNotIn applies the NotIn predicate on the "data" field.
func HasSubject ¶
func HasSubject() predicate.Permission
HasSubject applies the HasEdge predicate on the "subject" edge.
func HasSubjectWith ¶
func HasSubjectWith(preds ...predicate.User) predicate.Permission
HasSubjectWith applies the HasEdge predicate on the "subject" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.Permission
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.Permission
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.Permission
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.Permission
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.Permission
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.Permission
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.Permission
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.Permission
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Permission) predicate.Permission
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Permission) predicate.Permission
Or groups list of predicates with the OR operator between them.
func User ¶
func User(v string) predicate.Permission
User applies equality check predicate on the "user" field. It's identical to UserEQ.
func UserContains ¶
func UserContains(v string) predicate.Permission
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
func UserContainsFold(v string) predicate.Permission
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEQ ¶
func UserEQ(v string) predicate.Permission
UserEQ applies the EQ predicate on the "user" field.
func UserEqualFold ¶
func UserEqualFold(v string) predicate.Permission
UserEqualFold applies the EqualFold predicate on the "user" field.
func UserGT ¶
func UserGT(v string) predicate.Permission
UserGT applies the GT predicate on the "user" field.
func UserGTE ¶
func UserGTE(v string) predicate.Permission
UserGTE applies the GTE predicate on the "user" field.
func UserHasPrefix ¶
func UserHasPrefix(v string) predicate.Permission
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
func UserHasSuffix(v string) predicate.Permission
UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserIn ¶
func UserIn(vs ...string) predicate.Permission
UserIn applies the In predicate on the "user" field.
func UserLT ¶
func UserLT(v string) predicate.Permission
UserLT applies the LT predicate on the "user" field.
func UserLTE ¶
func UserLTE(v string) predicate.Permission
UserLTE applies the LTE predicate on the "user" field.
func UserNEQ ¶
func UserNEQ(v string) predicate.Permission
UserNEQ applies the NEQ predicate on the "user" field.
func UserNotIn ¶
func UserNotIn(vs ...string) predicate.Permission
UserNotIn applies the NotIn predicate on the "user" field.
Types ¶
This section is empty.