set

package
v1.63.0 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 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"
)
View Source
const DefaultState = StateActive

StateActive is the default value of the State enum.

Variables

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

Columns holds all SQL columns for set fields.

Functions

func AloneSize

func AloneSize(v int64) predicate.Set

AloneSize applies equality check predicate on the "alone_size" field. It's identical to AloneSizeEQ.

func AloneSizeEQ

func AloneSizeEQ(v int64) predicate.Set

AloneSizeEQ applies the EQ predicate on the "alone_size" field.

func AloneSizeGT

func AloneSizeGT(v int64) predicate.Set

AloneSizeGT applies the GT predicate on the "alone_size" field.

func AloneSizeGTE

func AloneSizeGTE(v int64) predicate.Set

AloneSizeGTE applies the GTE predicate on the "alone_size" field.

func AloneSizeIn

func AloneSizeIn(vs ...int64) predicate.Set

AloneSizeIn applies the In predicate on the "alone_size" field.

func AloneSizeIsNil

func AloneSizeIsNil() predicate.Set

AloneSizeIsNil applies the IsNil predicate on the "alone_size" field.

func AloneSizeLT

func AloneSizeLT(v int64) predicate.Set

AloneSizeLT applies the LT predicate on the "alone_size" field.

func AloneSizeLTE

func AloneSizeLTE(v int64) predicate.Set

AloneSizeLTE applies the LTE predicate on the "alone_size" field.

func AloneSizeNEQ

func AloneSizeNEQ(v int64) predicate.Set

AloneSizeNEQ applies the NEQ predicate on the "alone_size" field.

func AloneSizeNotIn

func AloneSizeNotIn(vs ...int64) predicate.Set

AloneSizeNotIn applies the NotIn predicate on the "alone_size" field.

func AloneSizeNotNil

func AloneSizeNotNil() predicate.Set

AloneSizeNotNil applies the NotNil predicate on the "alone_size" field.

func And

func And(predicates ...predicate.Set) predicate.Set

And groups predicates with the AND operator between them.

func DeduplicatedAloneSize

func DeduplicatedAloneSize(v int64) predicate.Set

DeduplicatedAloneSize applies equality check predicate on the "deduplicated_alone_size" field. It's identical to DeduplicatedAloneSizeEQ.

func DeduplicatedAloneSizeEQ

func DeduplicatedAloneSizeEQ(v int64) predicate.Set

DeduplicatedAloneSizeEQ applies the EQ predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeGT

func DeduplicatedAloneSizeGT(v int64) predicate.Set

DeduplicatedAloneSizeGT applies the GT predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeGTE

func DeduplicatedAloneSizeGTE(v int64) predicate.Set

DeduplicatedAloneSizeGTE applies the GTE predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeIn

func DeduplicatedAloneSizeIn(vs ...int64) predicate.Set

DeduplicatedAloneSizeIn applies the In predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeIsNil

func DeduplicatedAloneSizeIsNil() predicate.Set

DeduplicatedAloneSizeIsNil applies the IsNil predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeLT

func DeduplicatedAloneSizeLT(v int64) predicate.Set

DeduplicatedAloneSizeLT applies the LT predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeLTE

func DeduplicatedAloneSizeLTE(v int64) predicate.Set

DeduplicatedAloneSizeLTE applies the LTE predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeNEQ

func DeduplicatedAloneSizeNEQ(v int64) predicate.Set

DeduplicatedAloneSizeNEQ applies the NEQ predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeNotIn

func DeduplicatedAloneSizeNotIn(vs ...int64) predicate.Set

DeduplicatedAloneSizeNotIn applies the NotIn predicate on the "deduplicated_alone_size" field.

func DeduplicatedAloneSizeNotNil

func DeduplicatedAloneSizeNotNil() predicate.Set

DeduplicatedAloneSizeNotNil applies the NotNil predicate on the "deduplicated_alone_size" field.

func DeduplicatedSize

func DeduplicatedSize(v int64) predicate.Set

