Documentation
¶
Index ¶
- Constants
- Variables
- func Action(v string) predicate.Permission
- func ActionContains(v string) predicate.Permission
- func ActionContainsFold(v string) predicate.Permission
- func ActionEQ(v string) predicate.Permission
- func ActionEqualFold(v string) predicate.Permission
- func ActionGT(v string) predicate.Permission
- func ActionGTE(v string) predicate.Permission
- func ActionHasPrefix(v string) predicate.Permission
- func ActionHasSuffix(v string) predicate.Permission
- func ActionIn(vs ...string) predicate.Permission
- func ActionLT(v string) predicate.Permission
- func ActionLTE(v string) predicate.Permission
- func ActionNEQ(v string) predicate.Permission
- func ActionNotIn(vs ...string) predicate.Permission
- func And(predicates ...predicate.Permission) predicate.Permission
- func CreatedAt(v time.Time) predicate.Permission
- func CreatedAtEQ(v time.Time) predicate.Permission
- func CreatedAtGT(v time.Time) predicate.Permission
- func CreatedAtGTE(v time.Time) predicate.Permission
- func CreatedAtIn(vs ...time.Time) predicate.Permission
- func CreatedAtLT(v time.Time) predicate.Permission
- func CreatedAtLTE(v time.Time) predicate.Permission
- func CreatedAtNEQ(v time.Time) predicate.Permission
- func CreatedAtNotIn(vs ...time.Time) predicate.Permission
- func DeletedAt(v time.Time) predicate.Permission
- func DeletedAtEQ(v time.Time) predicate.Permission
- func DeletedAtGT(v time.Time) predicate.Permission
- func DeletedAtGTE(v time.Time) predicate.Permission
- func DeletedAtIn(vs ...time.Time) predicate.Permission
- func DeletedAtIsNil() predicate.Permission
- func DeletedAtLT(v time.Time) predicate.Permission
- func DeletedAtLTE(v time.Time) predicate.Permission
- func DeletedAtNEQ(v time.Time) predicate.Permission
- func DeletedAtNotIn(vs ...time.Time) predicate.Permission
- func DeletedAtNotNil() predicate.Permission
- func HasRole() predicate.Permission
- func HasRoleWith(preds ...predicate.Role) predicate.Permission
- func ID(id int) predicate.Permission
- func IDEQ(id int) predicate.Permission
- func IDGT(id int) predicate.Permission
- func IDGTE(id int) predicate.Permission
- func IDIn(ids ...int) predicate.Permission
- func IDLT(id int) predicate.Permission
- func IDLTE(id int) predicate.Permission
- func IDNEQ(id int) predicate.Permission
- func IDNotIn(ids ...int) predicate.Permission
- func Not(p predicate.Permission) predicate.Permission
- func Or(predicates ...predicate.Permission) predicate.Permission
- func RoleID(v int) predicate.Permission
- func RoleIDEQ(v int) predicate.Permission
- func RoleIDIn(vs ...int) predicate.Permission
- func RoleIDNEQ(v int) predicate.Permission
- func RoleIDNotIn(vs ...int) predicate.Permission
- func UpdatedAt(v time.Time) predicate.Permission
- func UpdatedAtEQ(v time.Time) predicate.Permission
- func UpdatedAtGT(v time.Time) predicate.Permission
- func UpdatedAtGTE(v time.Time) predicate.Permission
- func UpdatedAtIn(vs ...time.Time) predicate.Permission
- func UpdatedAtLT(v time.Time) predicate.Permission
- func UpdatedAtLTE(v time.Time) predicate.Permission
- func UpdatedAtNEQ(v time.Time) predicate.Permission
- func UpdatedAtNotIn(vs ...time.Time) predicate.Permission
- func ValidColumn(column string) bool
- func Value(v string) predicate.Permission
- func ValueContains(v string) predicate.Permission
- func ValueContainsFold(v string) predicate.Permission
- func ValueEQ(v string) predicate.Permission
- func ValueEqualFold(v string) predicate.Permission
- func ValueGT(v string) predicate.Permission
- func ValueGTE(v string) predicate.Permission
- func ValueHasPrefix(v string) predicate.Permission
- func ValueHasSuffix(v string) predicate.Permission
- func ValueIn(vs ...string) predicate.Permission
- func ValueLT(v string) predicate.Permission
- func ValueLTE(v string) predicate.Permission
- func ValueNEQ(v string) predicate.Permission
- func ValueNotIn(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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldRoleID holds the string denoting the role_id field in the database. FieldRoleID = "role_id" // FieldAction holds the string denoting the action field in the database. FieldAction = "action" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // Table holds the table name of the permission in the database. Table = "permissions" // RoleTable is the table that holds the role relation/edge. RoleTable = "permissions" // RoleInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RoleInverseTable = "roles" // RoleColumn is the table column denoting the role relation/edge. RoleColumn = "role_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldRoleID, FieldAction, FieldValue, }
Columns holds all SQL columns for permission fields.
Functions ¶
func Action ¶
func Action(v string) predicate.Permission
Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
func ActionContains ¶
func ActionContains(v string) predicate.Permission
ActionContains applies the Contains predicate on the "action" field.
func ActionContainsFold ¶
func ActionContainsFold(v string) predicate.Permission
ActionContainsFold applies the ContainsFold predicate on the "action" field.
func ActionEQ ¶
func ActionEQ(v string) predicate.Permission
ActionEQ applies the EQ predicate on the "action" field.
func ActionEqualFold ¶
func ActionEqualFold(v string) predicate.Permission
ActionEqualFold applies the EqualFold predicate on the "action" field.
func ActionGT ¶
func ActionGT(v string) predicate.Permission
ActionGT applies the GT predicate on the "action" field.
func ActionGTE ¶
func ActionGTE(v string) predicate.Permission
ActionGTE applies the GTE predicate on the "action" field.
func ActionHasPrefix ¶
func ActionHasPrefix(v string) predicate.Permission
ActionHasPrefix applies the HasPrefix predicate on the "action" field.
func ActionHasSuffix ¶
func ActionHasSuffix(v string) predicate.Permission
ActionHasSuffix applies the HasSuffix predicate on the "action" field.
func ActionIn ¶
func ActionIn(vs ...string) predicate.Permission
ActionIn applies the In predicate on the "action" field.
func ActionLT ¶
func ActionLT(v string) predicate.Permission
ActionLT applies the LT predicate on the "action" field.
func ActionLTE ¶
func ActionLTE(v string) predicate.Permission
ActionLTE applies the LTE predicate on the "action" field.
func ActionNEQ ¶
func ActionNEQ(v string) predicate.Permission
ActionNEQ applies the NEQ predicate on the "action" field.
func ActionNotIn ¶
func ActionNotIn(vs ...string) predicate.Permission
ActionNotIn applies the NotIn predicate on the "action" field.
func And ¶
func And(predicates ...predicate.Permission) predicate.Permission
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Permission
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Permission
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Permission
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Permission
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Permission
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Permission
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Permission
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Permission
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Permission
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.Permission
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Permission
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Permission
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Permission
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Permission
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Permission
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Permission
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Permission
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Permission
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Permission
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Permission
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasRole ¶
func HasRole() predicate.Permission
HasRole applies the HasEdge predicate on the "role" edge.
func HasRoleWith ¶
func HasRoleWith(preds ...predicate.Role) predicate.Permission
HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Permission
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Permission
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Permission
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Permission
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) 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 predicates with the OR operator between them.
func RoleID ¶
func RoleID(v int) predicate.Permission
RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.
func RoleIDEQ ¶
func RoleIDEQ(v int) predicate.Permission
RoleIDEQ applies the EQ predicate on the "role_id" field.
func RoleIDIn ¶
func RoleIDIn(vs ...int) predicate.Permission
RoleIDIn applies the In predicate on the "role_id" field.
func RoleIDNEQ ¶
func RoleIDNEQ(v int) predicate.Permission
RoleIDNEQ applies the NEQ predicate on the "role_id" field.
func RoleIDNotIn ¶
func RoleIDNotIn(vs ...int) predicate.Permission
RoleIDNotIn applies the NotIn predicate on the "role_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Permission
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Permission
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Permission
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Permission
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Permission
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Permission
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Permission
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Permission
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Permission
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
func Value(v string) predicate.Permission
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
func ValueContains(v string) predicate.Permission
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
func ValueContainsFold(v string) predicate.Permission
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEQ ¶
func ValueEQ(v string) predicate.Permission
ValueEQ applies the EQ predicate on the "value" field.
func ValueEqualFold ¶
func ValueEqualFold(v string) predicate.Permission
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueGT ¶
func ValueGT(v string) predicate.Permission
ValueGT applies the GT predicate on the "value" field.
func ValueGTE ¶
func ValueGTE(v string) predicate.Permission
ValueGTE applies the GTE predicate on the "value" field.
func ValueHasPrefix ¶
func ValueHasPrefix(v string) predicate.Permission
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
func ValueHasSuffix(v string) predicate.Permission
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...string) predicate.Permission
ValueIn applies the In predicate on the "value" field.
func ValueLT ¶
func ValueLT(v string) predicate.Permission
ValueLT applies the LT predicate on the "value" field.
func ValueLTE ¶
func ValueLTE(v string) predicate.Permission
ValueLTE applies the LTE predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v string) predicate.Permission
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...string) predicate.Permission
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.