Documentation
¶
Index ¶
- Constants
- Variables
- func AloneSize(v int64) predicate.Set
- func AloneSizeEQ(v int64) predicate.Set
- func AloneSizeGT(v int64) predicate.Set
- func AloneSizeGTE(v int64) predicate.Set
- func AloneSizeIn(vs ...int64) predicate.Set
- func AloneSizeIsNil() predicate.Set
- func AloneSizeLT(v int64) predicate.Set
- func AloneSizeLTE(v int64) predicate.Set
- func AloneSizeNEQ(v int64) predicate.Set
- func AloneSizeNotIn(vs ...int64) predicate.Set
- func AloneSizeNotNil() predicate.Set
- func And(predicates ...predicate.Set) predicate.Set
- func DeduplicatedAloneSize(v int64) predicate.Set
- func DeduplicatedAloneSizeEQ(v int64) predicate.Set
- func DeduplicatedAloneSizeGT(v int64) predicate.Set
- func DeduplicatedAloneSizeGTE(v int64) predicate.Set
- func DeduplicatedAloneSizeIn(vs ...int64) predicate.Set
- func DeduplicatedAloneSizeIsNil() predicate.Set
- func DeduplicatedAloneSizeLT(v int64) predicate.Set
- func DeduplicatedAloneSizeLTE(v int64) predicate.Set
- func DeduplicatedAloneSizeNEQ(v int64) predicate.Set
- func DeduplicatedAloneSizeNotIn(vs ...int64) predicate.Set
- func DeduplicatedAloneSizeNotNil() predicate.Set
- func DeduplicatedSize(v int64) predicate.Set
- func DeduplicatedSizeEQ(v int64) predicate.Set
- func DeduplicatedSizeGT(v int64) predicate.Set
- func DeduplicatedSizeGTE(v int64) predicate.Set
- func DeduplicatedSizeIn(vs ...int64) predicate.Set
- func DeduplicatedSizeIsNil() predicate.Set
- func DeduplicatedSizeLT(v int64) predicate.Set
- func DeduplicatedSizeLTE(v int64) predicate.Set
- func DeduplicatedSizeNEQ(v int64) predicate.Set
- func DeduplicatedSizeNotIn(vs ...int64) predicate.Set
- func DeduplicatedSizeNotNil() predicate.Set
- func Erase(v bool) predicate.Set
- func EraseEQ(v bool) predicate.Set
- func EraseNEQ(v bool) predicate.Set
- func ExclusiveSize(v int64) predicate.Set
- func ExclusiveSizeEQ(v int64) predicate.Set
- func ExclusiveSizeGT(v int64) predicate.Set
- func ExclusiveSizeGTE(v int64) predicate.Set
- func ExclusiveSizeIn(vs ...int64) predicate.Set
- func ExclusiveSizeIsNil() predicate.Set
- func ExclusiveSizeLT(v int64) predicate.Set
- func ExclusiveSizeLTE(v int64) predicate.Set
- func ExclusiveSizeNEQ(v int64) predicate.Set
- func ExclusiveSizeNotIn(vs ...int64) predicate.Set
- func ExclusiveSizeNotNil() predicate.Set
- func HasDamaged() predicate.Set
- func HasDamagedWith(preds ...predicate.DamagedPath) predicate.Set
- func HasFiles() predicate.Set
- func HasFilesWith(preds ...predicate.File) predicate.Set
- func HasRefs() predicate.Set
- func HasRefsWith(preds ...predicate.SetRef) predicate.Set
- func HasTrees() predicate.Set
- func HasTreesWith(preds ...predicate.Tree) predicate.Set
- func ID(id int64) predicate.Set
- func IDEQ(id int64) predicate.Set
- func IDGT(id int64) predicate.Set
- func IDGTE(id int64) predicate.Set
- func IDIn(ids ...int64) predicate.Set
- func IDLT(id int64) predicate.Set
- func IDLTE(id int64) predicate.Set
- func IDNEQ(id int64) predicate.Set
- func IDNotIn(ids ...int64) predicate.Set
- func KeptLogicalSize(v int64) predicate.Set
- func KeptLogicalSizeEQ(v int64) predicate.Set
- func KeptLogicalSizeGT(v int64) predicate.Set
- func KeptLogicalSizeGTE(v int64) predicate.Set
- func KeptLogicalSizeIn(vs ...int64) predicate.Set
- func KeptLogicalSizeIsNil() predicate.Set
- func KeptLogicalSizeLT(v int64) predicate.Set
- func KeptLogicalSizeLTE(v int64) predicate.Set
- func KeptLogicalSizeNEQ(v int64) predicate.Set
- func KeptLogicalSizeNotIn(vs ...int64) predicate.Set
- func KeptLogicalSizeNotNil() predicate.Set
- func LogicalSize(v int64) predicate.Set
- func LogicalSizeEQ(v int64) predicate.Set
- func LogicalSizeGT(v int64) predicate.Set
- func LogicalSizeGTE(v int64) predicate.Set
- func LogicalSizeIn(vs ...int64) predicate.Set
- func LogicalSizeIsNil() predicate.Set
- func LogicalSizeLT(v int64) predicate.Set
- func LogicalSizeLTE(v int64) predicate.Set
- func LogicalSizeNEQ(v int64) predicate.Set
- func LogicalSizeNotIn(vs ...int64) predicate.Set
- func LogicalSizeNotNil() predicate.Set
- func Name(v string) predicate.Set
- func NameContains(v string) predicate.Set
- func NameContainsFold(v string) predicate.Set
- func NameEQ(v string) predicate.Set
- func NameEqualFold(v string) predicate.Set
- func NameGT(v string) predicate.Set
- func NameGTE(v string) predicate.Set
- func NameHasPrefix(v string) predicate.Set
- func NameHasSuffix(v string) predicate.Set
- func NameIn(vs ...string) predicate.Set
- func NameLT(v string) predicate.Set
- func NameLTE(v string) predicate.Set
- func NameNEQ(v string) predicate.Set
- func NameNotIn(vs ...string) predicate.Set
- func Not(p predicate.Set) predicate.Set
- func Or(predicates ...predicate.Set) predicate.Set
- func PhysicalSize(v int64) predicate.Set
- func PhysicalSizeEQ(v int64) predicate.Set
- func PhysicalSizeGT(v int64) predicate.Set
- func PhysicalSizeGTE(v int64) predicate.Set
- func PhysicalSizeIn(vs ...int64) predicate.Set
- func PhysicalSizeIsNil() predicate.Set
- func PhysicalSizeLT(v int64) predicate.Set
- func PhysicalSizeLTE(v int64) predicate.Set
- func PhysicalSizeNEQ(v int64) predicate.Set
- func PhysicalSizeNotIn(vs ...int64) predicate.Set
- func PhysicalSizeNotNil() predicate.Set
- func Rescan(v bool) predicate.Set
- func RescanEQ(v bool) predicate.Set
- func RescanNEQ(v bool) predicate.Set
- func RetentionPaused(v bool) predicate.Set
- func RetentionPausedEQ(v bool) predicate.Set
- func RetentionPausedNEQ(v bool) predicate.Set
- func RetentionPolicy(v string) predicate.Set
- func RetentionPolicyContains(v string) predicate.Set
- func RetentionPolicyContainsFold(v string) predicate.Set
- func RetentionPolicyEQ(v string) predicate.Set
- func RetentionPolicyEqualFold(v string) predicate.Set
- func RetentionPolicyGT(v string) predicate.Set
- func RetentionPolicyGTE(v string) predicate.Set
- func RetentionPolicyHasPrefix(v string) predicate.Set
- func RetentionPolicyHasSuffix(v string) predicate.Set
- func RetentionPolicyIn(vs ...string) predicate.Set
- func RetentionPolicyIsNil() predicate.Set
- func RetentionPolicyLT(v string) predicate.Set
- func RetentionPolicyLTE(v string) predicate.Set
- func RetentionPolicyNEQ(v string) predicate.Set
- func RetentionPolicyNotIn(vs ...string) predicate.Set
- func RetentionPolicyNotNil() predicate.Set
- func SizesDigest(v []byte) predicate.Set
- func SizesDigestEQ(v []byte) predicate.Set
- func SizesDigestGT(v []byte) predicate.Set
- func SizesDigestGTE(v []byte) predicate.Set
- func SizesDigestIn(vs ...[]byte) predicate.Set
- func SizesDigestIsNil() predicate.Set
- func SizesDigestLT(v []byte) predicate.Set
- func SizesDigestLTE(v []byte) predicate.Set
- func SizesDigestNEQ(v []byte) predicate.Set
- func SizesDigestNotIn(vs ...[]byte) predicate.Set
- func SizesDigestNotNil() predicate.Set
- func StateEQ(v State) predicate.Set
- func StateIn(vs ...State) predicate.Set
- func StateNEQ(v State) predicate.Set
- func StateNotIn(vs ...State) predicate.Set
- func StateValidator(s State) error
- func UniqueSize(v int64) predicate.Set
- func UniqueSizeEQ(v int64) predicate.Set
- func UniqueSizeGT(v int64) predicate.Set
- func UniqueSizeGTE(v int64) predicate.Set
- func UniqueSizeIn(vs ...int64) predicate.Set
- func UniqueSizeIsNil() predicate.Set
- func UniqueSizeLT(v int64) predicate.Set
- func UniqueSizeLTE(v int64) predicate.Set
- func UniqueSizeNEQ(v int64) predicate.Set
- func UniqueSizeNotIn(vs ...int64) predicate.Set
- func UniqueSizeNotNil() predicate.Set
- func ValidColumn(column string) bool
- type OrderOption
- func ByAloneSize(opts ...sql.OrderTermOption) OrderOption
- func ByDamaged(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDamagedCount(opts ...sql.OrderTermOption) OrderOption
- func ByDeduplicatedAloneSize(opts ...sql.OrderTermOption) OrderOption
- func ByDeduplicatedSize(opts ...sql.OrderTermOption) OrderOption
- func ByErase(opts ...sql.OrderTermOption) OrderOption
- func ByExclusiveSize(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKeptLogicalSize(opts ...sql.OrderTermOption) OrderOption
- func ByLogicalSize(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPhysicalSize(opts ...sql.OrderTermOption) OrderOption
- func ByRefs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRefsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRescan(opts ...sql.OrderTermOption) OrderOption
- func ByRetentionPaused(opts ...sql.OrderTermOption) OrderOption
- func ByRetentionPolicy(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByTrees(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTreesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUniqueSize(opts ...sql.OrderTermOption) OrderOption
- type State
Constants ¶
const ( // Label holds the string label denoting the set type in the database. Label = "set" // 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" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldRetentionPolicy holds the string denoting the retention_policy field in the database. FieldRetentionPolicy = "retention_policy" // FieldRetentionPaused holds the string denoting the retention_paused field in the database. FieldRetentionPaused = "retention_paused" // FieldErase holds the string denoting the erase field in the database. FieldErase = "erase" // FieldRescan holds the string denoting the rescan field in the database. FieldRescan = "rescan" // FieldPhysicalSize holds the string denoting the physical_size field in the database. FieldPhysicalSize = "physical_size" // FieldDeduplicatedSize holds the string denoting the deduplicated_size field in the database. FieldDeduplicatedSize = "deduplicated_size" // FieldAloneSize holds the string denoting the alone_size field in the database. FieldAloneSize = "alone_size" // FieldExclusiveSize holds the string denoting the exclusive_size field in the database. FieldExclusiveSize = "exclusive_size" // FieldDeduplicatedAloneSize holds the string denoting the deduplicated_alone_size field in the database. FieldDeduplicatedAloneSize = "deduplicated_alone_size" // FieldLogicalSize holds the string denoting the logical_size field in the database. FieldLogicalSize = "logical_size" // FieldKeptLogicalSize holds the string denoting the kept_logical_size field in the database. FieldKeptLogicalSize = "kept_logical_size" // FieldUniqueSize holds the string denoting the unique_size field in the database. FieldUniqueSize = "unique_size" // FieldSizesDigest holds the string denoting the sizes_digest field in the database. FieldSizesDigest = "sizes_digest" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeTrees holds the string denoting the trees edge name in mutations. EdgeTrees = "trees" // EdgeRefs holds the string denoting the refs edge name in mutations. EdgeRefs = "refs" // EdgeDamaged holds the string denoting the damaged edge name in mutations. EdgeDamaged = "damaged" // Table holds the table name of the set in the database. Table = "sets" // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "set_id" // TreesTable is the table that holds the trees relation/edge. TreesTable = "trees" // TreesInverseTable is the table name for the Tree entity. // It exists in this package in order to avoid circular dependency with the "tree" package. TreesInverseTable = "trees" // TreesColumn is the table column denoting the trees relation/edge. TreesColumn = "set_id" // RefsTable is the table that holds the refs relation/edge. RefsTable = "set_refs" // RefsInverseTable is the table name for the SetRef entity. // It exists in this package in order to avoid circular dependency with the "setref" package. RefsInverseTable = "set_refs" // RefsColumn is the table column denoting the refs relation/edge. RefsColumn = "set_id" // DamagedTable is the table that holds the damaged relation/edge. DamagedTable = "damaged_paths" // DamagedInverseTable is the table name for the DamagedPath entity. // It exists in this package in order to avoid circular dependency with the "damagedpath" package. DamagedInverseTable = "damaged_paths" // DamagedColumn is the table column denoting the damaged relation/edge. DamagedColumn = "set_id" )
const DefaultState = StateActive
StateActive is the default value of the State enum.
Variables ¶
var ( // DefaultRetentionPaused holds the default value on creation for the "retention_paused" field. DefaultRetentionPaused bool // DefaultErase holds the default value on creation for the "erase" field. DefaultErase bool // DefaultRescan holds the default value on creation for the "rescan" field. DefaultRescan bool )
var Columns = []string{ FieldID, FieldName, FieldState, FieldRetentionPolicy, FieldRetentionPaused, FieldErase, FieldRescan, FieldPhysicalSize, FieldDeduplicatedSize, FieldAloneSize, FieldExclusiveSize, FieldDeduplicatedAloneSize, FieldLogicalSize, FieldKeptLogicalSize, FieldUniqueSize, FieldSizesDigest, }
Columns holds all SQL columns for set fields.
Functions ¶
func AloneSize ¶
AloneSize applies equality check predicate on the "alone_size" field. It's identical to AloneSizeEQ.
func AloneSizeEQ ¶
AloneSizeEQ applies the EQ predicate on the "alone_size" field.
func AloneSizeGT ¶
AloneSizeGT applies the GT predicate on the "alone_size" field.
func AloneSizeGTE ¶
AloneSizeGTE applies the GTE predicate on the "alone_size" field.
func AloneSizeIn ¶
AloneSizeIn applies the In predicate on the "alone_size" field.
func AloneSizeIsNil ¶
AloneSizeIsNil applies the IsNil predicate on the "alone_size" field.
func AloneSizeLT ¶
AloneSizeLT applies the LT predicate on the "alone_size" field.
func AloneSizeLTE ¶
AloneSizeLTE applies the LTE predicate on the "alone_size" field.
func AloneSizeNEQ ¶
AloneSizeNEQ applies the NEQ predicate on the "alone_size" field.
func AloneSizeNotIn ¶
AloneSizeNotIn applies the NotIn predicate on the "alone_size" field.
func AloneSizeNotNil ¶
AloneSizeNotNil applies the NotNil predicate on the "alone_size" field.
func DeduplicatedAloneSize ¶
DeduplicatedAloneSize applies equality check predicate on the "deduplicated_alone_size" field. It's identical to DeduplicatedAloneSizeEQ.
func DeduplicatedAloneSizeEQ ¶
DeduplicatedAloneSizeEQ applies the EQ predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeGT ¶
DeduplicatedAloneSizeGT applies the GT predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeGTE ¶
DeduplicatedAloneSizeGTE applies the GTE predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeIn ¶
DeduplicatedAloneSizeIn applies the In predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeIsNil ¶
DeduplicatedAloneSizeIsNil applies the IsNil predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeLT ¶
DeduplicatedAloneSizeLT applies the LT predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeLTE ¶
DeduplicatedAloneSizeLTE applies the LTE predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeNEQ ¶
DeduplicatedAloneSizeNEQ applies the NEQ predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeNotIn ¶
DeduplicatedAloneSizeNotIn applies the NotIn predicate on the "deduplicated_alone_size" field.
func DeduplicatedAloneSizeNotNil ¶
DeduplicatedAloneSizeNotNil applies the NotNil predicate on the "deduplicated_alone_size" field.
func DeduplicatedSize ¶
DeduplicatedSize applies equality check predicate on the "deduplicated_size" field. It's identical to DeduplicatedSizeEQ.
func DeduplicatedSizeEQ ¶
DeduplicatedSizeEQ applies the EQ predicate on the "deduplicated_size" field.
func DeduplicatedSizeGT ¶
DeduplicatedSizeGT applies the GT predicate on the "deduplicated_size" field.
func DeduplicatedSizeGTE ¶
DeduplicatedSizeGTE applies the GTE predicate on the "deduplicated_size" field.
func DeduplicatedSizeIn ¶
DeduplicatedSizeIn applies the In predicate on the "deduplicated_size" field.
func DeduplicatedSizeIsNil ¶
DeduplicatedSizeIsNil applies the IsNil predicate on the "deduplicated_size" field.
func DeduplicatedSizeLT ¶
DeduplicatedSizeLT applies the LT predicate on the "deduplicated_size" field.
func DeduplicatedSizeLTE ¶
DeduplicatedSizeLTE applies the LTE predicate on the "deduplicated_size" field.
func DeduplicatedSizeNEQ ¶
DeduplicatedSizeNEQ applies the NEQ predicate on the "deduplicated_size" field.
func DeduplicatedSizeNotIn ¶
DeduplicatedSizeNotIn applies the NotIn predicate on the "deduplicated_size" field.
func DeduplicatedSizeNotNil ¶
DeduplicatedSizeNotNil applies the NotNil predicate on the "deduplicated_size" field.
func Erase ¶
Erase applies equality check predicate on the "erase" field. It's identical to EraseEQ.
func ExclusiveSize ¶
ExclusiveSize applies equality check predicate on the "exclusive_size" field. It's identical to ExclusiveSizeEQ.
func ExclusiveSizeEQ ¶
ExclusiveSizeEQ applies the EQ predicate on the "exclusive_size" field.
func ExclusiveSizeGT ¶
ExclusiveSizeGT applies the GT predicate on the "exclusive_size" field.
func ExclusiveSizeGTE ¶
ExclusiveSizeGTE applies the GTE predicate on the "exclusive_size" field.
func ExclusiveSizeIn ¶
ExclusiveSizeIn applies the In predicate on the "exclusive_size" field.
func ExclusiveSizeIsNil ¶
ExclusiveSizeIsNil applies the IsNil predicate on the "exclusive_size" field.
func ExclusiveSizeLT ¶
ExclusiveSizeLT applies the LT predicate on the "exclusive_size" field.
func ExclusiveSizeLTE ¶
ExclusiveSizeLTE applies the LTE predicate on the "exclusive_size" field.
func ExclusiveSizeNEQ ¶
ExclusiveSizeNEQ applies the NEQ predicate on the "exclusive_size" field.
func ExclusiveSizeNotIn ¶
ExclusiveSizeNotIn applies the NotIn predicate on the "exclusive_size" field.
func ExclusiveSizeNotNil ¶
ExclusiveSizeNotNil applies the NotNil predicate on the "exclusive_size" field.
func HasDamaged ¶
HasDamaged applies the HasEdge predicate on the "damaged" edge.
func HasDamagedWith ¶
func HasDamagedWith(preds ...predicate.DamagedPath) predicate.Set
HasDamagedWith applies the HasEdge predicate on the "damaged" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasRefsWith ¶
HasRefsWith applies the HasEdge predicate on the "refs" edge with a given conditions (other predicates).
func HasTreesWith ¶
HasTreesWith applies the HasEdge predicate on the "trees" edge with a given conditions (other predicates).
func KeptLogicalSize ¶
KeptLogicalSize applies equality check predicate on the "kept_logical_size" field. It's identical to KeptLogicalSizeEQ.
func KeptLogicalSizeEQ ¶
KeptLogicalSizeEQ applies the EQ predicate on the "kept_logical_size" field.
func KeptLogicalSizeGT ¶
KeptLogicalSizeGT applies the GT predicate on the "kept_logical_size" field.
func KeptLogicalSizeGTE ¶
KeptLogicalSizeGTE applies the GTE predicate on the "kept_logical_size" field.
func KeptLogicalSizeIn ¶
KeptLogicalSizeIn applies the In predicate on the "kept_logical_size" field.
func KeptLogicalSizeIsNil ¶
KeptLogicalSizeIsNil applies the IsNil predicate on the "kept_logical_size" field.
func KeptLogicalSizeLT ¶
KeptLogicalSizeLT applies the LT predicate on the "kept_logical_size" field.
func KeptLogicalSizeLTE ¶
KeptLogicalSizeLTE applies the LTE predicate on the "kept_logical_size" field.
func KeptLogicalSizeNEQ ¶
KeptLogicalSizeNEQ applies the NEQ predicate on the "kept_logical_size" field.
func KeptLogicalSizeNotIn ¶
KeptLogicalSizeNotIn applies the NotIn predicate on the "kept_logical_size" field.
func KeptLogicalSizeNotNil ¶
KeptLogicalSizeNotNil applies the NotNil predicate on the "kept_logical_size" field.
func LogicalSize ¶
LogicalSize applies equality check predicate on the "logical_size" field. It's identical to LogicalSizeEQ.
func LogicalSizeEQ ¶
LogicalSizeEQ applies the EQ predicate on the "logical_size" field.
func LogicalSizeGT ¶
LogicalSizeGT applies the GT predicate on the "logical_size" field.
func LogicalSizeGTE ¶
LogicalSizeGTE applies the GTE predicate on the "logical_size" field.
func LogicalSizeIn ¶
LogicalSizeIn applies the In predicate on the "logical_size" field.
func LogicalSizeIsNil ¶
LogicalSizeIsNil applies the IsNil predicate on the "logical_size" field.
func LogicalSizeLT ¶
LogicalSizeLT applies the LT predicate on the "logical_size" field.
func LogicalSizeLTE ¶
LogicalSizeLTE applies the LTE predicate on the "logical_size" field.
func LogicalSizeNEQ ¶
LogicalSizeNEQ applies the NEQ predicate on the "logical_size" field.
func LogicalSizeNotIn ¶
LogicalSizeNotIn applies the NotIn predicate on the "logical_size" field.
func LogicalSizeNotNil ¶
LogicalSizeNotNil applies the NotNil predicate on the "logical_size" field.
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 PhysicalSize ¶
PhysicalSize applies equality check predicate on the "physical_size" field. It's identical to PhysicalSizeEQ.
func PhysicalSizeEQ ¶
PhysicalSizeEQ applies the EQ predicate on the "physical_size" field.
func PhysicalSizeGT ¶
PhysicalSizeGT applies the GT predicate on the "physical_size" field.
func PhysicalSizeGTE ¶
PhysicalSizeGTE applies the GTE predicate on the "physical_size" field.
func PhysicalSizeIn ¶
PhysicalSizeIn applies the In predicate on the "physical_size" field.
func PhysicalSizeIsNil ¶
PhysicalSizeIsNil applies the IsNil predicate on the "physical_size" field.
func PhysicalSizeLT ¶
PhysicalSizeLT applies the LT predicate on the "physical_size" field.
func PhysicalSizeLTE ¶
PhysicalSizeLTE applies the LTE predicate on the "physical_size" field.
func PhysicalSizeNEQ ¶
PhysicalSizeNEQ applies the NEQ predicate on the "physical_size" field.
func PhysicalSizeNotIn ¶
PhysicalSizeNotIn applies the NotIn predicate on the "physical_size" field.
func PhysicalSizeNotNil ¶
PhysicalSizeNotNil applies the NotNil predicate on the "physical_size" field.
func Rescan ¶
Rescan applies equality check predicate on the "rescan" field. It's identical to RescanEQ.
func RetentionPaused ¶
RetentionPaused applies equality check predicate on the "retention_paused" field. It's identical to RetentionPausedEQ.
func RetentionPausedEQ ¶
RetentionPausedEQ applies the EQ predicate on the "retention_paused" field.
func RetentionPausedNEQ ¶
RetentionPausedNEQ applies the NEQ predicate on the "retention_paused" field.
func RetentionPolicy ¶
RetentionPolicy applies equality check predicate on the "retention_policy" field. It's identical to RetentionPolicyEQ.
func RetentionPolicyContains ¶
RetentionPolicyContains applies the Contains predicate on the "retention_policy" field.
func RetentionPolicyContainsFold ¶
RetentionPolicyContainsFold applies the ContainsFold predicate on the "retention_policy" field.
func RetentionPolicyEQ ¶
RetentionPolicyEQ applies the EQ predicate on the "retention_policy" field.
func RetentionPolicyEqualFold ¶
RetentionPolicyEqualFold applies the EqualFold predicate on the "retention_policy" field.
func RetentionPolicyGT ¶
RetentionPolicyGT applies the GT predicate on the "retention_policy" field.
func RetentionPolicyGTE ¶
RetentionPolicyGTE applies the GTE predicate on the "retention_policy" field.
func RetentionPolicyHasPrefix ¶
RetentionPolicyHasPrefix applies the HasPrefix predicate on the "retention_policy" field.
func RetentionPolicyHasSuffix ¶
RetentionPolicyHasSuffix applies the HasSuffix predicate on the "retention_policy" field.
func RetentionPolicyIn ¶
RetentionPolicyIn applies the In predicate on the "retention_policy" field.
func RetentionPolicyIsNil ¶
RetentionPolicyIsNil applies the IsNil predicate on the "retention_policy" field.
func RetentionPolicyLT ¶
RetentionPolicyLT applies the LT predicate on the "retention_policy" field.
func RetentionPolicyLTE ¶
RetentionPolicyLTE applies the LTE predicate on the "retention_policy" field.
func RetentionPolicyNEQ ¶
RetentionPolicyNEQ applies the NEQ predicate on the "retention_policy" field.
func RetentionPolicyNotIn ¶
RetentionPolicyNotIn applies the NotIn predicate on the "retention_policy" field.
func RetentionPolicyNotNil ¶
RetentionPolicyNotNil applies the NotNil predicate on the "retention_policy" field.
func SizesDigest ¶
SizesDigest applies equality check predicate on the "sizes_digest" field. It's identical to SizesDigestEQ.
func SizesDigestEQ ¶
SizesDigestEQ applies the EQ predicate on the "sizes_digest" field.
func SizesDigestGT ¶
SizesDigestGT applies the GT predicate on the "sizes_digest" field.
func SizesDigestGTE ¶
SizesDigestGTE applies the GTE predicate on the "sizes_digest" field.
func SizesDigestIn ¶
SizesDigestIn applies the In predicate on the "sizes_digest" field.
func SizesDigestIsNil ¶
SizesDigestIsNil applies the IsNil predicate on the "sizes_digest" field.
func SizesDigestLT ¶
SizesDigestLT applies the LT predicate on the "sizes_digest" field.
func SizesDigestLTE ¶
SizesDigestLTE applies the LTE predicate on the "sizes_digest" field.
func SizesDigestNEQ ¶
SizesDigestNEQ applies the NEQ predicate on the "sizes_digest" field.
func SizesDigestNotIn ¶
SizesDigestNotIn applies the NotIn predicate on the "sizes_digest" field.
func SizesDigestNotNil ¶
SizesDigestNotNil applies the NotNil predicate on the "sizes_digest" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func StateValidator ¶
StateValidator is a validator for the "state" field enum values. It is called by the builders before save.
func UniqueSize ¶
UniqueSize applies equality check predicate on the "unique_size" field. It's identical to UniqueSizeEQ.
func UniqueSizeEQ ¶
UniqueSizeEQ applies the EQ predicate on the "unique_size" field.
func UniqueSizeGT ¶
UniqueSizeGT applies the GT predicate on the "unique_size" field.
func UniqueSizeGTE ¶
UniqueSizeGTE applies the GTE predicate on the "unique_size" field.
func UniqueSizeIn ¶
UniqueSizeIn applies the In predicate on the "unique_size" field.
func UniqueSizeIsNil ¶
UniqueSizeIsNil applies the IsNil predicate on the "unique_size" field.
func UniqueSizeLT ¶
UniqueSizeLT applies the LT predicate on the "unique_size" field.
func UniqueSizeLTE ¶
UniqueSizeLTE applies the LTE predicate on the "unique_size" field.
func UniqueSizeNEQ ¶
UniqueSizeNEQ applies the NEQ predicate on the "unique_size" field.
func UniqueSizeNotIn ¶
UniqueSizeNotIn applies the NotIn predicate on the "unique_size" field.
func UniqueSizeNotNil ¶
UniqueSizeNotNil applies the NotNil predicate on the "unique_size" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Set queries.
func ByAloneSize ¶
func ByAloneSize(opts ...sql.OrderTermOption) OrderOption
ByAloneSize orders the results by the alone_size field.
func ByDamaged ¶
func ByDamaged(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDamaged orders the results by damaged terms.
func ByDamagedCount ¶
func ByDamagedCount(opts ...sql.OrderTermOption) OrderOption
ByDamagedCount orders the results by damaged count.
func ByDeduplicatedAloneSize ¶
func ByDeduplicatedAloneSize(opts ...sql.OrderTermOption) OrderOption
ByDeduplicatedAloneSize orders the results by the deduplicated_alone_size field.
func ByDeduplicatedSize ¶
func ByDeduplicatedSize(opts ...sql.OrderTermOption) OrderOption
ByDeduplicatedSize orders the results by the deduplicated_size field.
func ByErase ¶
func ByErase(opts ...sql.OrderTermOption) OrderOption
ByErase orders the results by the erase field.
func ByExclusiveSize ¶
func ByExclusiveSize(opts ...sql.OrderTermOption) OrderOption
ByExclusiveSize orders the results by the exclusive_size field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKeptLogicalSize ¶
func ByKeptLogicalSize(opts ...sql.OrderTermOption) OrderOption
ByKeptLogicalSize orders the results by the kept_logical_size field.
func ByLogicalSize ¶
func ByLogicalSize(opts ...sql.OrderTermOption) OrderOption
ByLogicalSize orders the results by the logical_size field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPhysicalSize ¶
func ByPhysicalSize(opts ...sql.OrderTermOption) OrderOption
ByPhysicalSize orders the results by the physical_size field.
func ByRefs ¶
func ByRefs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRefs orders the results by refs terms.
func ByRefsCount ¶
func ByRefsCount(opts ...sql.OrderTermOption) OrderOption
ByRefsCount orders the results by refs count.
func ByRescan ¶
func ByRescan(opts ...sql.OrderTermOption) OrderOption
ByRescan orders the results by the rescan field.
func ByRetentionPaused ¶
func ByRetentionPaused(opts ...sql.OrderTermOption) OrderOption
ByRetentionPaused orders the results by the retention_paused field.
func ByRetentionPolicy ¶
func ByRetentionPolicy(opts ...sql.OrderTermOption) OrderOption
ByRetentionPolicy orders the results by the retention_policy field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByTrees ¶
func ByTrees(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTrees orders the results by trees terms.
func ByTreesCount ¶
func ByTreesCount(opts ...sql.OrderTermOption) OrderOption
ByTreesCount orders the results by trees count.
func ByUniqueSize ¶
func ByUniqueSize(opts ...sql.OrderTermOption) OrderOption
ByUniqueSize orders the results by the unique_size field.