DeduplicatedSize applies equality check predicate on the "deduplicated_size" field. It's identical to DeduplicatedSizeEQ.

func DeduplicatedSizeEQ

func DeduplicatedSizeEQ(v int64) predicate.Set

DeduplicatedSizeEQ applies the EQ predicate on the "deduplicated_size" field.

func DeduplicatedSizeGT

func DeduplicatedSizeGT(v int64) predicate.Set

DeduplicatedSizeGT applies the GT predicate on the "deduplicated_size" field.

func DeduplicatedSizeGTE

func DeduplicatedSizeGTE(v int64) predicate.Set

DeduplicatedSizeGTE applies the GTE predicate on the "deduplicated_size" field.

func DeduplicatedSizeIn

func DeduplicatedSizeIn(vs ...int64) predicate.Set

DeduplicatedSizeIn applies the In predicate on the "deduplicated_size" field.

func DeduplicatedSizeIsNil

func DeduplicatedSizeIsNil() predicate.Set

DeduplicatedSizeIsNil applies the IsNil predicate on the "deduplicated_size" field.

func DeduplicatedSizeLT

func DeduplicatedSizeLT(v int64) predicate.Set

DeduplicatedSizeLT applies the LT predicate on the "deduplicated_size" field.

func DeduplicatedSizeLTE

func DeduplicatedSizeLTE(v int64) predicate.Set

DeduplicatedSizeLTE applies the LTE predicate on the "deduplicated_size" field.

func DeduplicatedSizeNEQ

func DeduplicatedSizeNEQ(v int64) predicate.Set

DeduplicatedSizeNEQ applies the NEQ predicate on the "deduplicated_size" field.

func DeduplicatedSizeNotIn

func DeduplicatedSizeNotIn(vs ...int64) predicate.Set

DeduplicatedSizeNotIn applies the NotIn predicate on the "deduplicated_size" field.

func DeduplicatedSizeNotNil

func DeduplicatedSizeNotNil() predicate.Set

DeduplicatedSizeNotNil applies the NotNil predicate on the "deduplicated_size" field.

func Erase

func Erase(v bool) predicate.Set

Erase applies equality check predicate on the "erase" field. It's identical to EraseEQ.

func EraseEQ

func EraseEQ(v bool) predicate.Set

EraseEQ applies the EQ predicate on the "erase" field.

func EraseNEQ

func EraseNEQ(v bool) predicate.Set

EraseNEQ applies the NEQ predicate on the "erase" field.

func ExclusiveSize

func ExclusiveSize(v int64) predicate.Set

ExclusiveSize applies equality check predicate on the "exclusive_size" field. It's identical to ExclusiveSizeEQ.

func ExclusiveSizeEQ

func ExclusiveSizeEQ(v int64) predicate.Set

ExclusiveSizeEQ applies the EQ predicate on the "exclusive_size" field.

func ExclusiveSizeGT

func ExclusiveSizeGT(v int64) predicate.Set

ExclusiveSizeGT applies the GT predicate on the "exclusive_size" field.

func ExclusiveSizeGTE

func ExclusiveSizeGTE(v int64) predicate.Set

ExclusiveSizeGTE applies the GTE predicate on the "exclusive_size" field.

func ExclusiveSizeIn

func ExclusiveSizeIn(vs ...int64) predicate.Set

ExclusiveSizeIn applies the In predicate on the "exclusive_size" field.

func ExclusiveSizeIsNil

func ExclusiveSizeIsNil() predicate.Set

ExclusiveSizeIsNil applies the IsNil predicate on the "exclusive_size" field.

func ExclusiveSizeLT

func ExclusiveSizeLT(v int64) predicate.Set

ExclusiveSizeLT applies the LT predicate on the "exclusive_size" field.

func ExclusiveSizeLTE

func ExclusiveSizeLTE(v int64) predicate.Set

ExclusiveSizeLTE applies the LTE predicate on the "exclusive_size" field.

func ExclusiveSizeNEQ

