Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Permission) predicate.Permission
- func Component(v string) predicate.Permission
- func ComponentContains(v string) predicate.Permission
- func ComponentContainsFold(v string) predicate.Permission
- func ComponentEQ(v string) predicate.Permission
- func ComponentEqualFold(v string) predicate.Permission
- func ComponentGT(v string) predicate.Permission
- func ComponentGTE(v string) predicate.Permission
- func ComponentHasPrefix(v string) predicate.Permission
- func ComponentHasSuffix(v string) predicate.Permission
- func ComponentIn(vs ...string) predicate.Permission
- func ComponentLT(v string) predicate.Permission
- func ComponentLTE(v string) predicate.Permission
- func ComponentNEQ(v string) predicate.Permission
- func ComponentNotIn(vs ...string) 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 Description(v string) predicate.Permission
- func DescriptionContains(v string) predicate.Permission
- func DescriptionContainsFold(v string) predicate.Permission
- func DescriptionEQ(v string) predicate.Permission
- func DescriptionEqualFold(v string) predicate.Permission
- func DescriptionGT(v string) predicate.Permission
- func DescriptionGTE(v string) predicate.Permission
- func DescriptionHasPrefix(v string) predicate.Permission
- func DescriptionHasSuffix(v string) predicate.Permission
- func DescriptionIn(vs ...string) predicate.Permission
- func DescriptionLT(v string) predicate.Permission
- func DescriptionLTE(v string) predicate.Permission
- func DescriptionNEQ(v string) predicate.Permission
- func DescriptionNotIn(vs ...string) predicate.Permission
- func HasPermissionPolicies() predicate.Permission
- func HasPermissionPoliciesWith(preds ...predicate.PermissionPolicy) 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 Key(v string) predicate.Permission
- func KeyContains(v string) predicate.Permission
- func KeyContainsFold(v string) predicate.Permission
- func KeyEQ(v string) predicate.Permission
- func KeyEqualFold(v string) predicate.Permission
- func KeyGT(v string) predicate.Permission
- func KeyGTE(v string) predicate.Permission
- func KeyHasPrefix(v string) predicate.Permission
- func KeyHasSuffix(v string) predicate.Permission
- func KeyIn(vs ...string) predicate.Permission
- func KeyLT(v string) predicate.Permission
- func KeyLTE(v string) predicate.Permission
- func KeyNEQ(v string) predicate.Permission
- func KeyNotIn(vs ...string) predicate.Permission
- func Not(p predicate.Permission) predicate.Permission
- func Or(predicates ...predicate.Permission) 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
- type OrderOption
- func ByComponent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByPermissionPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPermissionPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
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" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldComponent holds the string denoting the component field in the database. FieldComponent = "component" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgePermissionPolicies holds the string denoting the permission_policies edge name in mutations. EdgePermissionPolicies = "permission_policies" // Table holds the table name of the permission in the database. Table = "permissions" // PermissionPoliciesTable is the table that holds the permission_policies relation/edge. PermissionPoliciesTable = "permission_policies" // PermissionPoliciesInverseTable is the table name for the PermissionPolicy entity. // It exists in this package in order to avoid circular dependency with the "permissionpolicy" package. PermissionPoliciesInverseTable = "permission_policies" // PermissionPoliciesColumn is the table column denoting the permission_policies relation/edge. PermissionPoliciesColumn = "permission_policy_permission" )
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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldKey, FieldComponent, FieldDescription, }
Columns holds all SQL columns for permission fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Permission) predicate.Permission
And groups predicates with the AND operator between them.
func Component ¶
func Component(v string) predicate.Permission
Component applies equality check predicate on the "component" field. It's identical to ComponentEQ.
func ComponentContains ¶
func ComponentContains(v string) predicate.Permission
ComponentContains applies the Contains predicate on the "component" field.
func ComponentContainsFold ¶
func ComponentContainsFold(v string) predicate.Permission
ComponentContainsFold applies the ContainsFold predicate on the "component" field.
func ComponentEQ ¶
func ComponentEQ(v string) predicate.Permission
ComponentEQ applies the EQ predicate on the "component" field.
func ComponentEqualFold ¶
func ComponentEqualFold(v string) predicate.Permission
ComponentEqualFold applies the EqualFold predicate on the "component" field.
func ComponentGT ¶
func ComponentGT(v string) predicate.Permission
ComponentGT applies the GT predicate on the "component" field.
func ComponentGTE ¶
func ComponentGTE(v string) predicate.Permission
ComponentGTE applies the GTE predicate on the "component" field.
func ComponentHasPrefix ¶
func ComponentHasPrefix(v string) predicate.Permission
ComponentHasPrefix applies the HasPrefix predicate on the "component" field.
func ComponentHasSuffix ¶
func ComponentHasSuffix(v string) predicate.Permission
ComponentHasSuffix applies the HasSuffix predicate on the "component" field.
func ComponentIn ¶
func ComponentIn(vs ...string) predicate.Permission
ComponentIn applies the In predicate on the "component" field.
func ComponentLT ¶
func ComponentLT(v string) predicate.Permission
ComponentLT applies the LT predicate on the "component" field.
func ComponentLTE ¶
func ComponentLTE(v string) predicate.Permission
ComponentLTE applies the LTE predicate on the "component" field.
func ComponentNEQ ¶
func ComponentNEQ(v string) predicate.Permission
ComponentNEQ applies the NEQ predicate on the "component" field.
func ComponentNotIn ¶
func ComponentNotIn(vs ...string) predicate.Permission
ComponentNotIn applies the NotIn predicate on the "component" field.
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 Description ¶
func Description(v string) predicate.Permission
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Permission
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Permission
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Permission
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Permission
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Permission
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Permission
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Permission
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Permission
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Permission
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Permission
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Permission
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Permission
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Permission
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasPermissionPolicies ¶
func HasPermissionPolicies() predicate.Permission
HasPermissionPolicies applies the HasEdge predicate on the "permission_policies" edge.
func HasPermissionPoliciesWith ¶
func HasPermissionPoliciesWith(preds ...predicate.PermissionPolicy) predicate.Permission
HasPermissionPoliciesWith applies the HasEdge predicate on the "permission_policies" 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 Key ¶
func Key(v string) predicate.Permission
Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
func KeyContains ¶
func KeyContains(v string) predicate.Permission
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
func KeyContainsFold(v string) predicate.Permission
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEQ ¶
func KeyEQ(v string) predicate.Permission
KeyEQ applies the EQ predicate on the "key" field.
func KeyEqualFold ¶
func KeyEqualFold(v string) predicate.Permission
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyGT ¶
func KeyGT(v string) predicate.Permission
KeyGT applies the GT predicate on the "key" field.
func KeyGTE ¶
func KeyGTE(v string) predicate.Permission
KeyGTE applies the GTE predicate on the "key" field.
func KeyHasPrefix ¶
func KeyHasPrefix(v string) predicate.Permission
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
func KeyHasSuffix(v string) predicate.Permission
KeyHasSuffix applies the HasSuffix predicate on the "key" field.
func KeyIn ¶
func KeyIn(vs ...string) predicate.Permission
KeyIn applies the In predicate on the "key" field.
func KeyLT ¶
func KeyLT(v string) predicate.Permission
KeyLT applies the LT predicate on the "key" field.
func KeyLTE ¶
func KeyLTE(v string) predicate.Permission
KeyLTE applies the LTE predicate on the "key" field.
func KeyNEQ ¶
func KeyNEQ(v string) predicate.Permission
KeyNEQ applies the NEQ predicate on the "key" field.
func KeyNotIn ¶
func KeyNotIn(vs ...string) predicate.Permission
KeyNotIn applies the NotIn predicate on the "key" 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 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Permission queries.
func ByComponent ¶
func ByComponent(opts ...sql.OrderTermOption) OrderOption
ByComponent orders the results by the component field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByPermissionPolicies ¶
func ByPermissionPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPermissionPolicies orders the results by permission_policies terms.
func ByPermissionPoliciesCount ¶
func ByPermissionPoliciesCount(opts ...sql.OrderTermOption) OrderOption
ByPermissionPoliciesCount orders the results by permission_policies count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.