file

package
v4.0.0-...-cec2b55 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: GPL-3.0 Imports: 5 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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldPrimaryEntity holds the string denoting the primary_entity field in the database.
	FieldPrimaryEntity = "primary_entity"
	// FieldFileChildren holds the string denoting the file_children field in the database.
	FieldFileChildren = "file_children"
	// FieldIsSymbolic holds the string denoting the is_symbolic field in the database.
	FieldIsSymbolic = "is_symbolic"
	// FieldProps holds the string denoting the props field in the database.
	FieldProps = "props"
	// FieldStoragePolicyFiles holds the string denoting the storage_policy_files field in the database.
	FieldStoragePolicyFiles = "storage_policy_files"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeStoragePolicies holds the string denoting the storage_policies edge name in mutations.
	EdgeStoragePolicies = "storage_policies"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeEntities holds the string denoting the entities edge name in mutations.
	EdgeEntities = "entities"
	// EdgeShares holds the string denoting the shares edge name in mutations.
	EdgeShares = "shares"
	// EdgeDirectLinks holds the string denoting the direct_links edge name in mutations.
	EdgeDirectLinks = "direct_links"
	// Table holds the table name of the file in the database.
	Table = "files"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "files"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// StoragePoliciesTable is the table that holds the storage_policies relation/edge.
	StoragePoliciesTable = "files"
	// StoragePoliciesInverseTable is the table name for the StoragePolicy entity.
	// It exists in this package in order to avoid circular dependency with the "storagepolicy" package.
	StoragePoliciesInverseTable = "storage_policies"
	// StoragePoliciesColumn is the table column denoting the storage_policies relation/edge.
	StoragePoliciesColumn = "storage_policy_files"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "files"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "file_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "files"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "file_children"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "metadata"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "file_id"
	// EntitiesTable is the table that holds the entities relation/edge. The primary key declared below.
	EntitiesTable = "file_entities"
	// EntitiesInverseTable is the table name for the Entity entity.
	// It exists in this package in order to avoid circular dependency with the "entity" package.
	EntitiesInverseTable = "entities"
	// SharesTable is the table that holds the shares relation/edge.
	SharesTable = "shares"
	// SharesInverseTable is the table name for the Share entity.
	// It exists in this package in order to avoid circular dependency with the "share" package.
	SharesInverseTable = "shares"
	// SharesColumn is the table column denoting the shares relation/edge.
	SharesColumn = "file_shares"
	// DirectLinksTable is the table that holds the direct_links relation/edge.
	DirectLinksTable = "direct_links"
	// DirectLinksInverseTable is the table name for the DirectLink entity.
	// It exists in this package in order to avoid circular dependency with the "directlink" package.
	DirectLinksInverseTable = "direct_links"
	// DirectLinksColumn is the table column denoting the direct_links relation/edge.
	DirectLinksColumn = "file_id"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// DefaultSize holds the default value on creation for the "size" field.
	DefaultSize int64
	// DefaultIsSymbolic holds the default value on creation for the "is_symbolic" field.
	DefaultIsSymbolic bool
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/cloudreve/Cloudreve/v4/ent/runtime"

Columns holds all SQL columns for file fields.

View Source
var (
	// EntitiesPrimaryKey and EntitiesColumn2 are the table columns denoting the
	// primary key for the entities relation (M2M).
	EntitiesPrimaryKey = []string{"file_id", "entity_id"}
)

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.File

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.File

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.File

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.File

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.File

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.File

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.File

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func FileChildren

func FileChildren(v int) predicate.File

FileChildren applies equality check predicate on the "file_children" field. It's identical to FileChildrenEQ.

func FileChildrenEQ

func FileChildrenEQ(v int) predicate.File

FileChildrenEQ applies the EQ predicate on the "file_children" field.

func FileChildrenIn

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

FileChildrenIn applies the In predicate on the "file_children" field.

func FileChildrenIsNil

func FileChildrenIsNil() predicate.File

FileChildrenIsNil applies the IsNil predicate on the "file_children" field.

func FileChildrenNEQ

