file

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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 And

func And(predicates ...predicate.File) predicate.File

And groups predicates with the AND operator between them.

func Group

func Group(v string) predicate.File

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains

func GroupContains(v string) predicate.File

GroupContains applies the Contains predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.File

GroupEQ applies the EQ predicate on the "group" field.

func GroupGT

func GroupGT(v string) predicate.File

GroupGT applies the GT predicate on the "group" field.

func GroupGTE

func GroupGTE(v string) predicate.File

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix

func GroupHasPrefix(v string) predicate.File

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix

func GroupHasSuffix(v string) predicate.File

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn

func GroupIn(vs ...string) predicate.File

GroupIn applies the In predicate on the "group" field.

func GroupIsNil

func GroupIsNil() predicate.File

GroupIsNil applies the IsNil predicate on the "group" field.

func GroupLT

func GroupLT(v string) predicate.File

GroupLT applies the LT predicate on the "group" field.

func GroupLTE

func GroupLTE(v string) predicate.File

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ

func GroupNEQ(v string) predicate.File

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn

func GroupNotIn(vs ...string) predicate.File

GroupNotIn applies the NotIn predicate on the "group" field.

func GroupNotNil

func GroupNotNil() predicate.File

GroupNotNil applies the NotNil predicate on the "group" field.

func HasField

func HasField() predicate.File

HasField applies the HasEdge predicate on the "field" edge.

func HasFieldWith

func HasFieldWith(preds ...predicate.FieldType) predicate.File

HasFieldWith applies the HasEdge predicate on the "field" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.File

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.File

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasType

func HasType() predicate.File

HasType applies the HasEdge predicate on the "type" edge.

func HasTypeWith

func HasTypeWith(preds ...predicate.FileType) predicate.File

HasTypeWith applies the HasEdge predicate on the "type" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.File

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.File

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.File

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.File

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.File

NameContains applies the Contains predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.File

NameEQ applies the EQ predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.File

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.File

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.File

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.File

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.File

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.File

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.File

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.File

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.File

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Op

func Op(v bool) predicate.File

Op applies equality check predicate on the "op" field. It's identical to OpEQ.

func OpEQ

func OpEQ(v bool) predicate.File

OpEQ applies the EQ predicate on the "op" field.

func OpIsNil

func OpIsNil() predicate.File

OpIsNil applies the IsNil predicate on the "op" field.

func OpNEQ

func OpNEQ(v bool) predicate.File

OpNEQ applies the NEQ predicate on the "op" field.

func OpNotNil

func OpNotNil() predicate.File

OpNotNil applies the NotNil predicate on the "op" field.

func Or

func Or(predicates ...predicate.File) predicate.File

Or groups predicates with the OR operator between them.

func Size

func Size(v int) predicate.File

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v int) predicate.File

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v int) predicate.File

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v int) predicate.File

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...int) predicate.File

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v int) predicate.File

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v int) predicate.File

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v int) predicate.File

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...int) predicate.File

SizeNotIn applies the NotIn predicate on the "size" field.

func User

func User(v string) predicate.File

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains

func UserContains(v string) predicate.File

UserContains applies the Contains predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.File

UserEQ applies the EQ predicate on the "user" field.

func UserGT

func UserGT(v string) predicate.File

UserGT applies the GT predicate on the "user" field.

func UserGTE

func UserGTE(v string) predicate.File

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix

func UserHasPrefix(v string) predicate.File

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix

func UserHasSuffix(v string) predicate.File

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn

func UserIn(vs ...string) predicate.File

UserIn applies the In predicate on the "user" field.

func UserIsNil

func UserIsNil() predicate.File

UserIsNil applies the IsNil predicate on the "user" field.

func UserLT

func UserLT(v string) predicate.File

UserLT applies the LT predicate on the "user" field.

func UserLTE

func UserLTE(v string) predicate.File

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ

func UserNEQ(v string) predicate.File

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn

func UserNotIn(vs ...string) predicate.File

UserNotIn applies the NotIn predicate on the "user" field.

func UserNotNil

func UserNotNil() predicate.File

UserNotNil applies the NotNil predicate on the "user" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL