storagepolicy

package
v4.0.0-...-5b82330 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the storagepolicy type in the database.
	Label = "storage_policy"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldServer holds the string denoting the server field in the database.
	FieldServer = "server"
	// FieldBucketName holds the string denoting the bucket_name field in the database.
	FieldBucketName = "bucket_name"
	// FieldIsPrivate holds the string denoting the is_private field in the database.
	FieldIsPrivate = "is_private"
	// FieldAccessKey holds the string denoting the access_key field in the database.
	FieldAccessKey = "access_key"
	// FieldSecretKey holds the string denoting the secret_key field in the database.
	FieldSecretKey = "secret_key"
	// FieldMaxSize holds the string denoting the max_size field in the database.
	FieldMaxSize = "max_size"
	// FieldDirNameRule holds the string denoting the dir_name_rule field in the database.
	FieldDirNameRule = "dir_name_rule"
	// FieldFileNameRule holds the string denoting the file_name_rule field in the database.
	FieldFileNameRule = "file_name_rule"
	// FieldSettings holds the string denoting the settings field in the database.
	FieldSettings = "settings"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeEntities holds the string denoting the entities edge name in mutations.
	EdgeEntities = "entities"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// Table holds the table name of the storagepolicy in the database.
	Table = "storage_policies"
	// GroupsTable is the table that holds the groups relation/edge.
	GroupsTable = "groups"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupsInverseTable = "groups"
	// GroupsColumn is the table column denoting the groups relation/edge.
	GroupsColumn = "storage_policy_id"
	// 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 = "storage_policy_files"
	// EntitiesTable is the table that holds the entities relation/edge.
	EntitiesTable = "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"
	// EntitiesColumn is the table column denoting the entities relation/edge.
	EntitiesColumn = "storage_policy_entities"
	// NodeTable is the table that holds the node relation/edge.
	NodeTable = "storage_policies"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// NodeColumn is the table column denoting the node relation/edge.
	NodeColumn = "node_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultSettings holds the default value on creation for the "settings" field.
	DefaultSettings *types.PolicySetting
)

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 storagepolicy fields.

Functions

func AccessKey

func AccessKey(v string) predicate.StoragePolicy

AccessKey applies equality check predicate on the "access_key" field. It's identical to AccessKeyEQ.

func AccessKeyContains

func AccessKeyContains(v string) predicate.StoragePolicy

AccessKeyContains applies the Contains predicate on the "access_key" field.

func AccessKeyContainsFold

func AccessKeyContainsFold(v string) predicate.StoragePolicy

AccessKeyContainsFold applies the ContainsFold predicate on the "access_key" field.

func AccessKeyEQ

func AccessKeyEQ(v string) predicate.StoragePolicy

AccessKeyEQ applies the EQ predicate on the "access_key" field.

func AccessKeyEqualFold

func AccessKeyEqualFold(v string) predicate.StoragePolicy

AccessKeyEqualFold applies the EqualFold predicate on the "access_key" field.

func AccessKeyGT

func AccessKeyGT(v string) predicate.StoragePolicy

AccessKeyGT applies the GT predicate on the "access_key" field.

func AccessKeyGTE

func AccessKeyGTE(v string) predicate.StoragePolicy

AccessKeyGTE applies the GTE predicate on the "access_key" field.

func AccessKeyHasPrefix

func AccessKeyHasPrefix(v string) predicate.StoragePolicy

AccessKeyHasPrefix applies the HasPrefix predicate on the "access_key" field.

func AccessKeyHasSuffix

func AccessKeyHasSuffix(v string) predicate.StoragePolicy

AccessKeyHasSuffix applies the HasSuffix predicate on the "access_key" field.

func AccessKeyIn

func AccessKeyIn(vs ...string) predicate.StoragePolicy

AccessKeyIn applies the In predicate on the "access_key" field.

func AccessKeyIsNil

func AccessKeyIsNil() predicate.StoragePolicy

AccessKeyIsNil applies the IsNil predicate on the "access_key" field.

func AccessKeyLT

func AccessKeyLT(v string) predicate.StoragePolicy

AccessKeyLT applies the LT predicate on the "access_key" field.

func AccessKeyLTE

func AccessKeyLTE(v string) predicate.StoragePolicy