func FileChildrenNEQ(v int) predicate.File

FileChildrenNEQ applies the NEQ predicate on the "file_children" field.

func FileChildrenNotIn

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

FileChildrenNotIn applies the NotIn predicate on the "file_children" field.

func FileChildrenNotNil

func FileChildrenNotNil() predicate.File

FileChildrenNotNil applies the NotNil predicate on the "file_children" field.

func HasChildren

func HasChildren() predicate.File

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.File) predicate.File

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

func HasDirectLinks() predicate.File

HasDirectLinks applies the HasEdge predicate on the "direct_links" edge.

func HasDirectLinksWith

func HasDirectLinksWith(preds ...predicate.DirectLink) predicate.File

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

func HasEntities

func HasEntities() predicate.File

HasEntities applies the HasEdge predicate on the "entities" edge.

func HasEntitiesWith

func HasEntitiesWith(preds ...predicate.Entity) predicate.File

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

func HasMetadata

func HasMetadata() predicate.File

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.File

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

func HasOwner

func HasOwner() predicate.File

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

func HasOwnerWith

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

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

func HasParent

func HasParent() predicate.File

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.File) predicate.File

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

func HasShares

func HasShares() predicate.File

HasShares applies the HasEdge predicate on the "shares" edge.

func HasSharesWith

func HasSharesWith(preds ...predicate.Share) predicate.File

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

func HasStoragePolicies

func HasStoragePolicies() predicate.File

HasStoragePolicies applies the HasEdge predicate on the "storage_policies" edge.

func HasStoragePoliciesWith

func HasStoragePoliciesWith(preds ...predicate.StoragePolicy) predicate.File

HasStoragePoliciesWith applies the HasEdge predicate on the "storage_policies" 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 IsSymbolic

func IsSymbolic(v bool) predicate.File

IsSymbolic applies equality check predicate on the "is_symbolic" field. It's identical to IsSymbolicEQ.

func IsSymbolicEQ

func IsSymbolicEQ(v bool) predicate.File

IsSymbolicEQ applies the EQ predicate on the "is_symbolic" field.

func IsSymbolicNEQ

func IsSymbolicNEQ(v bool) predicate.File

IsSymbolicNEQ applies the NEQ predicate on the "is_symbolic" field.

func Name

func Name(v string) predicate.File

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

func NameContains

func NameContains(v string) predicate.File

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

func NameContainsFold

func NameContainsFold(v string) predicate.File

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

func NameEQ

func NameEQ(v string) predicate.File

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

func NameEqualFold

func NameEqualFold(v string) predicate.File

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

func NameGT

func NameGT(v string) predicate.File

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

func NameGTE

func NameGTE(v string) predicate.File

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.File

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.File

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.File

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

func NameLTE

func NameLTE(v string) predicate.File

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

func NameNEQ

func NameNEQ(v string) predicate.File

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v int) predicate.File

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v int) predicate.File

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

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

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v int) predicate.File

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

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

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func PrimaryEntity

func PrimaryEntity(v int) predicate.File

PrimaryEntity applies equality check predicate on the "primary_entity" field. It's identical to PrimaryEntityEQ.

func PrimaryEntityEQ

func PrimaryEntityEQ(v int) predicate.File

PrimaryEntityEQ applies the EQ predicate on the "primary_entity" field.

func PrimaryEntityGT

func PrimaryEntityGT(v int) predicate.File

PrimaryEntityGT applies the GT predicate on the "primary_entity" field.

func PrimaryEntityGTE

func PrimaryEntityGTE(v int) predicate.File

PrimaryEntityGTE applies the GTE predicate on the "primary_entity" field.

func PrimaryEntityIn

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

PrimaryEntityIn applies the In predicate on the "primary_entity" field.

func PrimaryEntityIsNil

func PrimaryEntityIsNil() predicate.File

PrimaryEntityIsNil applies the IsNil predicate on the "primary_entity" field.

func PrimaryEntityLT

func PrimaryEntityLT(v int) predicate.File

PrimaryEntityLT applies the LT predicate on the "primary_entity" field.

func PrimaryEntityLTE

