Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Group(v string) predicate.File
- func GroupContains(v string) predicate.File
- func GroupEQ(v string) predicate.File
- func GroupGT(v string) predicate.File
- func GroupGTE(v string) predicate.File
- func GroupHasPrefix(v string) predicate.File
- func GroupHasSuffix(v string) predicate.File
- func GroupIn(vs ...string) predicate.File
- func GroupIsNil() predicate.File
- func GroupLT(v string) predicate.File
- func GroupLTE(v string) predicate.File
- func GroupNEQ(v string) predicate.File
- func GroupNotIn(vs ...string) predicate.File
- func GroupNotNil() predicate.File
- func HasField() predicate.File
- func HasFieldWith(preds ...predicate.FieldType) predicate.File
- func HasOwner() predicate.File
- func HasOwnerWith(preds ...predicate.User) predicate.File
- func HasType() predicate.File
- func HasTypeWith(preds ...predicate.FileType) predicate.File
- func ID(id string) predicate.File
- func IDEQ(id string) predicate.File
- func IDGT(id string) predicate.File
- func IDGTE(id string) predicate.File
- func IDIn(ids ...string) predicate.File
- func IDLT(id string) predicate.File
- func IDLTE(id string) predicate.File
- func IDNEQ(id string) predicate.File
- func IDNotIn(ids ...string) predicate.File
- func Name(v string) predicate.File
- func NameContains(v string) predicate.File
- func NameEQ(v string) predicate.File
- func NameGT(v string) predicate.File
- func NameGTE(v string) predicate.File
- func NameHasPrefix(v string) predicate.File
- func NameHasSuffix(v string) predicate.File
- func NameIn(vs ...string) predicate.File
- func NameLT(v string) predicate.File
- func NameLTE(v string) predicate.File
- func NameNEQ(v string) predicate.File
- func NameNotIn(vs ...string) predicate.File
- func Not(p predicate.File) predicate.File
- func Op(v bool) predicate.File
- func OpEQ(v bool) predicate.File
- func OpIsNil() predicate.File
- func OpNEQ(v bool) predicate.File
- func OpNotNil() predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func Size(v int) predicate.File
- func SizeEQ(v int) predicate.File
- func SizeGT(v int) predicate.File
- func SizeGTE(v int) predicate.File
- func SizeIn(vs ...int) predicate.File
- func SizeLT(v int) predicate.File
- func SizeLTE(v int) predicate.File
- func SizeNEQ(v int) predicate.File
- func SizeNotIn(vs ...int) predicate.File
- func User(v string) predicate.File
- func UserContains(v string) predicate.File
- func UserEQ(v string) predicate.File
- func UserGT(v string) predicate.File
- func UserGTE(v string) predicate.File
- func UserHasPrefix(v string) predicate.File
- func UserHasSuffix(v string) predicate.File
- func UserIn(vs ...string) predicate.File
- func UserIsNil() predicate.File
- func UserLT(v string) predicate.File
- func UserLTE(v string) predicate.File
- func UserNEQ(v string) predicate.File
- func UserNotIn(vs ...string) predicate.File
- func UserNotNil() predicate.File
Constants ¶
const ( // Label holds the string label denoting the file type in the database. Label = "file" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSize holds the string denoting the size field in the database. FieldSize = "fsize" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldUser holds the string denoting the user field in the database. FieldUser = "user" // FieldGroup holds the string denoting the group field in the database. FieldGroup = "group" // FieldOp holds the string denoting the op field in the database. FieldOp = "op" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeType holds the string denoting the type edge name in mutations. EdgeType = "type" // EdgeField holds the string denoting the field edge name in mutations. EdgeField = "field" // OwnerInverseLabel holds the string label denoting the owner inverse edge type in the database. OwnerInverseLabel = "user_files" // TypeInverseLabel holds the string label denoting the type inverse edge type in the database. TypeInverseLabel = "file_type_files" // FieldLabel holds the string label denoting the field edge type in the database. FieldLabel = "file_field" )
Variables ¶
var ( // DefaultSize holds the default value on creation for the size field. DefaultSize int // SizeValidator is a validator for the "size" field. It is called by the builders before save. SizeValidator func(int) error )
Functions ¶
func Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupIsNil ¶
GroupIsNil applies the IsNil predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func GroupNotNil ¶
GroupNotNil applies the NotNil predicate on the "group" field.
func HasFieldWith ¶
HasFieldWith applies the HasEdge predicate on the "field" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTypeWith ¶
HasTypeWith applies the HasEdge predicate on the "type" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains 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 Op ¶ added in v0.4.3
Op applies equality check predicate on the "op" field. It's identical to OpEQ.
func UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserHasPrefix ¶
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
UserHasSuffix applies the HasSuffix predicate on the "user" field.
func UserNotNil ¶
UserNotNil applies the NotNil predicate on the "user" field.
Types ¶
This section is empty.