AccessKeyLTE applies the LTE predicate on the "access_key" field.

func AccessKeyNEQ

func AccessKeyNEQ(v string) predicate.StoragePolicy

AccessKeyNEQ applies the NEQ predicate on the "access_key" field.

func AccessKeyNotIn

func AccessKeyNotIn(vs ...string) predicate.StoragePolicy

AccessKeyNotIn applies the NotIn predicate on the "access_key" field.

func AccessKeyNotNil

func AccessKeyNotNil() predicate.StoragePolicy

AccessKeyNotNil applies the NotNil predicate on the "access_key" field.

func And

And groups predicates with the AND operator between them.

func BucketName

func BucketName(v string) predicate.StoragePolicy

BucketName applies equality check predicate on the "bucket_name" field. It's identical to BucketNameEQ.

func BucketNameContains

func BucketNameContains(v string) predicate.StoragePolicy

BucketNameContains applies the Contains predicate on the "bucket_name" field.

func BucketNameContainsFold

func BucketNameContainsFold(v string) predicate.StoragePolicy

BucketNameContainsFold applies the ContainsFold predicate on the "bucket_name" field.

func BucketNameEQ

func BucketNameEQ(v string) predicate.StoragePolicy

BucketNameEQ applies the EQ predicate on the "bucket_name" field.

func BucketNameEqualFold

func BucketNameEqualFold(v string) predicate.StoragePolicy

BucketNameEqualFold applies the EqualFold predicate on the "bucket_name" field.

func BucketNameGT

func BucketNameGT(v string) predicate.StoragePolicy

BucketNameGT applies the GT predicate on the "bucket_name" field.

func BucketNameGTE

func BucketNameGTE(v string) predicate.StoragePolicy

BucketNameGTE applies the GTE predicate on the "bucket_name" field.

func BucketNameHasPrefix

func BucketNameHasPrefix(v string) predicate.StoragePolicy

BucketNameHasPrefix applies the HasPrefix predicate on the "bucket_name" field.

func BucketNameHasSuffix

func BucketNameHasSuffix(v string) predicate.StoragePolicy

BucketNameHasSuffix applies the HasSuffix predicate on the "bucket_name" field.

func BucketNameIn

func BucketNameIn(vs ...string) predicate.StoragePolicy

BucketNameIn applies the In predicate on the "bucket_name" field.

func BucketNameIsNil

func BucketNameIsNil() predicate.StoragePolicy

BucketNameIsNil applies the IsNil predicate on the "bucket_name" field.

func BucketNameLT

func BucketNameLT(v string) predicate.StoragePolicy

BucketNameLT applies the LT predicate on the "bucket_name" field.

func BucketNameLTE

func BucketNameLTE(v string) predicate.StoragePolicy

BucketNameLTE applies the LTE predicate on the "bucket_name" field.

func BucketNameNEQ

func BucketNameNEQ(v string) predicate.StoragePolicy

BucketNameNEQ applies the NEQ predicate on the "bucket_name" field.

func BucketNameNotIn

func BucketNameNotIn(vs ...string) predicate.StoragePolicy

BucketNameNotIn applies the NotIn predicate on the "bucket_name" field.

func BucketNameNotNil

func BucketNameNotNil() predicate.StoragePolicy

BucketNameNotNil applies the NotNil predicate on the "bucket_name" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.StoragePolicy

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.StoragePolicy

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.StoragePolicy

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.StoragePolicy

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.StoragePolicy

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.StoragePolicy

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.StoragePolicy

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.StoragePolicy

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.StoragePolicy

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.StoragePolicy

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.StoragePolicy

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.StoragePolicy

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.StoragePolicy

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.StoragePolicy

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.StoragePolicy

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.StoragePolicy

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.StoragePolicy

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.StoragePolicy

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DirNameRule

func DirNameRule(v string) predicate.StoragePolicy

DirNameRule applies equality check predicate on the "dir_name_rule" field. It's identical to DirNameRuleEQ.

func DirNameRuleContains

func DirNameRuleContains(v string) predicate.StoragePolicy

DirNameRuleContains applies the Contains predicate on the "dir_name_rule" field.

func DirNameRuleContainsFold

func DirNameRuleContainsFold(v string) predicate.StoragePolicy

DirNameRuleContainsFold applies the ContainsFold predicate on the "dir_name_rule" field.