func ExclusiveSizeNEQ(v int64) predicate.Set

ExclusiveSizeNEQ applies the NEQ predicate on the "exclusive_size" field.

func ExclusiveSizeNotIn

func ExclusiveSizeNotIn(vs ...int64) predicate.Set

ExclusiveSizeNotIn applies the NotIn predicate on the "exclusive_size" field.

func ExclusiveSizeNotNil

func ExclusiveSizeNotNil() predicate.Set

ExclusiveSizeNotNil applies the NotNil predicate on the "exclusive_size" field.

func HasDamaged

func HasDamaged() predicate.Set

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 HasFiles

func HasFiles() predicate.Set

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith

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

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

func HasRefs

func HasRefs() predicate.Set

HasRefs applies the HasEdge predicate on the "refs" edge.

func HasRefsWith

func HasRefsWith(preds ...predicate.SetRef) predicate.Set

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

func HasTrees

func HasTrees() predicate.Set

HasTrees applies the HasEdge predicate on the "trees" edge.

func HasTreesWith

func HasTreesWith(preds ...predicate.Tree) predicate.Set

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

func ID

func ID(id int64) predicate.Set

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Set

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Set

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Set

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Set

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Set

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Set

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Set

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Set

IDNotIn applies the NotIn predicate on the ID field.

func KeptLogicalSize

func KeptLogicalSize(v int64) predicate.Set

KeptLogicalSize applies equality check predicate on the "kept_logical_size" field. It's identical to KeptLogicalSizeEQ.

func KeptLogicalSizeEQ

func KeptLogicalSizeEQ(v int64) predicate.Set

KeptLogicalSizeEQ applies the EQ predicate on the "kept_logical_size" field.

func KeptLogicalSizeGT

func KeptLogicalSizeGT(v int64) predicate.Set

KeptLogicalSizeGT applies the GT predicate on the "kept_logical_size" field.

func KeptLogicalSizeGTE

func KeptLogicalSizeGTE(v int64) predicate.Set

KeptLogicalSizeGTE applies the GTE predicate on the "kept_logical_size" field.

func KeptLogicalSizeIn

func KeptLogicalSizeIn(vs ...int64) predicate.Set

KeptLogicalSizeIn applies the In predicate on the "kept_logical_size" field.

func KeptLogicalSizeIsNil

func KeptLogicalSizeIsNil() predicate.Set

KeptLogicalSizeIsNil applies the IsNil predicate on the "kept_logical_size" field.

func KeptLogicalSizeLT

func KeptLogicalSizeLT(v int64) predicate.Set

KeptLogicalSizeLT applies the LT predicate on the "kept_logical_size" field.

func KeptLogicalSizeLTE

func KeptLogicalSizeLTE(v int64) predicate.Set

KeptLogicalSizeLTE applies the LTE predicate on the "kept_logical_size" field.

func KeptLogicalSizeNEQ

func KeptLogicalSizeNEQ(v int64) predicate.Set

KeptLogicalSizeNEQ applies the NEQ predicate on the "kept_logical_size" field.

func KeptLogicalSizeNotIn

func KeptLogicalSizeNotIn(vs ...int64) predicate.Set

KeptLogicalSizeNotIn applies the NotIn predicate on the "kept_logical_size" field.

func KeptLogicalSizeNotNil

func KeptLogicalSizeNotNil() predicate.Set

KeptLogicalSizeNotNil applies the NotNil predicate on the "kept_logical_size" field.

func LogicalSize

func LogicalSize(v int64) predicate.Set

LogicalSize applies equality check predicate on the "logical_size" field. It's identical to LogicalSizeEQ.

func LogicalSizeEQ

func LogicalSizeEQ(v int64) predicate.Set

LogicalSizeEQ applies the EQ predicate on the "logical_size" field.

func LogicalSizeGT

func LogicalSizeGT(v int64) predicate.Set

LogicalSizeGT applies the GT predicate on the "logical_size" field.

func LogicalSizeGTE

