file

package
v1.66.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 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"
	// FieldSetID holds the string denoting the set_id field in the database.
	FieldSetID = "set_id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldDir holds the string denoting the dir field in the database.
	FieldDir = "dir"
	// FieldValidFrom holds the string denoting the valid_from field in the database.
	FieldValidFrom = "valid_from"
	// FieldValidUntil holds the string denoting the valid_until field in the database.
	FieldValidUntil = "valid_until"
	// FieldRef holds the string denoting the ref field in the database.
	FieldRef = "ref"
	// FieldMtimeNs holds the string denoting the mtime_ns field in the database.
	FieldMtimeNs = "mtime_ns"
	// FieldMode holds the string denoting the mode field in the database.
	FieldMode = "mode"
	// 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"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldLinkTarget holds the string denoting the link_target field in the database.
	FieldLinkTarget = "link_target"
	// FieldLost holds the string denoting the lost field in the database.
	FieldLost = "lost"
	// EdgeSet holds the string denoting the set edge name in mutations.
	EdgeSet = "set"
	// Table holds the table name of the file in the database.
	Table = "files"
	// SetTable is the table that holds the set relation/edge.
	SetTable = "files"
	// SetInverseTable is the table name for the Set entity.
	// It exists in this package in order to avoid circular dependency with the "set" package.
	SetInverseTable = "sets"
	// SetColumn is the table column denoting the set relation/edge.
	SetColumn = "set_id"
)

Variables

View Source
var (
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType uint32
	// DefaultLost holds the default value on creation for the "lost" field.
	DefaultLost bool
)

Columns holds all SQL columns for file fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func Dir

func Dir(v string) predicate.File

Dir applies equality check predicate on the "dir" field. It's identical to DirEQ.

func DirContains

func DirContains(v string) predicate.File

DirContains applies the Contains predicate on the "dir" field.

func DirContainsFold

func DirContainsFold(v string) predicate.File

DirContainsFold applies the ContainsFold predicate on the "dir" field.

func DirEQ

func DirEQ(v string) predicate.File

DirEQ applies the EQ predicate on the "dir" field.

func DirEqualFold

func DirEqualFold(v string) predicate.File

DirEqualFold applies the EqualFold predicate on the "dir" field.

func DirGT

func DirGT(v string) predicate.File

DirGT applies the GT predicate on the "dir" field.

func DirGTE

func DirGTE(v string) predicate.File

DirGTE applies the GTE predicate on the "dir" field.

func DirHasPrefix

func DirHasPrefix(v string) predicate.File

DirHasPrefix applies the HasPrefix predicate on the "dir" field.

func DirHasSuffix

func DirHasSuffix(v string) predicate.File

DirHasSuffix applies the HasSuffix predicate on the "dir" field.

func DirIn

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

DirIn applies the In predicate on the "dir" field.

func DirLT

func DirLT(v string) predicate.File

DirLT applies the LT predicate on the "dir" field.

func DirLTE

func DirLTE(v string) predicate.File

DirLTE applies the LTE predicate on the "dir" field.

func DirNEQ

func DirNEQ(v string) predicate.File

DirNEQ applies the NEQ predicate on the "dir" field.

func DirNotIn

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

DirNotIn applies the NotIn predicate on the "dir" field.

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 GroupContainsFold

func GroupContainsFold(v string) predicate.File

GroupContainsFold applies the ContainsFold predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.File

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

func GroupEqualFold

func GroupEqualFold(v string) predicate.File

GroupEqualFold applies the EqualFold 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 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 HasSet

func HasSet() predicate.File

HasSet applies the HasEdge predicate on the "set" edge.

func HasSetWith

func HasSetWith(preds ...predicate.Set) predicate.File

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

func ID

func ID(id int) predicate.File

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.File

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.File

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.File

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.File

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.File

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.File

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LinkTarget

func LinkTarget(v []byte) predicate.File

LinkTarget applies equality check predicate on the "link_target" field. It's identical to LinkTargetEQ.

func LinkTargetEQ

