cloudfile

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cloudfile type in the database.
	Label = "cloud_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"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldFileType holds the string denoting the file_type field in the database.
	FieldFileType = "file_type"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// EdgeStorageProviders holds the string denoting the storage_providers edge name in mutations.
	EdgeStorageProviders = "storage_providers"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// Table holds the table name of the cloudfile in the database.
	Table = "fms_cloud_files"
	// StorageProvidersTable is the table that holds the storage_providers relation/edge.
	StorageProvidersTable = "fms_cloud_files"
	// StorageProvidersInverseTable is the table name for the StorageProvider entity.
	// It exists in this package in order to avoid circular dependency with the "storageprovider" package.
	StorageProvidersInverseTable = "fms_storage_providers"
	// StorageProvidersColumn is the table column denoting the storage_providers relation/edge.
	StorageProvidersColumn = "cloud_file_storage_providers"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "cloud_file_tag_cloud_files"
	// TagsInverseTable is the table name for the CloudFileTag entity.
	// It exists in this package in order to avoid circular dependency with the "cloudfiletag" package.
	TagsInverseTable = "fms_cloud_file_tags"
)

Variables

View Source
var (
	// 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
	// DefaultState holds the default value on creation for the "state" field.
	DefaultState bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for cloudfile fields.

View Source
var ForeignKeys = []string{
	"cloud_file_storage_providers",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "fms_cloud_files" table and are not defined as standalone fields in the schema.

View Source
var (
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"cloud_file_tag_id", "cloud_file_id"}
)

Functions

func And

func And(predicates ...predicate.CloudFile) predicate.CloudFile

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CloudFile

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CloudFile

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CloudFile

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CloudFile

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CloudFile

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CloudFile

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CloudFile

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

func CreatedAtNotIn

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

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

func FileType

func FileType(v uint8) predicate.CloudFile

FileType applies equality check predicate on the "file_type" field. It's identical to FileTypeEQ.

func FileTypeEQ

func FileTypeEQ(v uint8) predicate.CloudFile

FileTypeEQ applies the EQ predicate on the "file_type" field.

func FileTypeGT

func FileTypeGT(v uint8) predicate.CloudFile

FileTypeGT applies the GT predicate on the "file_type" field.

func FileTypeGTE

func FileTypeGTE(v uint8) predicate.CloudFile

FileTypeGTE applies the GTE predicate on the "file_type" field.

func FileTypeIn

func FileTypeIn(vs ...uint8) predicate.CloudFile

FileTypeIn applies the In predicate on the "file_type" field.

func FileTypeLT

func FileTypeLT(v uint8) predicate.CloudFile

FileTypeLT applies the LT predicate on the "file_type" field.

func FileTypeLTE

func FileTypeLTE(v uint8) predicate.CloudFile

FileTypeLTE applies the LTE predicate on the "file_type" field.

func FileTypeNEQ

func FileTypeNEQ(v uint8) predicate.CloudFile

FileTypeNEQ applies the NEQ predicate on the "file_type" field.

func FileTypeNotIn

func FileTypeNotIn(vs ...uint8) predicate.CloudFile

FileTypeNotIn applies the NotIn predicate on the "file_type" field.

func HasStorageProviders

func HasStorageProviders() predicate.CloudFile

HasStorageProviders applies the HasEdge predicate on the "storage_providers" edge.

func HasStorageProvidersWith

func HasStorageProvidersWith(preds ...predicate.StorageProvider) predicate.CloudFile

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

func HasTags

func HasTags() predicate.CloudFile

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.CloudFileTag) predicate.CloudFile

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.CloudFile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.CloudFile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.CloudFile

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.CloudFile

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.CloudFile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.CloudFile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.CloudFile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.CloudFile

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.CloudFile

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

func NameContains

func NameContains(v string) predicate.CloudFile

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

func NameContainsFold

func NameContainsFold(v string) predicate.CloudFile

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

func NameEQ

func NameEQ(v string) predicate.CloudFile

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

func NameEqualFold

func NameEqualFold(v string) predicate.CloudFile

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

func NameGT

func NameGT(v string) predicate.CloudFile

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

func NameGTE

func NameGTE(v string) predicate.CloudFile

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.CloudFile

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.CloudFile

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.CloudFile

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

func NameLTE

func NameLTE(v string) predicate.CloudFile

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

func NameNEQ

func NameNEQ(v string) predicate.CloudFile

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

func NameNotIn

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

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.CloudFile) predicate.CloudFile

Or groups predicates with the OR operator between them.

func Size

func Size(v uint64) predicate.CloudFile

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v uint64) predicate.CloudFile

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v uint64) predicate.CloudFile

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v uint64) predicate.CloudFile

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...uint64) predicate.CloudFile

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v uint64) predicate.CloudFile

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v uint64) predicate.CloudFile

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v uint64) predicate.CloudFile

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...uint64) predicate.CloudFile

SizeNotIn applies the NotIn predicate on the "size" field.

func State

func State(v bool) predicate.CloudFile

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v bool) predicate.CloudFile

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

func StateIsNil

func StateIsNil() predicate.CloudFile

StateIsNil applies the IsNil predicate on the "state" field.

func StateNEQ

func StateNEQ(v bool) predicate.CloudFile

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

func StateNotNil

func StateNotNil() predicate.CloudFile

StateNotNil applies the NotNil predicate on the "state" field.

func URL

func URL(v string) predicate.CloudFile

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.CloudFile

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.CloudFile

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.CloudFile

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.CloudFile

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.CloudFile

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.CloudFile

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.CloudFile

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.CloudFile

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.CloudFile

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.CloudFile

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.CloudFile

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.CloudFile

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.CloudFile

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.CloudFile

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CloudFile

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CloudFile

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CloudFile

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CloudFile

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CloudFile

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CloudFile

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v string) predicate.CloudFile

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.CloudFile

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.CloudFile

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.CloudFile

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.CloudFile

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.CloudFile

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.CloudFile

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.CloudFile

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.CloudFile

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.CloudFile

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.CloudFile

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.CloudFile

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.CloudFile

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.CloudFile

UserIDNotIn applies the NotIn predicate on the "user_id" 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 CloudFile queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByFileType

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

ByFileType orders the results by the file_type field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func BySize

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

BySize orders the results by the size field.

func ByState

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

ByState orders the results by the state field.

func ByStorageProvidersField

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

ByStorageProvidersField orders the results by storage_providers field.

func ByTags

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

ByTags orders the results by tags terms.

func ByTagsCount

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

ByTagsCount orders the results by tags count.

func ByURL

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

ByURL orders the results by the url field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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