func LogicalSizeGTE(v int64) predicate.Set

LogicalSizeGTE applies the GTE predicate on the "logical_size" field.

func LogicalSizeIn

func LogicalSizeIn(vs ...int64) predicate.Set

LogicalSizeIn applies the In predicate on the "logical_size" field.

func LogicalSizeIsNil

func LogicalSizeIsNil() predicate.Set

LogicalSizeIsNil applies the IsNil predicate on the "logical_size" field.

func LogicalSizeLT

func LogicalSizeLT(v int64) predicate.Set

LogicalSizeLT applies the LT predicate on the "logical_size" field.

func LogicalSizeLTE

func LogicalSizeLTE(v int64) predicate.Set

LogicalSizeLTE applies the LTE predicate on the "logical_size" field.

func LogicalSizeNEQ

func LogicalSizeNEQ(v int64) predicate.Set

LogicalSizeNEQ applies the NEQ predicate on the "logical_size" field.

func LogicalSizeNotIn

func LogicalSizeNotIn(vs ...int64) predicate.Set

LogicalSizeNotIn applies the NotIn predicate on the "logical_size" field.

func LogicalSizeNotNil

func LogicalSizeNotNil() predicate.Set

LogicalSizeNotNil applies the NotNil predicate on the "logical_size" field.

func Name

func Name(v string) predicate.Set

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

func NameContains

func NameContains(v string) predicate.Set

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

func NameContainsFold

func NameContainsFold(v string) predicate.Set

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Set

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

func NameEqualFold

func NameEqualFold(v string) predicate.Set

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Set

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

func NameGTE

func NameGTE(v string) predicate.Set

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Set

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Set

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Set

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

func NameLTE

func NameLTE(v string) predicate.Set

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

func NameNEQ

func NameNEQ(v string) predicate.Set

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

func NameNotIn

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

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

func Not

func Not(p predicate.Set) predicate.Set

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Set) predicate.Set

Or groups predicates with the OR operator between them.

func PhysicalSize

func PhysicalSize(v int64) predicate.Set

PhysicalSize applies equality check predicate on the "physical_size" field. It's identical to PhysicalSizeEQ.

func PhysicalSizeEQ

func PhysicalSizeEQ(v int64) predicate.Set

PhysicalSizeEQ applies the EQ predicate on the "physical_size" field.

func PhysicalSizeGT

func PhysicalSizeGT(v int64) predicate.Set

PhysicalSizeGT applies the GT predicate on the "physical_size" field.

func PhysicalSizeGTE

func PhysicalSizeGTE(v int64) predicate.Set

PhysicalSizeGTE applies the GTE predicate on the "physical_size" field.

func PhysicalSizeIn

func PhysicalSizeIn(vs ...int64) predicate.Set

PhysicalSizeIn applies the In predicate on the "physical_size" field.

func PhysicalSizeIsNil

func PhysicalSizeIsNil() predicate.Set

PhysicalSizeIsNil applies the IsNil predicate on the "physical_size" field.

func PhysicalSizeLT

func PhysicalSizeLT(v int64) predicate.Set

PhysicalSizeLT applies the LT predicate on the "physical_size" field.

func PhysicalSizeLTE

func PhysicalSizeLTE(v int64) predicate.Set

PhysicalSizeLTE applies the LTE predicate on the "physical_size" field.

func PhysicalSizeNEQ

func PhysicalSizeNEQ(v int64) predicate.Set

PhysicalSizeNEQ applies the NEQ predicate on the "physical_size" field.

func PhysicalSizeNotIn

func PhysicalSizeNotIn(vs ...int64) predicate.Set

PhysicalSizeNotIn applies the NotIn predicate on the "physical_size" field.

func PhysicalSizeNotNil

func PhysicalSizeNotNil() predicate.Set

PhysicalSizeNotNil applies the NotNil predicate on the "physical_size" field.

func Rescan

func Rescan(v bool) predicate.Set

Rescan applies equality check predicate on the "rescan" field. It's identical to RescanEQ.