func LinkTargetEQ(v []byte) predicate.File

LinkTargetEQ applies the EQ predicate on the "link_target" field.

func LinkTargetGT

func LinkTargetGT(v []byte) predicate.File

LinkTargetGT applies the GT predicate on the "link_target" field.

func LinkTargetGTE

func LinkTargetGTE(v []byte) predicate.File

LinkTargetGTE applies the GTE predicate on the "link_target" field.

func LinkTargetIn

func LinkTargetIn(vs ...[]byte) predicate.File

LinkTargetIn applies the In predicate on the "link_target" field.

func LinkTargetIsNil

func LinkTargetIsNil() predicate.File

LinkTargetIsNil applies the IsNil predicate on the "link_target" field.

func LinkTargetLT

func LinkTargetLT(v []byte) predicate.File

LinkTargetLT applies the LT predicate on the "link_target" field.

func LinkTargetLTE

func LinkTargetLTE(v []byte) predicate.File

LinkTargetLTE applies the LTE predicate on the "link_target" field.

func LinkTargetNEQ

func LinkTargetNEQ(v []byte) predicate.File

LinkTargetNEQ applies the NEQ predicate on the "link_target" field.

func LinkTargetNotIn

func LinkTargetNotIn(vs ...[]byte) predicate.File

LinkTargetNotIn applies the NotIn predicate on the "link_target" field.

func LinkTargetNotNil

func LinkTargetNotNil() predicate.File

LinkTargetNotNil applies the NotNil predicate on the "link_target" field.

func Lost

func Lost(v bool) predicate.File

Lost applies equality check predicate on the "lost" field. It's identical to LostEQ.

func LostEQ

func LostEQ(v bool) predicate.File

LostEQ applies the EQ predicate on the "lost" field.

func LostNEQ

func LostNEQ(v bool) predicate.File

LostNEQ applies the NEQ predicate on the "lost" field.

func Mode

func Mode(v uint32) predicate.File

Mode applies equality check predicate on the "mode" field. It's identical to ModeEQ.

func ModeEQ

func ModeEQ(v uint32) predicate.File

ModeEQ applies the EQ predicate on the "mode" field.

func ModeGT

func ModeGT(v uint32) predicate.File

ModeGT applies the GT predicate on the "mode" field.

func ModeGTE

func ModeGTE(v uint32) predicate.File

ModeGTE applies the GTE predicate on the "mode" field.

func ModeIn

func ModeIn(vs ...uint32) predicate.File

ModeIn applies the In predicate on the "mode" field.

func ModeLT

func ModeLT(v uint32) predicate.File

ModeLT applies the LT predicate on the "mode" field.

func ModeLTE

func ModeLTE(v uint32) predicate.File

ModeLTE applies the LTE predicate on the "mode" field.

func ModeNEQ

func ModeNEQ(v uint32) predicate.File

ModeNEQ applies the NEQ predicate on the "mode" field.

func ModeNotIn

func ModeNotIn(vs ...uint32) predicate.File

ModeNotIn applies the NotIn predicate on the "mode" field.

func MtimeNs

func MtimeNs(v int64) predicate.File

MtimeNs applies equality check predicate on the "mtime_ns" field. It's identical to MtimeNsEQ.

func MtimeNsEQ

func MtimeNsEQ(v int64) predicate.File

MtimeNsEQ applies the EQ predicate on the "mtime_ns" field.

func MtimeNsGT

func MtimeNsGT(v int64) predicate.File

MtimeNsGT applies the GT predicate on the "mtime_ns" field.

func MtimeNsGTE

func MtimeNsGTE(v int64) predicate.File

MtimeNsGTE applies the GTE predicate on the "mtime_ns" field.

func MtimeNsIn

func MtimeNsIn(vs ...int64) predicate.File

MtimeNsIn applies the In predicate on the "mtime_ns" field.

func MtimeNsLT

func MtimeNsLT(v int64) predicate.File

MtimeNsLT applies the LT predicate on the "mtime_ns" field.

func MtimeNsLTE

func MtimeNsLTE(v int64) predicate.File