func PrimaryEntityLTE(v int) predicate.File

PrimaryEntityLTE applies the LTE predicate on the "primary_entity" field.

func PrimaryEntityNEQ

func PrimaryEntityNEQ(v int) predicate.File

PrimaryEntityNEQ applies the NEQ predicate on the "primary_entity" field.

func PrimaryEntityNotIn

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

PrimaryEntityNotIn applies the NotIn predicate on the "primary_entity" field.

func PrimaryEntityNotNil

func PrimaryEntityNotNil() predicate.File

PrimaryEntityNotNil applies the NotNil predicate on the "primary_entity" field.

func PropsIsNil

func PropsIsNil() predicate.File

PropsIsNil applies the IsNil predicate on the "props" field.

func PropsNotNil

func PropsNotNil() predicate.File

PropsNotNil applies the NotNil predicate on the "props" 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 StoragePolicyFiles

func StoragePolicyFiles(v int) predicate.File

StoragePolicyFiles applies equality check predicate on the "storage_policy_files" field. It's identical to StoragePolicyFilesEQ.

func StoragePolicyFilesEQ

func StoragePolicyFilesEQ(v int) predicate.File

StoragePolicyFilesEQ applies the EQ predicate on the "storage_policy_files" field.

func StoragePolicyFilesIn

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

StoragePolicyFilesIn applies the In predicate on the "storage_policy_files" field.

func StoragePolicyFilesIsNil

func StoragePolicyFilesIsNil() predicate.File

StoragePolicyFilesIsNil applies the IsNil predicate on the "storage_policy_files" field.

func StoragePolicyFilesNEQ

func StoragePolicyFilesNEQ(v int) predicate.File

StoragePolicyFilesNEQ applies the NEQ predicate on the "storage_policy_files" field.

func StoragePolicyFilesNotIn

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

StoragePolicyFilesNotIn applies the NotIn predicate on the "storage_policy_files" field.

func StoragePolicyFilesNotNil

func StoragePolicyFilesNotNil() predicate.File

StoragePolicyFilesNotNil applies the NotNil predicate on the "storage_policy_files" field.

func Type

func Type(v int) predicate.File

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

func TypeEQ

func TypeEQ(v int) predicate.File

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

func TypeGT

func TypeGT(v int) predicate.File

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

func TypeGTE

func TypeGTE(v int) predicate.File

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

func TypeIn

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

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

func TypeLT

func TypeLT(v int) predicate.File

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

func TypeLTE

func TypeLTE(v int) predicate.File

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

func TypeNEQ

func TypeNEQ(v int) predicate.File

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

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.File

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.File

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.File

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.File

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.File

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.File

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.File

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 File queries.

func ByChildren

func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByChildren orders the results by children terms.

func ByChildrenCount

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

ByChildrenCount orders the results by children count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDirectLinks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDirectLinks orders the results by direct_links terms.

func ByDirectLinksCount

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

ByDirectLinksCount orders the results by direct_links count.

func ByEntities

func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEntities orders the results by entities terms.

func ByEntitiesCount

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

ByEntitiesCount orders the results by entities count.

func ByFileChildren

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

ByFileChildren orders the results by the file_children field.

func ByID

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

ByID orders the results by the id field.

func ByIsSymbolic

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

ByIsSymbolic orders the results by the is_symbolic field.

func ByMetadata

func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMetadata orders the results by metadata terms.

func ByMetadataCount

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

ByMetadataCount orders the results by metadata count.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByParentField

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

ByParentField orders the results by parent field.

func ByPrimaryEntity

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

ByPrimaryEntity orders the results by the primary_entity field.

func ByShares

func ByShares(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByShares orders the results by shares terms.

func BySharesCount

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

BySharesCount orders the results by shares count.

func BySize

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

BySize orders the results by the size field.

func ByStoragePoliciesField

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

ByStoragePoliciesField orders the results by storage_policies field.

func ByStoragePolicyFiles

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

ByStoragePolicyFiles orders the results by the storage_policy_files field.

func ByType

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

ByType orders the results by the type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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