filesource

package
v0.0.0-...-c1ffc38 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the filesource type in the database.
	Label = "file_source"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldEndpoint holds the string denoting the endpoint field in the database.
	FieldEndpoint = "endpoint"
	// FieldRegion holds the string denoting the region field in the database.
	FieldRegion = "region"
	// FieldBucket holds the string denoting the bucket field in the database.
	FieldBucket = "bucket"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// Table holds the table name of the filesource in the database.
	Table = "file_source"
	// FilesTable is the table that holds the files relation/edge.
	FilesTable = "file"
	// 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 = "file"
	// FilesColumn is the table column denoting the files relation/edge.
	FilesColumn = "source_id"
)

Variables

View Source
var (
	Hooks [2]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// RegionValidator is a validator for the "region" field. It is called by the builders before save.
	RegionValidator func(string) error
	// BucketValidator is a validator for the "bucket" field. It is called by the builders before save.
	BucketValidator func(string) error
)

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/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for filesource fields.

Functions

func And

func And(predicates ...predicate.FileSource) predicate.FileSource

And groups predicates with the AND operator between them.

func Bucket

func Bucket(v string) predicate.FileSource

Bucket applies equality check predicate on the "bucket" field. It's identical to BucketEQ.

func BucketContains

func BucketContains(v string) predicate.FileSource

BucketContains applies the Contains predicate on the "bucket" field.

func BucketContainsFold

func BucketContainsFold(v string) predicate.FileSource

BucketContainsFold applies the ContainsFold predicate on the "bucket" field.

func BucketEQ

func BucketEQ(v string) predicate.FileSource

BucketEQ applies the EQ predicate on the "bucket" field.

func BucketEqualFold

func BucketEqualFold(v string) predicate.FileSource

BucketEqualFold applies the EqualFold predicate on the "bucket" field.

func BucketGT

func BucketGT(v string) predicate.FileSource

BucketGT applies the GT predicate on the "bucket" field.

func BucketGTE

func BucketGTE(v string) predicate.FileSource

BucketGTE applies the GTE predicate on the "bucket" field.

func BucketHasPrefix

func BucketHasPrefix(v string) predicate.FileSource

BucketHasPrefix applies the HasPrefix predicate on the "bucket" field.

func BucketHasSuffix

func BucketHasSuffix(v string) predicate.FileSource

BucketHasSuffix applies the HasSuffix predicate on the "bucket" field.

func BucketIn

func BucketIn(vs ...string) predicate.FileSource

BucketIn applies the In predicate on the "bucket" field.

func BucketIsNil

func BucketIsNil() predicate.FileSource

BucketIsNil applies the IsNil predicate on the "bucket" field.

func BucketLT

func BucketLT(v string) predicate.FileSource

BucketLT applies the LT predicate on the "bucket" field.

func BucketLTE

func BucketLTE(v string) predicate.FileSource

BucketLTE applies the LTE predicate on the "bucket" field.

func BucketNEQ

func BucketNEQ(v string) predicate.FileSource

BucketNEQ applies the NEQ predicate on the "bucket" field.

func BucketNotIn

func BucketNotIn(vs ...string) predicate.FileSource

BucketNotIn applies the NotIn predicate on the "bucket" field.

func BucketNotNil

func BucketNotNil() predicate.FileSource

BucketNotNil applies the NotNil predicate on the "bucket" field.

func Comments

func Comments(v string) predicate.FileSource

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.FileSource

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.FileSource

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.FileSource

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.FileSource

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.FileSource

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.FileSource

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.FileSource

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.FileSource

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.FileSource

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.FileSource

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.FileSource

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.FileSource

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.FileSource

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.FileSource

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.FileSource

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.FileSource

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FileSource

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FileSource

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FileSource

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FileSource

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FileSource

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FileSource

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.FileSource

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.FileSource

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.FileSource

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.FileSource

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.FileSource

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.FileSource

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.FileSource

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.FileSource

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.FileSource

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func Endpoint

func Endpoint(v string) predicate.FileSource

Endpoint applies equality check predicate on the "endpoint" field. It's identical to EndpointEQ.

func EndpointContains

func EndpointContains(v string) predicate.FileSource

EndpointContains applies the Contains predicate on the "endpoint" field.

func EndpointContainsFold

func EndpointContainsFold(v string) predicate.FileSource

EndpointContainsFold applies the ContainsFold predicate on the "endpoint" field.

func EndpointEQ

func EndpointEQ(v string) predicate.FileSource

EndpointEQ applies the EQ predicate on the "endpoint" field.

func EndpointEqualFold

func EndpointEqualFold(v string) predicate.FileSource

EndpointEqualFold applies the EqualFold predicate on the "endpoint" field.

func EndpointGT

func EndpointGT(v string) predicate.FileSource

EndpointGT applies the GT predicate on the "endpoint" field.

func EndpointGTE

func EndpointGTE(v string) predicate.FileSource

