Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Resource) predicate.Resource
- func HasOwner() predicate.Resource
- func HasOwnerWith(preds ...predicate.Group) predicate.Resource
- func ID(id uuid.UUID) predicate.Resource
- func IDEQ(id uuid.UUID) predicate.Resource
- func IDGT(id uuid.UUID) predicate.Resource
- func IDGTE(id uuid.UUID) predicate.Resource
- func IDIn(ids ...uuid.UUID) predicate.Resource
- func IDLT(id uuid.UUID) predicate.Resource
- func IDLTE(id uuid.UUID) predicate.Resource
- func IDNEQ(id uuid.UUID) predicate.Resource
- func IDNotIn(ids ...uuid.UUID) predicate.Resource
- func Name(v string) predicate.Resource
- func NameContains(v string) predicate.Resource
- func NameContainsFold(v string) predicate.Resource
- func NameEQ(v string) predicate.Resource
- func NameEqualFold(v string) predicate.Resource
- func NameGT(v string) predicate.Resource
- func NameGTE(v string) predicate.Resource
- func NameHasPrefix(v string) predicate.Resource
- func NameHasSuffix(v string) predicate.Resource
- func NameIn(vs ...string) predicate.Resource
- func NameLT(v string) predicate.Resource
- func NameLTE(v string) predicate.Resource
- func NameNEQ(v string) predicate.Resource
- func NameNotIn(vs ...string) predicate.Resource
- func Not(p predicate.Resource) predicate.Resource
- func Or(predicates ...predicate.Resource) predicate.Resource
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the resource type in the database. Label = "resource" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAcls holds the string denoting the acls field in the database. FieldAcls = "acls" // FieldDefault holds the string denoting the default field in the database. FieldDefault = "default" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the resource in the database. Table = "resources" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "resources" // OwnerInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. OwnerInverseTable = "groups" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "group_resources" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldAcls, FieldDefault, }
Columns holds all SQL columns for resource fields.
var ForeignKeys = []string{
"group_resources",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "resources" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.