func RescanEQ

func RescanEQ(v bool) predicate.Set

RescanEQ applies the EQ predicate on the "rescan" field.

func RescanNEQ

func RescanNEQ(v bool) predicate.Set

RescanNEQ applies the NEQ predicate on the "rescan" field.

func RetentionPaused

func RetentionPaused(v bool) predicate.Set

RetentionPaused applies equality check predicate on the "retention_paused" field. It's identical to RetentionPausedEQ.

func RetentionPausedEQ

func RetentionPausedEQ(v bool) predicate.Set

RetentionPausedEQ applies the EQ predicate on the "retention_paused" field.

func RetentionPausedNEQ

func RetentionPausedNEQ(v bool) predicate.Set

RetentionPausedNEQ applies the NEQ predicate on the "retention_paused" field.

func RetentionPolicy

func RetentionPolicy(v string) predicate.Set

RetentionPolicy applies equality check predicate on the "retention_policy" field. It's identical to RetentionPolicyEQ.

func RetentionPolicyContains

func RetentionPolicyContains(v string) predicate.Set

RetentionPolicyContains applies the Contains predicate on the "retention_policy" field.

func RetentionPolicyContainsFold

func RetentionPolicyContainsFold(v string) predicate.Set

RetentionPolicyContainsFold applies the ContainsFold predicate on the "retention_policy" field.

func RetentionPolicyEQ

func RetentionPolicyEQ(v string) predicate.Set

RetentionPolicyEQ applies the EQ predicate on the "retention_policy" field.

func RetentionPolicyEqualFold

func RetentionPolicyEqualFold(v string) predicate.Set

RetentionPolicyEqualFold applies the EqualFold predicate on the "retention_policy" field.

func RetentionPolicyGT

func RetentionPolicyGT(v string) predicate.Set

RetentionPolicyGT applies the GT predicate on the "retention_policy" field.

func RetentionPolicyGTE

func RetentionPolicyGTE(v string) predicate.Set

RetentionPolicyGTE applies the GTE predicate on the "retention_policy" field.

func RetentionPolicyHasPrefix

func RetentionPolicyHasPrefix(v string) predicate.Set

RetentionPolicyHasPrefix applies the HasPrefix predicate on the "retention_policy" field.

func RetentionPolicyHasSuffix

func RetentionPolicyHasSuffix(v string) predicate.Set

RetentionPolicyHasSuffix applies the HasSuffix predicate on the "retention_policy" field.

func RetentionPolicyIn

func RetentionPolicyIn(vs ...string) predicate.Set

RetentionPolicyIn applies the In predicate on the "retention_policy" field.

func RetentionPolicyIsNil

func RetentionPolicyIsNil() predicate.Set

RetentionPolicyIsNil applies the IsNil predicate on the "retention_policy" field.

func RetentionPolicyLT

func RetentionPolicyLT(v string) predicate.Set

RetentionPolicyLT applies the LT predicate on the "retention_policy" field.

func RetentionPolicyLTE

func RetentionPolicyLTE(v string) predicate.Set

RetentionPolicyLTE applies the LTE predicate on the "retention_policy" field.

func RetentionPolicyNEQ

func RetentionPolicyNEQ(v string) predicate.Set

RetentionPolicyNEQ applies the NEQ predicate on the "retention_policy" field.

func RetentionPolicyNotIn

func RetentionPolicyNotIn(vs ...string) predicate.Set

RetentionPolicyNotIn applies the NotIn predicate on the "retention_policy" field.

func RetentionPolicyNotNil

func RetentionPolicyNotNil() predicate.Set

RetentionPolicyNotNil applies the NotNil predicate on the "retention_policy" field.

func SizesDigest

func SizesDigest(v []byte) predicate.Set

SizesDigest applies equality check predicate on the "sizes_digest" field. It's identical to SizesDigestEQ.

func SizesDigestEQ

func SizesDigestEQ(v []byte) predicate.Set

SizesDigestEQ applies the EQ predicate on the "sizes_digest" field.