MtimeNsLTE applies the LTE predicate on the "mtime_ns" field.

func MtimeNsNEQ

func MtimeNsNEQ(v int64) predicate.File

MtimeNsNEQ applies the NEQ predicate on the "mtime_ns" field.

func MtimeNsNotIn

func MtimeNsNotIn(vs ...int64) predicate.File

MtimeNsNotIn applies the NotIn predicate on the "mtime_ns" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.File

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.File

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.File

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.File

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.File

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.File

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.File

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.File

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.File

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

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

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.File

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.File

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.File

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

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

PathNotIn applies the NotIn predicate on the "path" field.

func Ref

func Ref(v []byte) predicate.File

Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.

func RefEQ

func RefEQ(v []byte) predicate.File

RefEQ applies the EQ predicate on the "ref" field.

func RefGT

func RefGT(v []byte) predicate.File

RefGT applies the GT predicate on the "ref" field.

func RefGTE

func RefGTE(v []byte) predicate.File

RefGTE applies the GTE predicate on the "ref" field.

func RefIn

func RefIn(vs ...[]byte) predicate.File

RefIn applies the In predicate on the "ref" field.

func RefIsNil

func RefIsNil() predicate.File

RefIsNil applies the IsNil predicate on the "ref" field.

func RefLT

func RefLT(v []byte) predicate.File

RefLT applies the LT predicate on the "ref" field.

func RefLTE

func RefLTE(v []byte) predicate.File

RefLTE applies the LTE predicate on the "ref" field.

func RefNEQ

func RefNEQ(v []byte) predicate.File

RefNEQ applies the NEQ predicate on the "ref" field.

func RefNotIn

func RefNotIn(vs ...[]byte) predicate.File

RefNotIn applies the NotIn predicate on the "ref" field.

func RefNotNil

func RefNotNil() predicate.File

RefNotNil applies the NotNil predicate on the "ref" field.

func SetID

func SetID(v int64) predicate.File

SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.

func SetIDEQ

func SetIDEQ(v int64) predicate.File

SetIDEQ applies the EQ predicate on the "set_id" field.

func SetIDIn

func SetIDIn(vs ...int64) predicate.File

SetIDIn applies the In predicate on the "set_id" field.

func SetIDNEQ

func SetIDNEQ(v int64) predicate.File

SetIDNEQ applies the NEQ predicate on the "set_id" field.

func SetIDNotIn

func SetIDNotIn(vs ...int64) predicate.File

SetIDNotIn applies the NotIn predicate on the "set_id" field.

func Size

func Size(v int64) predicate.File

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

func SizeEQ

func SizeEQ(v int64) predicate.File

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

func SizeGT

func SizeGT(v int64) predicate.File

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

func SizeGTE

func SizeGTE(v int64) predicate.File

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

func SizeIn

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

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

func SizeLT

func SizeLT(v int64) predicate.File

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

func SizeLTE

func SizeLTE(v int64) predicate.File

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

func SizeNEQ

func SizeNEQ(v int64) predicate.File

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

func SizeNotIn

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

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

func Type

func Type(v uint32) predicate.File

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeEQ

func TypeEQ(v uint32) predicate.File

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT

func TypeGT(v uint32) predicate.File

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v uint32) predicate.File

TypeGTE applies the GTE predicate on the "type" field.

func TypeIn

func TypeIn(vs ...uint32) predicate.File

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v uint32) predicate.File

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v uint32) predicate.File

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v uint32) predicate.File

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...uint32) predicate.File

TypeNotIn applies the NotIn predicate on the "type" 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 UserContainsFold

func UserContainsFold(v string) predicate.File

UserContainsFold applies the ContainsFold predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.File

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

func UserEqualFold

func UserEqualFold(v string) predicate.File

UserEqualFold applies the EqualFold 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 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 ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func ValidFrom

func ValidFrom(v time.Time) predicate.File

ValidFrom applies equality check predicate on the "valid_from" field. It's identical to ValidFromEQ.

func ValidFromEQ

func ValidFromEQ(v time.Time) predicate.File

