Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.File) predicate.File
- func Dir(v string) predicate.File
- func DirContains(v string) predicate.File
- func DirContainsFold(v string) predicate.File
- func DirEQ(v string) predicate.File
- func DirEqualFold(v string) predicate.File
- func DirGT(v string) predicate.File
- func DirGTE(v string) predicate.File
- func DirHasPrefix(v string) predicate.File
- func DirHasSuffix(v string) predicate.File
- func DirIn(vs ...string) predicate.File
- func DirLT(v string) predicate.File
- func DirLTE(v string) predicate.File
- func DirNEQ(v string) predicate.File
- func DirNotIn(vs ...string) predicate.File
- func Group(v string) predicate.File
- func GroupContains(v string) predicate.File
- func GroupContainsFold(v string) predicate.File
- func GroupEQ(v string) predicate.File
- func GroupEqualFold(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 GroupLT(v string) predicate.File
- func GroupLTE(v string) predicate.File
- func GroupNEQ(v string) predicate.File
- func GroupNotIn(vs ...string) predicate.File
- func HasSet() predicate.File
- func HasSetWith(preds ...predicate.Set) predicate.File
- func ID(id int) predicate.File
- func IDEQ(id int) predicate.File
- func IDGT(id int) predicate.File
- func IDGTE(id int) predicate.File
- func IDIn(ids ...int) predicate.File
- func IDLT(id int) predicate.File
- func IDLTE(id int) predicate.File
- func IDNEQ(id int) predicate.File
- func IDNotIn(ids ...int) predicate.File
- func LinkTarget(v []byte) predicate.File
- func LinkTargetEQ(v []byte) predicate.File
- func LinkTargetGT(v []byte) predicate.File
- func LinkTargetGTE(v []byte) predicate.File
- func LinkTargetIn(vs ...[]byte) predicate.File
- func LinkTargetIsNil() predicate.File
- func LinkTargetLT(v []byte) predicate.File
- func LinkTargetLTE(v []byte) predicate.File
- func LinkTargetNEQ(v []byte) predicate.File
- func LinkTargetNotIn(vs ...[]byte) predicate.File
- func LinkTargetNotNil() predicate.File
- func Lost(v bool) predicate.File
- func LostEQ(v bool) predicate.File
- func LostNEQ(v bool) predicate.File
- func Mode(v uint32) predicate.File
- func ModeEQ(v uint32) predicate.File
- func ModeGT(v uint32) predicate.File
- func ModeGTE(v uint32) predicate.File
- func ModeIn(vs ...uint32) predicate.File
- func ModeLT(v uint32) predicate.File
- func ModeLTE(v uint32) predicate.File
- func ModeNEQ(v uint32) predicate.File
- func ModeNotIn(vs ...uint32) predicate.File
- func MtimeNs(v int64) predicate.File
- func MtimeNsEQ(v int64) predicate.File
- func MtimeNsGT(v int64) predicate.File
- func MtimeNsGTE(v int64) predicate.File
- func MtimeNsIn(vs ...int64) predicate.File
- func MtimeNsLT(v int64) predicate.File
- func MtimeNsLTE(v int64) predicate.File
- func MtimeNsNEQ(v int64) predicate.File
- func MtimeNsNotIn(vs ...int64) predicate.File
- func Not(p predicate.File) predicate.File
- func Or(predicates ...predicate.File) predicate.File
- func Path(v string) predicate.File
- func PathContains(v string) predicate.File
- func PathContainsFold(v string) predicate.File
- func PathEQ(v string) predicate.File
- func PathEqualFold(v string) predicate.File
- func PathGT(v string) predicate.File
- func PathGTE(v string) predicate.File
- func PathHasPrefix(v string) predicate.File
- func PathHasSuffix(v string) predicate.File
- func PathIn(vs ...string) predicate.File
- func PathLT(v string) predicate.File
- func PathLTE(v string) predicate.File
- func PathNEQ(v string) predicate.File
- func PathNotIn(vs ...string) predicate.File
- func Ref(v []byte) predicate.File
- func RefEQ(v []byte) predicate.File
- func RefGT(v []byte) predicate.File
- func RefGTE(v []byte) predicate.File
- func RefIn(vs ...[]byte) predicate.File
- func RefIsNil() predicate.File
- func RefLT(v []byte) predicate.File
- func RefLTE(v []byte) predicate.File
- func RefNEQ(v []byte) predicate.File
- func RefNotIn(vs ...[]byte) predicate.File
- func RefNotNil() predicate.File
- func SetID(v int64) predicate.File
- func SetIDEQ(v int64) predicate.File
- func SetIDIn(vs ...int64) predicate.File
- func SetIDNEQ(v int64) predicate.File
- func SetIDNotIn(vs ...int64) predicate.File
- func Size(v int64) predicate.File
- func SizeEQ(v int64) predicate.File
- func SizeGT(v int64) predicate.File
- func SizeGTE(v int64) predicate.File
- func SizeIn(vs ...int64) predicate.File
- func SizeLT(v int64) predicate.File
- func SizeLTE(v int64) predicate.File
- func SizeNEQ(v int64) predicate.File
- func SizeNotIn(vs ...int64) predicate.File
- func Type(v uint32) predicate.File
- func TypeEQ(v uint32) predicate.File
- func TypeGT(v uint32) predicate.File
- func TypeGTE(v uint32) predicate.File
- func TypeIn(vs ...uint32) predicate.File
- func TypeLT(v uint32) predicate.File
- func TypeLTE(v uint32) predicate.File
- func TypeNEQ(v uint32) predicate.File
- func TypeNotIn(vs ...uint32) predicate.File
- func User(v string) predicate.File
- func UserContains(v string) predicate.File
- func UserContainsFold(v string) predicate.File
- func UserEQ(v string) predicate.File
- func UserEqualFold(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 UserLT(v string) predicate.File
- func UserLTE(v string) predicate.File
- func UserNEQ(v string) predicate.File
- func UserNotIn(vs ...string) predicate.File
- func ValidColumn(column string) bool
- func ValidFrom(v time.Time) predicate.File
- func ValidFromEQ(v time.Time) predicate.File
- func ValidFromGT(v time.Time) predicate.File
- func ValidFromGTE(v time.Time) predicate.File
- func ValidFromIn(vs ...time.Time) predicate.File
- func ValidFromLT(v time.Time) predicate.File
- func ValidFromLTE(v time.Time) predicate.File
- func ValidFromNEQ(v time.Time) predicate.File
- func ValidFromNotIn(vs ...time.Time) predicate.File
- func ValidUntil(v time.Time) predicate.File
- func ValidUntilEQ(v time.Time) predicate.File
- func ValidUntilGT(v time.Time) predicate.File
- func ValidUntilGTE(v time.Time) predicate.File
- func ValidUntilIn(vs ...time.Time) predicate.File
- func ValidUntilIsNil() predicate.File
- func ValidUntilLT(v time.Time) predicate.File
- func ValidUntilLTE(v time.Time) predicate.File
- func ValidUntilNEQ(v time.Time) predicate.File
- func ValidUntilNotIn(vs ...time.Time) predicate.File
- func ValidUntilNotNil() predicate.File
- type OrderOption
- func ByDir(opts ...sql.OrderTermOption) OrderOption
- func ByGroup(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLost(opts ...sql.OrderTermOption) OrderOption
- func ByMode(opts ...sql.OrderTermOption) OrderOption
- func ByMtimeNs(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func BySetField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySetID(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUser(opts ...sql.OrderTermOption) OrderOption
- func ByValidFrom(opts ...sql.OrderTermOption) OrderOption
- func ByValidUntil(opts ...sql.OrderTermOption) OrderOption
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" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldSetID, FieldPath, FieldDir, FieldValidFrom, FieldValidUntil, FieldRef, FieldMtimeNs, FieldMode, FieldUser, FieldGroup, FieldSize, FieldType, FieldLinkTarget, FieldLost, }
Columns holds all SQL columns for file fields.
Functions ¶
func DirContains ¶
DirContains applies the Contains predicate on the "dir" field.
func DirContainsFold ¶
DirContainsFold applies the ContainsFold predicate on the "dir" field.
func DirEqualFold ¶
DirEqualFold applies the EqualFold predicate on the "dir" field.
func DirHasPrefix ¶
DirHasPrefix applies the HasPrefix predicate on the "dir" field.
func DirHasSuffix ¶
DirHasSuffix applies the HasSuffix predicate on the "dir" field.
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 GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold 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 GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func HasSetWith ¶
HasSetWith applies the HasEdge predicate on the "set" edge with a given conditions (other predicates).
func LinkTarget ¶
LinkTarget applies equality check predicate on the "link_target" field. It's identical to LinkTargetEQ.
func LinkTargetEQ ¶
LinkTargetEQ applies the EQ predicate on the "link_target" field.
func LinkTargetGT ¶
LinkTargetGT applies the GT predicate on the "link_target" field.
func LinkTargetGTE ¶
LinkTargetGTE applies the GTE predicate on the "link_target" field.
func LinkTargetIn ¶
LinkTargetIn applies the In predicate on the "link_target" field.
func LinkTargetIsNil ¶
LinkTargetIsNil applies the IsNil predicate on the "link_target" field.
func LinkTargetLT ¶
LinkTargetLT applies the LT predicate on the "link_target" field.
func LinkTargetLTE ¶
LinkTargetLTE applies the LTE predicate on the "link_target" field.
func LinkTargetNEQ ¶
LinkTargetNEQ applies the NEQ predicate on the "link_target" field.
func LinkTargetNotIn ¶
LinkTargetNotIn applies the NotIn predicate on the "link_target" field.
func LinkTargetNotNil ¶
LinkTargetNotNil applies the NotNil predicate on the "link_target" field.
func MtimeNs ¶
MtimeNs applies equality check predicate on the "mtime_ns" field. It's identical to MtimeNsEQ.
func MtimeNsGTE ¶
MtimeNsGTE applies the GTE predicate on the "mtime_ns" field.
func MtimeNsLTE ¶
MtimeNsLTE applies the LTE predicate on the "mtime_ns" field.
func MtimeNsNEQ ¶
MtimeNsNEQ applies the NEQ predicate on the "mtime_ns" field.
func MtimeNsNotIn ¶
MtimeNsNotIn applies the NotIn predicate on the "mtime_ns" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func SetID ¶
SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.
func SetIDNotIn ¶
SetIDNotIn applies the NotIn predicate on the "set_id" field.
func UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEqualFold ¶
UserEqualFold applies the EqualFold 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValidFrom ¶
ValidFrom applies equality check predicate on the "valid_from" field. It's identical to ValidFromEQ.
func ValidFromEQ ¶
ValidFromEQ applies the EQ predicate on the "valid_from" field.
func ValidFromGT ¶
ValidFromGT applies the GT predicate on the "valid_from" field.
func ValidFromGTE ¶
ValidFromGTE applies the GTE predicate on the "valid_from" field.
func ValidFromIn ¶
ValidFromIn applies the In predicate on the "valid_from" field.
func ValidFromLT ¶
ValidFromLT applies the LT predicate on the "valid_from" field.
func ValidFromLTE ¶
ValidFromLTE applies the LTE predicate on the "valid_from" field.
func ValidFromNEQ ¶
ValidFromNEQ applies the NEQ predicate on the "valid_from" field.
func ValidFromNotIn ¶
ValidFromNotIn applies the NotIn predicate on the "valid_from" field.
func ValidUntil ¶
ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.
func ValidUntilEQ ¶
ValidUntilEQ applies the EQ predicate on the "valid_until" field.
func ValidUntilGT ¶
ValidUntilGT applies the GT predicate on the "valid_until" field.
func ValidUntilGTE ¶
ValidUntilGTE applies the GTE predicate on the "valid_until" field.
func ValidUntilIn ¶
ValidUntilIn applies the In predicate on the "valid_until" field.
func ValidUntilIsNil ¶
ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.
func ValidUntilLT ¶
ValidUntilLT applies the LT predicate on the "valid_until" field.
func ValidUntilLTE ¶
ValidUntilLTE applies the LTE predicate on the "valid_until" field.
func ValidUntilNEQ ¶
ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.
func ValidUntilNotIn ¶
ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.
func ValidUntilNotNil ¶
ValidUntilNotNil applies the NotNil predicate on the "valid_until" field.
Types ¶
type OrderOption ¶
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.