func DirNameRuleEQ

func DirNameRuleEQ(v string) predicate.StoragePolicy

DirNameRuleEQ applies the EQ predicate on the "dir_name_rule" field.

func DirNameRuleEqualFold

func DirNameRuleEqualFold(v string) predicate.StoragePolicy

DirNameRuleEqualFold applies the EqualFold predicate on the "dir_name_rule" field.

func DirNameRuleGT

func DirNameRuleGT(v string) predicate.StoragePolicy

DirNameRuleGT applies the GT predicate on the "dir_name_rule" field.

func DirNameRuleGTE

func DirNameRuleGTE(v string) predicate.StoragePolicy

DirNameRuleGTE applies the GTE predicate on the "dir_name_rule" field.

func DirNameRuleHasPrefix

func DirNameRuleHasPrefix(v string) predicate.StoragePolicy

DirNameRuleHasPrefix applies the HasPrefix predicate on the "dir_name_rule" field.

func DirNameRuleHasSuffix

func DirNameRuleHasSuffix(v string) predicate.StoragePolicy

DirNameRuleHasSuffix applies the HasSuffix predicate on the "dir_name_rule" field.

func DirNameRuleIn

func DirNameRuleIn(vs ...string) predicate.StoragePolicy

DirNameRuleIn applies the In predicate on the "dir_name_rule" field.

func DirNameRuleIsNil

func DirNameRuleIsNil() predicate.StoragePolicy

DirNameRuleIsNil applies the IsNil predicate on the "dir_name_rule" field.

func DirNameRuleLT

func DirNameRuleLT(v string) predicate.StoragePolicy

DirNameRuleLT applies the LT predicate on the "dir_name_rule" field.

func DirNameRuleLTE

func DirNameRuleLTE(v string) predicate.StoragePolicy

DirNameRuleLTE applies the LTE predicate on the "dir_name_rule" field.

func DirNameRuleNEQ

func DirNameRuleNEQ(v string) predicate.StoragePolicy

DirNameRuleNEQ applies the NEQ predicate on the "dir_name_rule" field.

func DirNameRuleNotIn

func DirNameRuleNotIn(vs ...string) predicate.StoragePolicy

DirNameRuleNotIn applies the NotIn predicate on the "dir_name_rule" field.

func DirNameRuleNotNil

func DirNameRuleNotNil() predicate.StoragePolicy

DirNameRuleNotNil applies the NotNil predicate on the "dir_name_rule" field.

func FileNameRule

func FileNameRule(v string) predicate.StoragePolicy

FileNameRule applies equality check predicate on the "file_name_rule" field. It's identical to FileNameRuleEQ.

func FileNameRuleContains

func FileNameRuleContains(v string) predicate.StoragePolicy

FileNameRuleContains applies the Contains predicate on the "file_name_rule" field.

func FileNameRuleContainsFold

func FileNameRuleContainsFold(v string) predicate.StoragePolicy

FileNameRuleContainsFold applies the ContainsFold predicate on the "file_name_rule" field.

func FileNameRuleEQ

func FileNameRuleEQ(v string) predicate.StoragePolicy

FileNameRuleEQ applies the EQ predicate on the "file_name_rule" field.

func FileNameRuleEqualFold

func FileNameRuleEqualFold(v string) predicate.StoragePolicy

FileNameRuleEqualFold applies the EqualFold predicate on the "file_name_rule" field.

func FileNameRuleGT

func FileNameRuleGT(v string) predicate.StoragePolicy

FileNameRuleGT applies the GT predicate on the "file_name_rule" field.

func FileNameRuleGTE

func FileNameRuleGTE(v string) predicate.StoragePolicy

FileNameRuleGTE applies the GTE predicate on the "file_name_rule" field.

func FileNameRuleHasPrefix

func FileNameRuleHasPrefix(v string) predicate.StoragePolicy

FileNameRuleHasPrefix applies the HasPrefix predicate on the "file_name_rule" field.

func FileNameRuleHasSuffix

func FileNameRuleHasSuffix(v string) predicate.StoragePolicy

FileNameRuleHasSuffix applies the HasSuffix predicate on the "file_name_rule" field.

func FileNameRuleIn

func FileNameRuleIn(vs ...string) predicate.StoragePolicy