ValidFromEQ applies the EQ predicate on the "valid_from" field.

func ValidFromGT

func ValidFromGT(v time.Time) predicate.File

ValidFromGT applies the GT predicate on the "valid_from" field.

func ValidFromGTE

func ValidFromGTE(v time.Time) predicate.File

ValidFromGTE applies the GTE predicate on the "valid_from" field.

func ValidFromIn

func ValidFromIn(vs ...time.Time) predicate.File

ValidFromIn applies the In predicate on the "valid_from" field.

func ValidFromLT

func ValidFromLT(v time.Time) predicate.File

ValidFromLT applies the LT predicate on the "valid_from" field.

func ValidFromLTE

func ValidFromLTE(v time.Time) predicate.File

ValidFromLTE applies the LTE predicate on the "valid_from" field.

func ValidFromNEQ

func ValidFromNEQ(v time.Time) predicate.File

ValidFromNEQ applies the NEQ predicate on the "valid_from" field.

func ValidFromNotIn

func ValidFromNotIn(vs ...time.Time) predicate.File

ValidFromNotIn applies the NotIn predicate on the "valid_from" field.

func ValidUntil

func ValidUntil(v time.Time) predicate.File

ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.

func ValidUntilEQ

func ValidUntilEQ(v time.Time) predicate.File

ValidUntilEQ applies the EQ predicate on the "valid_until" field.

func ValidUntilGT

func ValidUntilGT(v time.Time) predicate.File

ValidUntilGT applies the GT predicate on the "valid_until" field.

func ValidUntilGTE

func ValidUntilGTE(v time.Time) predicate.File

ValidUntilGTE applies the GTE predicate on the "valid_until" field.

func ValidUntilIn

func ValidUntilIn(vs ...time.Time) predicate.File

ValidUntilIn applies the In predicate on the "valid_until" field.

func ValidUntilIsNil

func ValidUntilIsNil() predicate.File

ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.

func ValidUntilLT

func ValidUntilLT(v time.Time) predicate.File

ValidUntilLT applies the LT predicate on the "valid_until" field.

func ValidUntilLTE

func ValidUntilLTE(v time.Time) predicate.File

ValidUntilLTE applies the LTE predicate on the "valid_until" field.

func ValidUntilNEQ

func ValidUntilNEQ(v time.Time) predicate.File

ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.

func ValidUntilNotIn

func ValidUntilNotIn(vs ...time.Time) predicate.File

ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.

func ValidUntilNotNil

func ValidUntilNotNil() predicate.File

ValidUntilNotNil applies the NotNil predicate on the "valid_until" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the File queries.

func ByDir

func ByDir(opts ...sql.OrderTermOption) OrderOption

ByDir orders the results by the dir field.

func ByGroup

func ByGroup(opts ...sql.OrderTermOption) OrderOption

ByGroup orders the results by the group field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLost

func ByLost(opts ...sql.OrderTermOption) OrderOption

ByLost orders the results by the lost field.

func ByMode

func ByMode(opts ...sql.OrderTermOption) OrderOption

ByMode orders the results by the mode field.

func ByMtimeNs

func ByMtimeNs(opts ...sql.OrderTermOption) OrderOption

ByMtimeNs orders the results by the mtime_ns field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func BySetField

func BySetField(field string, opts ...sql.OrderTermOption) OrderOption

BySetField orders the results by set field.

func BySetID

func BySetID(opts ...sql.OrderTermOption) OrderOption

BySetID orders the results by the set_id field.

func BySize

func BySize(opts ...sql.OrderTermOption) OrderOption

BySize orders the results by the size field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUser

func ByUser(opts ...sql.OrderTermOption) OrderOption

ByUser orders the results by the user field.

func ByValidFrom

func ByValidFrom(opts ...sql.OrderTermOption) OrderOption

ByValidFrom orders the results by the valid_from field.

func ByValidUntil

func ByValidUntil(opts ...sql.OrderTermOption) OrderOption

ByValidUntil orders the results by the valid_until field.

Jump to

Keyboard shortcuts

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