func SizesDigestGT

func SizesDigestGT(v []byte) predicate.Set

SizesDigestGT applies the GT predicate on the "sizes_digest" field.

func SizesDigestGTE

func SizesDigestGTE(v []byte) predicate.Set

SizesDigestGTE applies the GTE predicate on the "sizes_digest" field.

func SizesDigestIn

func SizesDigestIn(vs ...[]byte) predicate.Set

SizesDigestIn applies the In predicate on the "sizes_digest" field.

func SizesDigestIsNil

func SizesDigestIsNil() predicate.Set

SizesDigestIsNil applies the IsNil predicate on the "sizes_digest" field.

func SizesDigestLT

func SizesDigestLT(v []byte) predicate.Set

SizesDigestLT applies the LT predicate on the "sizes_digest" field.

func SizesDigestLTE

func SizesDigestLTE(v []byte) predicate.Set

SizesDigestLTE applies the LTE predicate on the "sizes_digest" field.

func SizesDigestNEQ

func SizesDigestNEQ(v []byte) predicate.Set

SizesDigestNEQ applies the NEQ predicate on the "sizes_digest" field.

func SizesDigestNotIn

func SizesDigestNotIn(vs ...[]byte) predicate.Set

SizesDigestNotIn applies the NotIn predicate on the "sizes_digest" field.

func SizesDigestNotNil

func SizesDigestNotNil() predicate.Set

SizesDigestNotNil applies the NotNil predicate on the "sizes_digest" field.

func StateEQ

func StateEQ(v State) predicate.Set

StateEQ applies the EQ predicate on the "state" field.

func StateIn

func StateIn(vs ...State) predicate.Set

StateIn applies the In predicate on the "state" field.

func StateNEQ

func StateNEQ(v State) predicate.Set

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...State) predicate.Set

StateNotIn applies the NotIn predicate on the "state" field.

func StateValidator

func StateValidator(s State) error

StateValidator is a validator for the "state" field enum values. It is called by the builders before save.

func UniqueSize

func UniqueSize(v int64) predicate.Set

UniqueSize applies equality check predicate on the "unique_size" field. It's identical to UniqueSizeEQ.

func UniqueSizeEQ

func UniqueSizeEQ(v int64) predicate.Set

UniqueSizeEQ applies the EQ predicate on the "unique_size" field.

func UniqueSizeGT

func UniqueSizeGT(v int64) predicate.Set

UniqueSizeGT applies the GT predicate on the "unique_size" field.

func UniqueSizeGTE

func UniqueSizeGTE(v int64) predicate.Set

UniqueSizeGTE applies the GTE predicate on the "unique_size" field.

func UniqueSizeIn

func UniqueSizeIn(vs ...int64) predicate.Set

UniqueSizeIn applies the In predicate on the "unique_size" field.

func UniqueSizeIsNil

func UniqueSizeIsNil() predicate.Set

UniqueSizeIsNil applies the IsNil predicate on the "unique_size" field.

func UniqueSizeLT

func UniqueSizeLT(v int64) predicate.Set

UniqueSizeLT applies the LT predicate on the "unique_size" field.

func UniqueSizeLTE

func UniqueSizeLTE(v int64) predicate.Set

UniqueSizeLTE applies the LTE predicate on the "unique_size" field.

func UniqueSizeNEQ

func UniqueSizeNEQ(v int64) predicate.Set

UniqueSizeNEQ applies the NEQ predicate on the "unique_size" field.

func UniqueSizeNotIn

func UniqueSizeNotIn(vs ...int64) predicate.Set

UniqueSizeNotIn applies the NotIn predicate on the "unique_size" field.

func UniqueSizeNotNil

func UniqueSizeNotNil() predicate.Set

UniqueSizeNotNil applies the NotNil predicate on the "unique_size" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

type State

type State string

State defines the type for the "state" enum field.

const (
	StateActive  State = "active"
	StateClosing State = "closing"
	StateDeleted State = "deleted"
)

State values.

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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