FileNameRuleIn applies the In predicate on the "file_name_rule" field.

func FileNameRuleIsNil

func FileNameRuleIsNil() predicate.StoragePolicy

FileNameRuleIsNil applies the IsNil predicate on the "file_name_rule" field.

func FileNameRuleLT

func FileNameRuleLT(v string) predicate.StoragePolicy

FileNameRuleLT applies the LT predicate on the "file_name_rule" field.

func FileNameRuleLTE

func FileNameRuleLTE(v string) predicate.StoragePolicy

FileNameRuleLTE applies the LTE predicate on the "file_name_rule" field.

func FileNameRuleNEQ

func FileNameRuleNEQ(v string) predicate.StoragePolicy

FileNameRuleNEQ applies the NEQ predicate on the "file_name_rule" field.

func FileNameRuleNotIn

func FileNameRuleNotIn(vs ...string) predicate.StoragePolicy

FileNameRuleNotIn applies the NotIn predicate on the "file_name_rule" field.

func FileNameRuleNotNil

func FileNameRuleNotNil() predicate.StoragePolicy

FileNameRuleNotNil applies the NotNil predicate on the "file_name_rule" field.

func HasEntities

func HasEntities() predicate.StoragePolicy

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

func HasEntitiesWith

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

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

func HasFiles

func HasFiles() predicate.StoragePolicy

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

func HasFilesWith

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

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

func HasGroups

func HasGroups() predicate.StoragePolicy

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.StoragePolicy

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

func HasNode

func HasNode() predicate.StoragePolicy

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.StoragePolicy

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.StoragePolicy

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.StoragePolicy

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.StoragePolicy

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.StoragePolicy

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.StoragePolicy

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.StoragePolicy

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsPrivate

func IsPrivate(v bool) predicate.StoragePolicy

IsPrivate applies equality check predicate on the "is_private" field. It's identical to IsPrivateEQ.

func IsPrivateEQ

func IsPrivateEQ(v bool) predicate.StoragePolicy

IsPrivateEQ applies the EQ predicate on the "is_private" field.

func IsPrivateIsNil

func IsPrivateIsNil() predicate.StoragePolicy

IsPrivateIsNil applies the IsNil predicate on the "is_private" field.

func IsPrivateNEQ

func IsPrivateNEQ(v bool) predicate.StoragePolicy

IsPrivateNEQ applies the NEQ predicate on the "is_private" field.

func IsPrivateNotNil

func IsPrivateNotNil() predicate.StoragePolicy

IsPrivateNotNil applies the NotNil predicate on the "is_private" field.

func MaxSize

func MaxSize(v int64) predicate.StoragePolicy

MaxSize applies equality check predicate on the "max_size" field. It's identical to MaxSizeEQ.

func MaxSizeEQ

func MaxSizeEQ(v int64) predicate.StoragePolicy

MaxSizeEQ applies the EQ predicate on the "max_size" field.

func MaxSizeGT

func MaxSizeGT(v int64) predicate.StoragePolicy

MaxSizeGT applies the GT predicate on the "max_size" field.

func MaxSizeGTE

func MaxSizeGTE(v int64) predicate.StoragePolicy

MaxSizeGTE applies the GTE predicate on the "max_size" field.

func MaxSizeIn

func MaxSizeIn(vs ...int64) predicate.StoragePolicy

MaxSizeIn applies the In predicate on the "max_size" field.

func MaxSizeIsNil

func MaxSizeIsNil() predicate.StoragePolicy

MaxSizeIsNil applies the IsNil predicate on the "max_size" field.

func MaxSizeLT

func MaxSizeLT(v int64) predicate.StoragePolicy

MaxSizeLT applies the LT predicate on the "max_size" field.

func MaxSizeLTE

func MaxSizeLTE(v int64) predicate.StoragePolicy

MaxSizeLTE applies the LTE predicate on the "max_size" field.

func MaxSizeNEQ

func MaxSizeNEQ(v int64) predicate.StoragePolicy

MaxSizeNEQ applies the NEQ predicate on the "max_size" field.

func MaxSizeNotIn

func MaxSizeNotIn(vs ...int64) predicate.StoragePolicy

MaxSizeNotIn applies the NotIn predicate on the "max_size" field.

func MaxSizeNotNil

