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 CreateTime(v time.Time) predicate.Permission
- func CreateTimeEQ(v time.Time) predicate.Permission
- func CreateTimeGT(v time.Time) predicate.Permission
- func CreateTimeGTE(v time.Time) predicate.Permission
- func CreateTimeIn(vs ...time.Time) predicate.Permission
- func CreateTimeLT(v time.Time) predicate.Permission
- func CreateTimeLTE(v time.Time) predicate.Permission
- func CreateTimeNEQ(v time.Time) predicate.Permission
- func CreateTimeNotIn(vs ...time.Time) predicate.Permission
- func Desc(v string) predicate.Permission
- func DescContains(v string) predicate.Permission
- func DescContainsFold(v string) predicate.Permission
- func DescEQ(v string) predicate.Permission
- func DescEqualFold(v string) predicate.Permission
- func DescGT(v string) predicate.Permission
- func DescGTE(v string) predicate.Permission
- func DescHasPrefix(v string) predicate.Permission
- func DescHasSuffix(v string) predicate.Permission
- func DescIn(vs ...string) predicate.Permission
- func DescIsNil() predicate.Permission
- func DescLT(v string) predicate.Permission
- func DescLTE(v string) predicate.Permission
- func DescNEQ(v string) predicate.Permission
- func DescNotIn(vs ...string) predicate.Permission
- func DescNotNil() predicate.Permission
- func HasRoles() predicate.Permission
- func HasRolesWith(preds ...predicate.Role) predicate.Permission
- func ID(id int64) predicate.Permission
- func IDEQ(id int64) predicate.Permission
- func IDGT(id int64) predicate.Permission
- func IDGTE(id int64) predicate.Permission
- func IDIn(ids ...int64) predicate.Permission
- func IDLT(id int64) predicate.Permission
- func IDLTE(id int64) predicate.Permission
- func IDNEQ(id int64) predicate.Permission
- func IDNotIn(ids ...int64) predicate.Permission
- func Name(v string) predicate.Permission
- func NameContains(v string) predicate.Permission
- func NameContainsFold(v string) predicate.Permission
- func NameEQ(v string) predicate.Permission
- func NameEqualFold(v string) predicate.Permission
- func NameGT(v string) predicate.Permission
- func NameGTE(v string) predicate.Permission
- func NameHasPrefix(v string) predicate.Permission
- func NameHasSuffix(v string) predicate.Permission
- func NameIn(vs ...string) predicate.Permission
- func NameLT(v string) predicate.Permission
- func NameLTE(v string) predicate.Permission
- func NameNEQ(v string) predicate.Permission
- func NameNotIn(vs ...string) predicate.Permission
- func Not(p predicate.Permission) predicate.Permission
- func Or(predicates ...predicate.Permission) predicate.Permission
- func Path(v string) predicate.Permission
- func PathContains(v string) predicate.Permission
- func PathContainsFold(v string) predicate.Permission
- func PathEQ(v string) predicate.Permission
- func PathEqualFold(v string) predicate.Permission
- func PathGT(v string) predicate.Permission
- func PathGTE(v string) predicate.Permission
- func PathHasPrefix(v string) predicate.Permission
- func PathHasSuffix(v string) predicate.Permission
- func PathIn(vs ...string) predicate.Permission
- func PathLT(v string) predicate.Permission
- func PathLTE(v string) predicate.Permission
- func PathNEQ(v string) predicate.Permission
- func PathNotIn(vs ...string) predicate.Permission
- func Service(v string) predicate.Permission
- func ServiceContains(v string) predicate.Permission
- func ServiceContainsFold(v string) predicate.Permission
- func ServiceEQ(v string) predicate.Permission
- func ServiceEqualFold(v string) predicate.Permission
- func ServiceGT(v string) predicate.Permission
- func ServiceGTE(v string) predicate.Permission
- func ServiceHasPrefix(v string) predicate.Permission
- func ServiceHasSuffix(v string) predicate.Permission
- func ServiceIn(vs ...string) predicate.Permission
- func ServiceLT(v string) predicate.Permission
- func ServiceLTE(v string) predicate.Permission
- func ServiceNEQ(v string) predicate.Permission
- func ServiceNotIn(vs ...string) predicate.Permission
- func UpdateTime(v time.Time) predicate.Permission
- func UpdateTimeEQ(v time.Time) predicate.Permission
- func UpdateTimeGT(v time.Time) predicate.Permission
- func UpdateTimeGTE(v time.Time) predicate.Permission
- func UpdateTimeIn(vs ...time.Time) predicate.Permission
- func UpdateTimeLT(v time.Time) predicate.Permission
- func UpdateTimeLTE(v time.Time) predicate.Permission
- func UpdateTimeNEQ(v time.Time) predicate.Permission
- func UpdateTimeNotIn(vs ...time.Time) predicate.Permission
- func ValidColumn(column string) bool
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" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldService holds the string denoting the service field in the database. FieldService = "service" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldAction holds the string denoting the action field in the database. FieldAction = "action" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // Table holds the table name of the permission in the database. Table = "permissions" // RolesTable is the table the holds the roles relation/edge. The primary key declared below. RolesTable = "role_permissions" // RolesInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RolesInverseTable = "roles" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // ServiceValidator is a validator for the "service" field. It is called by the builders before save. ServiceValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // ActionValidator is a validator for the "action" field. It is called by the builders before save. ActionValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldName, FieldService, FieldPath, FieldAction, FieldDesc, }
Columns holds all SQL columns for permission fields.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"role_id", "permission_id"} )
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 CreateTime ¶
func CreateTime(v time.Time) predicate.Permission
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.Permission
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.Permission
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.Permission
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.Permission
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.Permission
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.Permission
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.Permission
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.Permission
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Desc ¶
func Desc(v string) predicate.Permission
Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.
func DescContains ¶
func DescContains(v string) predicate.Permission
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
func DescContainsFold(v string) predicate.Permission
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEQ ¶
func DescEQ(v string) predicate.Permission
DescEQ applies the EQ predicate on the "desc" field.
func DescEqualFold ¶
func DescEqualFold(v string) predicate.Permission
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescGT ¶
func DescGT(v string) predicate.Permission
DescGT applies the GT predicate on the "desc" field.
func DescGTE ¶
func DescGTE(v string) predicate.Permission
DescGTE applies the GTE predicate on the "desc" field.
func DescHasPrefix ¶
func DescHasPrefix(v string) predicate.Permission
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
func DescHasSuffix(v string) predicate.Permission
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func DescIn ¶
func DescIn(vs ...string) predicate.Permission
DescIn applies the In predicate on the "desc" field.
func DescIsNil ¶
func DescIsNil() predicate.Permission
DescIsNil applies the IsNil predicate on the "desc" field.
func DescLT ¶
func DescLT(v string) predicate.Permission
DescLT applies the LT predicate on the "desc" field.
func DescLTE ¶
func DescLTE(v string) predicate.Permission
DescLTE applies the LTE predicate on the "desc" field.
func DescNEQ ¶
func DescNEQ(v string) predicate.Permission
DescNEQ applies the NEQ predicate on the "desc" field.
func DescNotIn ¶
func DescNotIn(vs ...string) predicate.Permission
DescNotIn applies the NotIn predicate on the "desc" field.
func DescNotNil ¶
func DescNotNil() predicate.Permission
DescNotNil applies the NotNil predicate on the "desc" field.
func HasRoles ¶
func HasRoles() predicate.Permission
HasRoles applies the HasEdge predicate on the "roles" edge.
func HasRolesWith ¶
func HasRolesWith(preds ...predicate.Role) predicate.Permission
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int64) predicate.Permission
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Permission
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Permission
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Permission
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Permission
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.Permission
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Permission
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Permission
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Permission
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Permission
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Permission
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Permission
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Permission
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Permission
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Permission
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Permission
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Permission
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Permission
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Permission
NameNotIn applies the NotIn predicate on the "name" 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 Path ¶
func Path(v string) predicate.Permission
Path applies equality check predicate on the "path" field. It's identical to PathEQ.
func PathContains ¶
func PathContains(v string) predicate.Permission
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
func PathContainsFold(v string) predicate.Permission
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEQ ¶
func PathEQ(v string) predicate.Permission
PathEQ applies the EQ predicate on the "path" field.
func PathEqualFold ¶
func PathEqualFold(v string) predicate.Permission
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathGT ¶
func PathGT(v string) predicate.Permission
PathGT applies the GT predicate on the "path" field.
func PathGTE ¶
func PathGTE(v string) predicate.Permission
PathGTE applies the GTE predicate on the "path" field.
func PathHasPrefix ¶
func PathHasPrefix(v string) predicate.Permission
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
func PathHasSuffix(v string) predicate.Permission
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathIn ¶
func PathIn(vs ...string) predicate.Permission
PathIn applies the In predicate on the "path" field.
func PathLT ¶
func PathLT(v string) predicate.Permission
PathLT applies the LT predicate on the "path" field.
func PathLTE ¶
func PathLTE(v string) predicate.Permission
PathLTE applies the LTE predicate on the "path" field.
func PathNEQ ¶
func PathNEQ(v string) predicate.Permission
PathNEQ applies the NEQ predicate on the "path" field.
func PathNotIn ¶
func PathNotIn(vs ...string) predicate.Permission
PathNotIn applies the NotIn predicate on the "path" field.
func Service ¶
func Service(v string) predicate.Permission
Service applies equality check predicate on the "service" field. It's identical to ServiceEQ.
func ServiceContains ¶
func ServiceContains(v string) predicate.Permission
ServiceContains applies the Contains predicate on the "service" field.
func ServiceContainsFold ¶
func ServiceContainsFold(v string) predicate.Permission
ServiceContainsFold applies the ContainsFold predicate on the "service" field.
func ServiceEQ ¶
func ServiceEQ(v string) predicate.Permission
ServiceEQ applies the EQ predicate on the "service" field.
func ServiceEqualFold ¶
func ServiceEqualFold(v string) predicate.Permission
ServiceEqualFold applies the EqualFold predicate on the "service" field.
func ServiceGT ¶
func ServiceGT(v string) predicate.Permission
ServiceGT applies the GT predicate on the "service" field.
func ServiceGTE ¶
func ServiceGTE(v string) predicate.Permission
ServiceGTE applies the GTE predicate on the "service" field.
func ServiceHasPrefix ¶
func ServiceHasPrefix(v string) predicate.Permission
ServiceHasPrefix applies the HasPrefix predicate on the "service" field.
func ServiceHasSuffix ¶
func ServiceHasSuffix(v string) predicate.Permission
ServiceHasSuffix applies the HasSuffix predicate on the "service" field.
func ServiceIn ¶
func ServiceIn(vs ...string) predicate.Permission
ServiceIn applies the In predicate on the "service" field.
func ServiceLT ¶
func ServiceLT(v string) predicate.Permission
ServiceLT applies the LT predicate on the "service" field.
func ServiceLTE ¶
func ServiceLTE(v string) predicate.Permission
ServiceLTE applies the LTE predicate on the "service" field.
func ServiceNEQ ¶
func ServiceNEQ(v string) predicate.Permission
ServiceNEQ applies the NEQ predicate on the "service" field.
func ServiceNotIn ¶
func ServiceNotIn(vs ...string) predicate.Permission
ServiceNotIn applies the NotIn predicate on the "service" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.Permission
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.Permission
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.Permission
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.Permission
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.Permission
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.Permission
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.Permission
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.Permission
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.Permission
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.