EndpointGTE applies the GTE predicate on the "endpoint" field.

func EndpointHasPrefix

func EndpointHasPrefix(v string) predicate.FileSource

EndpointHasPrefix applies the HasPrefix predicate on the "endpoint" field.

func EndpointHasSuffix

func EndpointHasSuffix(v string) predicate.FileSource

EndpointHasSuffix applies the HasSuffix predicate on the "endpoint" field.

func EndpointIn

func EndpointIn(vs ...string) predicate.FileSource

EndpointIn applies the In predicate on the "endpoint" field.

func EndpointIsNil

func EndpointIsNil() predicate.FileSource

EndpointIsNil applies the IsNil predicate on the "endpoint" field.

func EndpointLT

func EndpointLT(v string) predicate.FileSource

EndpointLT applies the LT predicate on the "endpoint" field.

func EndpointLTE

func EndpointLTE(v string) predicate.FileSource

EndpointLTE applies the LTE predicate on the "endpoint" field.

func EndpointNEQ

func EndpointNEQ(v string) predicate.FileSource

EndpointNEQ applies the NEQ predicate on the "endpoint" field.

func EndpointNotIn

func EndpointNotIn(vs ...string) predicate.FileSource

EndpointNotIn applies the NotIn predicate on the "endpoint" field.

func EndpointNotNil

func EndpointNotNil() predicate.FileSource

EndpointNotNil applies the NotNil predicate on the "endpoint" field.

func HasFiles

func HasFiles() predicate.FileSource

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

func HasFilesWith

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

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

func ID

func ID(id int) predicate.FileSource

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.FileSource

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.FileSource

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.FileSource

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.FileSource

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.FileSource

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.FileSource

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.FileSource

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.FileSource

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.FileSource

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.FileSource

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FileSource) predicate.FileSource

Or groups predicates with the OR operator between them.

func Region

func Region(v string) predicate.FileSource

Region applies equality check predicate on the "region" field. It's identical to RegionEQ.

func RegionContains

func RegionContains(v string) predicate.FileSource

RegionContains applies the Contains predicate on the "region" field.

func RegionContainsFold

func RegionContainsFold(v string) predicate.FileSource

RegionContainsFold applies the ContainsFold predicate on the "region" field.

func RegionEQ

func RegionEQ(v string) predicate.FileSource

RegionEQ applies the EQ predicate on the "region" field.

func RegionEqualFold

func RegionEqualFold(v string) predicate.FileSource

RegionEqualFold applies the EqualFold predicate on the "region" field.

func RegionGT

func RegionGT(v string) predicate.FileSource

RegionGT applies the GT predicate on the "region" field.

func RegionGTE

func RegionGTE(v string) predicate.FileSource

RegionGTE applies the GTE predicate on the "region" field.

func RegionHasPrefix

func RegionHasPrefix(v string) predicate.FileSource

RegionHasPrefix applies the HasPrefix predicate on the "region" field.

func RegionHasSuffix

func RegionHasSuffix(v string) predicate.FileSource

RegionHasSuffix applies the HasSuffix predicate on the "region" field.

func RegionIn

func RegionIn(vs ...string) predicate.FileSource

RegionIn applies the In predicate on the "region" field.

func RegionIsNil

func RegionIsNil() predicate.FileSource

RegionIsNil applies the IsNil predicate on the "region" field.

func RegionLT

func RegionLT(v string) predicate.FileSource

RegionLT applies the LT predicate on the "region" field.

func RegionLTE

func RegionLTE(v string) predicate.FileSource

RegionLTE applies the LTE predicate on the "region" field.

func RegionNEQ

func RegionNEQ(v string) predicate.FileSource

RegionNEQ applies the NEQ predicate on the "region" field.

func RegionNotIn

func RegionNotIn(vs ...string) predicate.FileSource

RegionNotIn applies the NotIn predicate on the "region" field.

func RegionNotNil

func RegionNotNil() predicate.FileSource

RegionNotNil applies the NotNil predicate on the "region" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FileSource

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FileSource

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FileSource

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FileSource

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.FileSource

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FileSource

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FileSource

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FileSource

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.FileSource

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.FileSource

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.FileSource

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.FileSource

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.FileSource

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.FileSource

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.FileSource

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.FileSource

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.FileSource

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.FileSource

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.FileSource

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.FileSource

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindLocal  Kind = "local"
	KindAlioss Kind = "alioss"
)

Kind values.

func (Kind) MarshalGQL

func (e Kind) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Kind) String

func (k Kind) String() string

func (*Kind) UnmarshalGQL

func (e *Kind) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the FileSource queries.

func ByBucket

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

ByBucket orders the results by the bucket field.

func ByComments

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

ByComments orders the results by the comments field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByEndpoint

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

ByEndpoint orders the results by the endpoint 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 ByKind

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

ByKind orders the results by the kind field.

func ByRegion

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

ByRegion orders the results by the region field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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