func MaxSizeNotNil() predicate.StoragePolicy

MaxSizeNotNil applies the NotNil predicate on the "max_size" field.

func Name

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

func NameContains

func NameContains(v string) predicate.StoragePolicy

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

func NameContainsFold

func NameContainsFold(v string) predicate.StoragePolicy

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

func NameEQ

func NameEQ(v string) predicate.StoragePolicy

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

func NameEqualFold

func NameEqualFold(v string) predicate.StoragePolicy

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

func NameGT

func NameGT(v string) predicate.StoragePolicy

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

func NameGTE

func NameGTE(v string) predicate.StoragePolicy

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.StoragePolicy

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.StoragePolicy

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.StoragePolicy

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

func NameLTE

func NameLTE(v string) predicate.StoragePolicy

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

func NameNEQ

func NameNEQ(v string) predicate.StoragePolicy

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

func NameNotIn

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

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

func NodeID

func NodeID(v int) predicate.StoragePolicy

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDEQ

func NodeIDEQ(v int) predicate.StoragePolicy

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...int) predicate.StoragePolicy

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDIsNil

func NodeIDIsNil() predicate.StoragePolicy

NodeIDIsNil applies the IsNil predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v int) predicate.StoragePolicy

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...int) predicate.StoragePolicy

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func NodeIDNotNil

func NodeIDNotNil() predicate.StoragePolicy

NodeIDNotNil applies the NotNil predicate on the "node_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SecretKey

func SecretKey(v string) predicate.StoragePolicy

SecretKey applies equality check predicate on the "secret_key" field. It's identical to SecretKeyEQ.

func SecretKeyContains

func SecretKeyContains(v string) predicate.StoragePolicy

SecretKeyContains applies the Contains predicate on the "secret_key" field.

func SecretKeyContainsFold

func SecretKeyContainsFold(v string) predicate.StoragePolicy

SecretKeyContainsFold applies the ContainsFold predicate on the "secret_key" field.

func SecretKeyEQ

func SecretKeyEQ(v string) predicate.StoragePolicy

SecretKeyEQ applies the EQ predicate on the "secret_key" field.

func SecretKeyEqualFold

func SecretKeyEqualFold(v string) predicate.StoragePolicy

SecretKeyEqualFold applies the EqualFold predicate on the "secret_key" field.

func SecretKeyGT

func SecretKeyGT(v string) predicate.StoragePolicy

SecretKeyGT applies the GT predicate on the "secret_key" field.

func SecretKeyGTE

func SecretKeyGTE(v string) predicate.StoragePolicy

SecretKeyGTE applies the GTE predicate on the "secret_key" field.

func SecretKeyHasPrefix

func SecretKeyHasPrefix(v string) predicate.StoragePolicy

SecretKeyHasPrefix applies the HasPrefix predicate on the "secret_key" field.

func SecretKeyHasSuffix

func SecretKeyHasSuffix(v string) predicate.StoragePolicy

SecretKeyHasSuffix applies the HasSuffix predicate on the "secret_key" field.

func SecretKeyIn

func SecretKeyIn(vs ...string) predicate.StoragePolicy

SecretKeyIn applies the In predicate on the "secret_key" field.

func SecretKeyIsNil

func SecretKeyIsNil() predicate.StoragePolicy

SecretKeyIsNil applies the IsNil predicate on the "secret_key" field.

func SecretKeyLT

func SecretKeyLT(v string) predicate.StoragePolicy

SecretKeyLT applies the LT predicate on the "secret_key" field.

func SecretKeyLTE

func SecretKeyLTE(v string) predicate.StoragePolicy

SecretKeyLTE applies the LTE predicate on the "secret_key" field.

func SecretKeyNEQ

func SecretKeyNEQ(v string) predicate.StoragePolicy

SecretKeyNEQ applies the NEQ predicate on the "secret_key" field.

func SecretKeyNotIn

func SecretKeyNotIn(vs ...string) predicate.StoragePolicy

SecretKeyNotIn applies the NotIn predicate on the "secret_key" field.

func SecretKeyNotNil

func SecretKeyNotNil() predicate.StoragePolicy

SecretKeyNotNil applies the NotNil predicate on the "secret_key" field.

func Server

func Server(v string) predicate.StoragePolicy

Server applies equality check predicate on the "server" field. It's identical to ServerEQ.

