Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AuthzPolicy) predicate.AuthzPolicy
- func CreateTime(v time.Time) predicate.AuthzPolicy
- func CreateTimeEQ(v time.Time) predicate.AuthzPolicy
- func CreateTimeGT(v time.Time) predicate.AuthzPolicy
- func CreateTimeGTE(v time.Time) predicate.AuthzPolicy
- func CreateTimeIn(vs ...time.Time) predicate.AuthzPolicy
- func CreateTimeLT(v time.Time) predicate.AuthzPolicy
- func CreateTimeLTE(v time.Time) predicate.AuthzPolicy
- func CreateTimeNEQ(v time.Time) predicate.AuthzPolicy
- func CreateTimeNotIn(vs ...time.Time) predicate.AuthzPolicy
- func HasCreateBy() predicate.AuthzPolicy
- func HasCreateByWith(preds ...predicate.User) predicate.AuthzPolicy
- func ID(id int) predicate.AuthzPolicy
- func IDEQ(id int) predicate.AuthzPolicy
- func IDGT(id int) predicate.AuthzPolicy
- func IDGTE(id int) predicate.AuthzPolicy
- func IDIn(ids ...int) predicate.AuthzPolicy
- func IDLT(id int) predicate.AuthzPolicy
- func IDLTE(id int) predicate.AuthzPolicy
- func IDNEQ(id int) predicate.AuthzPolicy
- func IDNotIn(ids ...int) predicate.AuthzPolicy
- func Not(p predicate.AuthzPolicy) predicate.AuthzPolicy
- func Obj(v string) predicate.AuthzPolicy
- func ObjContains(v string) predicate.AuthzPolicy
- func ObjContainsFold(v string) predicate.AuthzPolicy
- func ObjEQ(v string) predicate.AuthzPolicy
- func ObjEqualFold(v string) predicate.AuthzPolicy
- func ObjGT(v string) predicate.AuthzPolicy
- func ObjGTE(v string) predicate.AuthzPolicy
- func ObjHasPrefix(v string) predicate.AuthzPolicy
- func ObjHasSuffix(v string) predicate.AuthzPolicy
- func ObjIn(vs ...string) predicate.AuthzPolicy
- func ObjLT(v string) predicate.AuthzPolicy
- func ObjLTE(v string) predicate.AuthzPolicy
- func ObjNEQ(v string) predicate.AuthzPolicy
- func ObjNotIn(vs ...string) predicate.AuthzPolicy
- func Or(predicates ...predicate.AuthzPolicy) predicate.AuthzPolicy
- func PolicyContains(v string) predicate.AuthzPolicy
- func PolicyContainsFold(v string) predicate.AuthzPolicy
- func PolicyEQ(v string) predicate.AuthzPolicy
- func PolicyEqualFold(v string) predicate.AuthzPolicy
- func PolicyGT(v string) predicate.AuthzPolicy
- func PolicyGTE(v string) predicate.AuthzPolicy
- func PolicyHasPrefix(v string) predicate.AuthzPolicy
- func PolicyHasSuffix(v string) predicate.AuthzPolicy
- func PolicyIn(vs ...string) predicate.AuthzPolicy
- func PolicyIsNil() predicate.AuthzPolicy
- func PolicyLT(v string) predicate.AuthzPolicy
- func PolicyLTE(v string) predicate.AuthzPolicy
- func PolicyNEQ(v string) predicate.AuthzPolicy
- func PolicyName(v string) predicate.AuthzPolicy
- func PolicyNameContains(v string) predicate.AuthzPolicy
- func PolicyNameContainsFold(v string) predicate.AuthzPolicy
- func PolicyNameEQ(v string) predicate.AuthzPolicy
- func PolicyNameEqualFold(v string) predicate.AuthzPolicy
- func PolicyNameGT(v string) predicate.AuthzPolicy
- func PolicyNameGTE(v string) predicate.AuthzPolicy
- func PolicyNameHasPrefix(v string) predicate.AuthzPolicy
- func PolicyNameHasSuffix(v string) predicate.AuthzPolicy
- func PolicyNameIn(vs ...string) predicate.AuthzPolicy
- func PolicyNameLT(v string) predicate.AuthzPolicy
- func PolicyNameLTE(v string) predicate.AuthzPolicy
- func PolicyNameNEQ(v string) predicate.AuthzPolicy
- func PolicyNameNotIn(vs ...string) predicate.AuthzPolicy
- func PolicyNotIn(vs ...string) predicate.AuthzPolicy
- func PolicyNotNil() predicate.AuthzPolicy
- func Status(v string) predicate.AuthzPolicy
- func StatusContains(v string) predicate.AuthzPolicy
- func StatusContainsFold(v string) predicate.AuthzPolicy
- func StatusEQ(v string) predicate.AuthzPolicy
- func StatusEqualFold(v string) predicate.AuthzPolicy
- func StatusGT(v string) predicate.AuthzPolicy
- func StatusGTE(v string) predicate.AuthzPolicy
- func StatusHasPrefix(v string) predicate.AuthzPolicy
- func StatusHasSuffix(v string) predicate.AuthzPolicy
- func StatusIn(vs ...string) predicate.AuthzPolicy
- func StatusLT(v string) predicate.AuthzPolicy
- func StatusLTE(v string) predicate.AuthzPolicy
- func StatusNEQ(v string) predicate.AuthzPolicy
- func StatusNotIn(vs ...string) predicate.AuthzPolicy
- func UpdateTime(v time.Time) predicate.AuthzPolicy
- func UpdateTimeEQ(v time.Time) predicate.AuthzPolicy
- func UpdateTimeGT(v time.Time) predicate.AuthzPolicy
- func UpdateTimeGTE(v time.Time) predicate.AuthzPolicy
- func UpdateTimeIn(vs ...time.Time) predicate.AuthzPolicy
- func UpdateTimeIsNil() predicate.AuthzPolicy
- func UpdateTimeLT(v time.Time) predicate.AuthzPolicy
- func UpdateTimeLTE(v time.Time) predicate.AuthzPolicy
- func UpdateTimeNEQ(v time.Time) predicate.AuthzPolicy
- func UpdateTimeNotIn(vs ...time.Time) predicate.AuthzPolicy
- func UpdateTimeNotNil() predicate.AuthzPolicy
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the authzpolicy type in the database. Label = "authz_policy" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPolicyName holds the string denoting the policy_name field in the database. FieldPolicyName = "policy_name" // FieldObj holds the string denoting the obj field in the database. FieldObj = "obj" // FieldPolicy holds the string denoting the policy field in the database. FieldPolicy = "policy" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // EdgeCreateBy holds the string denoting the create_by edge name in mutations. EdgeCreateBy = "create_by" // Table holds the table name of the authzpolicy in the database. Table = "authz_policies" // CreateByTable is the table that holds the create_by relation/edge. CreateByTable = "authz_policies" // CreateByInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreateByInverseTable = "users" // CreateByColumn is the table column denoting the create_by relation/edge. CreateByColumn = "user_policys" )
Variables ¶
var ( // PolicyNameValidator is a validator for the "policy_name" field. It is called by the builders before save. PolicyNameValidator func(string) error // ObjValidator is a validator for the "obj" field. It is called by the builders before save. ObjValidator func(string) error // StatusValidator is a validator for the "status" field. It is called by the builders before save. StatusValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
var Columns = []string{ FieldID, FieldPolicyName, FieldObj, FieldPolicy, FieldStatus, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for authzpolicy fields.
var ForeignKeys = []string{
"user_policys",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "authz_policies" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.AuthzPolicy) predicate.AuthzPolicy
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.AuthzPolicy
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.AuthzPolicy
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.AuthzPolicy
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.AuthzPolicy
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.AuthzPolicy
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.AuthzPolicy
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.AuthzPolicy
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.AuthzPolicy
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.AuthzPolicy
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCreateBy ¶
func HasCreateBy() predicate.AuthzPolicy
HasCreateBy applies the HasEdge predicate on the "create_by" edge.
func HasCreateByWith ¶
func HasCreateByWith(preds ...predicate.User) predicate.AuthzPolicy
HasCreateByWith applies the HasEdge predicate on the "create_by" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.AuthzPolicy
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.AuthzPolicy
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.AuthzPolicy
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.AuthzPolicy
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.AuthzPolicy
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AuthzPolicy) predicate.AuthzPolicy
Not applies the not operator on the given predicate.
func Obj ¶
func Obj(v string) predicate.AuthzPolicy
Obj applies equality check predicate on the "obj" field. It's identical to ObjEQ.
func ObjContains ¶
func ObjContains(v string) predicate.AuthzPolicy
ObjContains applies the Contains predicate on the "obj" field.
func ObjContainsFold ¶
func ObjContainsFold(v string) predicate.AuthzPolicy
ObjContainsFold applies the ContainsFold predicate on the "obj" field.
func ObjEQ ¶
func ObjEQ(v string) predicate.AuthzPolicy
ObjEQ applies the EQ predicate on the "obj" field.
func ObjEqualFold ¶
func ObjEqualFold(v string) predicate.AuthzPolicy
ObjEqualFold applies the EqualFold predicate on the "obj" field.
func ObjGT ¶
func ObjGT(v string) predicate.AuthzPolicy
ObjGT applies the GT predicate on the "obj" field.
func ObjGTE ¶
func ObjGTE(v string) predicate.AuthzPolicy
ObjGTE applies the GTE predicate on the "obj" field.
func ObjHasPrefix ¶
func ObjHasPrefix(v string) predicate.AuthzPolicy
ObjHasPrefix applies the HasPrefix predicate on the "obj" field.
func ObjHasSuffix ¶
func ObjHasSuffix(v string) predicate.AuthzPolicy
ObjHasSuffix applies the HasSuffix predicate on the "obj" field.
func ObjIn ¶
func ObjIn(vs ...string) predicate.AuthzPolicy
ObjIn applies the In predicate on the "obj" field.
func ObjLT ¶
func ObjLT(v string) predicate.AuthzPolicy
ObjLT applies the LT predicate on the "obj" field.
func ObjLTE ¶
func ObjLTE(v string) predicate.AuthzPolicy
ObjLTE applies the LTE predicate on the "obj" field.
func ObjNEQ ¶
func ObjNEQ(v string) predicate.AuthzPolicy
ObjNEQ applies the NEQ predicate on the "obj" field.
func ObjNotIn ¶
func ObjNotIn(vs ...string) predicate.AuthzPolicy
ObjNotIn applies the NotIn predicate on the "obj" field.
func Or ¶
func Or(predicates ...predicate.AuthzPolicy) predicate.AuthzPolicy
Or groups predicates with the OR operator between them.
func PolicyContains ¶
func PolicyContains(v string) predicate.AuthzPolicy
PolicyContains applies the Contains predicate on the "policy" field.
func PolicyContainsFold ¶
func PolicyContainsFold(v string) predicate.AuthzPolicy
PolicyContainsFold applies the ContainsFold predicate on the "policy" field.
func PolicyEQ ¶
func PolicyEQ(v string) predicate.AuthzPolicy
PolicyEQ applies the EQ predicate on the "policy" field.
func PolicyEqualFold ¶
func PolicyEqualFold(v string) predicate.AuthzPolicy
PolicyEqualFold applies the EqualFold predicate on the "policy" field.
func PolicyGT ¶
func PolicyGT(v string) predicate.AuthzPolicy
PolicyGT applies the GT predicate on the "policy" field.
func PolicyGTE ¶
func PolicyGTE(v string) predicate.AuthzPolicy
PolicyGTE applies the GTE predicate on the "policy" field.
func PolicyHasPrefix ¶
func PolicyHasPrefix(v string) predicate.AuthzPolicy
PolicyHasPrefix applies the HasPrefix predicate on the "policy" field.
func PolicyHasSuffix ¶
func PolicyHasSuffix(v string) predicate.AuthzPolicy
PolicyHasSuffix applies the HasSuffix predicate on the "policy" field.
func PolicyIn ¶
func PolicyIn(vs ...string) predicate.AuthzPolicy
PolicyIn applies the In predicate on the "policy" field.
func PolicyIsNil ¶
func PolicyIsNil() predicate.AuthzPolicy
PolicyIsNil applies the IsNil predicate on the "policy" field.
func PolicyLT ¶
func PolicyLT(v string) predicate.AuthzPolicy
PolicyLT applies the LT predicate on the "policy" field.
func PolicyLTE ¶
func PolicyLTE(v string) predicate.AuthzPolicy
PolicyLTE applies the LTE predicate on the "policy" field.
func PolicyNEQ ¶
func PolicyNEQ(v string) predicate.AuthzPolicy
PolicyNEQ applies the NEQ predicate on the "policy" field.
func PolicyName ¶
func PolicyName(v string) predicate.AuthzPolicy
PolicyName applies equality check predicate on the "policy_name" field. It's identical to PolicyNameEQ.
func PolicyNameContains ¶
func PolicyNameContains(v string) predicate.AuthzPolicy
PolicyNameContains applies the Contains predicate on the "policy_name" field.
func PolicyNameContainsFold ¶
func PolicyNameContainsFold(v string) predicate.AuthzPolicy
PolicyNameContainsFold applies the ContainsFold predicate on the "policy_name" field.
func PolicyNameEQ ¶
func PolicyNameEQ(v string) predicate.AuthzPolicy
PolicyNameEQ applies the EQ predicate on the "policy_name" field.
func PolicyNameEqualFold ¶
func PolicyNameEqualFold(v string) predicate.AuthzPolicy
PolicyNameEqualFold applies the EqualFold predicate on the "policy_name" field.
func PolicyNameGT ¶
func PolicyNameGT(v string) predicate.AuthzPolicy
PolicyNameGT applies the GT predicate on the "policy_name" field.
func PolicyNameGTE ¶
func PolicyNameGTE(v string) predicate.AuthzPolicy
PolicyNameGTE applies the GTE predicate on the "policy_name" field.
func PolicyNameHasPrefix ¶
func PolicyNameHasPrefix(v string) predicate.AuthzPolicy
PolicyNameHasPrefix applies the HasPrefix predicate on the "policy_name" field.
func PolicyNameHasSuffix ¶
func PolicyNameHasSuffix(v string) predicate.AuthzPolicy
PolicyNameHasSuffix applies the HasSuffix predicate on the "policy_name" field.
func PolicyNameIn ¶
func PolicyNameIn(vs ...string) predicate.AuthzPolicy
PolicyNameIn applies the In predicate on the "policy_name" field.
func PolicyNameLT ¶
func PolicyNameLT(v string) predicate.AuthzPolicy
PolicyNameLT applies the LT predicate on the "policy_name" field.
func PolicyNameLTE ¶
func PolicyNameLTE(v string) predicate.AuthzPolicy
PolicyNameLTE applies the LTE predicate on the "policy_name" field.
func PolicyNameNEQ ¶
func PolicyNameNEQ(v string) predicate.AuthzPolicy
PolicyNameNEQ applies the NEQ predicate on the "policy_name" field.
func PolicyNameNotIn ¶
func PolicyNameNotIn(vs ...string) predicate.AuthzPolicy
PolicyNameNotIn applies the NotIn predicate on the "policy_name" field.
func PolicyNotIn ¶
func PolicyNotIn(vs ...string) predicate.AuthzPolicy
PolicyNotIn applies the NotIn predicate on the "policy" field.
func PolicyNotNil ¶
func PolicyNotNil() predicate.AuthzPolicy
PolicyNotNil applies the NotNil predicate on the "policy" field.
func Status ¶
func Status(v string) predicate.AuthzPolicy
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.AuthzPolicy
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.AuthzPolicy
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.AuthzPolicy
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.AuthzPolicy
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.AuthzPolicy
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.AuthzPolicy
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.AuthzPolicy
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.AuthzPolicy
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.AuthzPolicy
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.AuthzPolicy
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.AuthzPolicy
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.AuthzPolicy
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.AuthzPolicy
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.AuthzPolicy
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.AuthzPolicy
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.AuthzPolicy
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.AuthzPolicy
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.AuthzPolicy
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeIsNil ¶
func UpdateTimeIsNil() predicate.AuthzPolicy
UpdateTimeIsNil applies the IsNil predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.AuthzPolicy
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.AuthzPolicy
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.AuthzPolicy
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.AuthzPolicy
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func UpdateTimeNotNil ¶
func UpdateTimeNotNil() predicate.AuthzPolicy
UpdateTimeNotNil applies the NotNil 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.