func ServerContains

func ServerContains(v string) predicate.StoragePolicy

ServerContains applies the Contains predicate on the "server" field.

func ServerContainsFold

func ServerContainsFold(v string) predicate.StoragePolicy

ServerContainsFold applies the ContainsFold predicate on the "server" field.

func ServerEQ

func ServerEQ(v string) predicate.StoragePolicy

ServerEQ applies the EQ predicate on the "server" field.

func ServerEqualFold

func ServerEqualFold(v string) predicate.StoragePolicy

ServerEqualFold applies the EqualFold predicate on the "server" field.

func ServerGT

func ServerGT(v string) predicate.StoragePolicy

ServerGT applies the GT predicate on the "server" field.

func ServerGTE

func ServerGTE(v string) predicate.StoragePolicy

ServerGTE applies the GTE predicate on the "server" field.

func ServerHasPrefix

func ServerHasPrefix(v string) predicate.StoragePolicy

ServerHasPrefix applies the HasPrefix predicate on the "server" field.

func ServerHasSuffix

func ServerHasSuffix(v string) predicate.StoragePolicy

ServerHasSuffix applies the HasSuffix predicate on the "server" field.

func ServerIn

func ServerIn(vs ...string) predicate.StoragePolicy

ServerIn applies the In predicate on the "server" field.

func ServerIsNil

func ServerIsNil() predicate.StoragePolicy

ServerIsNil applies the IsNil predicate on the "server" field.

func ServerLT

func ServerLT(v string) predicate.StoragePolicy

ServerLT applies the LT predicate on the "server" field.

func ServerLTE

func ServerLTE(v string) predicate.StoragePolicy

ServerLTE applies the LTE predicate on the "server" field.

func ServerNEQ

func ServerNEQ(v string) predicate.StoragePolicy

ServerNEQ applies the NEQ predicate on the "server" field.

func ServerNotIn

func ServerNotIn(vs ...string) predicate.StoragePolicy

ServerNotIn applies the NotIn predicate on the "server" field.

func ServerNotNil

func ServerNotNil() predicate.StoragePolicy

ServerNotNil applies the NotNil predicate on the "server" field.

func SettingsIsNil

func SettingsIsNil() predicate.StoragePolicy

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.StoragePolicy

SettingsNotNil applies the NotNil predicate on the "settings" field.

func Type

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

func TypeContains

func TypeContains(v string) predicate.StoragePolicy

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.StoragePolicy

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.StoragePolicy

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.StoragePolicy

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.StoragePolicy

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

func TypeGTE

func TypeGTE(v string) predicate.StoragePolicy

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

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.StoragePolicy

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.StoragePolicy

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.StoragePolicy

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

func TypeLT

func TypeLT(v string) predicate.StoragePolicy

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

func TypeLTE

func TypeLTE(v string) predicate.StoragePolicy

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

func TypeNEQ

func TypeNEQ(v string) predicate.StoragePolicy

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

func TypeNotIn

func TypeNotIn(vs ...string) predicate.StoragePolicy

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.StoragePolicy

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.StoragePolicy

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.StoragePolicy

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.StoragePolicy

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.StoragePolicy

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.StoragePolicy

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.StoragePolicy

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

func UpdatedAtNotIn

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

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 StoragePolicy queries.

func ByAccessKey

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

ByAccessKey orders the results by the access_key field.

func ByBucketName

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

ByBucketName orders the results by the bucket_name field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDirNameRule

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

ByDirNameRule orders the results by the dir_name_rule field.

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 ByFileNameRule

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

ByFileNameRule orders the results by the file_name_rule 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 ByGroups

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

ByGroups orders the results by groups terms.

func ByGroupsCount

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

ByGroupsCount orders the results by groups count.

func ByID

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

ByID orders the results by the id field.

func ByIsPrivate

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

ByIsPrivate orders the results by the is_private field.

func ByMaxSize

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

ByMaxSize orders the results by the max_size field.

func ByName

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

ByName orders the results by the name field.

func ByNodeField

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

ByNodeField orders the results by node field.

func ByNodeID

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

ByNodeID orders the results by the node_id field.

func BySecretKey

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

BySecretKey orders the results by the secret_key field.

func ByServer

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

ByServer orders the results by the server 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