media

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the media type in the database.
	Label = "media"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldOriginalFilename holds the string denoting the original_filename field in the database.
	FieldOriginalFilename = "original_filename"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"

	// EdgeMediaFiles holds the string denoting the media_files edge name in mutations.
	EdgeMediaFiles = "media_files"

	// Table holds the table name of the media in the database.
	Table = "media"
	// MediaFilesTable is the table the holds the media_files relation/edge.
	MediaFilesTable = "media_file"
	// MediaFilesInverseTable is the table name for the MediaFile entity.
	// It exists in this package in order to avoid circular dependency with the "mediafile" package.
	MediaFilesInverseTable = "media_file"
	// MediaFilesColumn is the table column denoting the media_files relation/edge.
	MediaFilesColumn = "media"
)

Variables

View Source
var (
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultOriginalFilename holds the default value on creation for the original_filename field.
	DefaultOriginalFilename string
	// OriginalFilenameValidator is a validator for the "original_filename" field. It is called by the builders before save.
	OriginalFilenameValidator func(string) error
	// 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
	// DefaultID holds the default value on creation for the id field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for media fields.

Functions

func And

func And(predicates ...predicate.Media) predicate.Media

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Media

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Media

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Media

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Media

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Media

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Media

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Media

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

func CreatedAtNotIn

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

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

func HasMediaFiles

func HasMediaFiles() predicate.Media

HasMediaFiles applies the HasEdge predicate on the "media_files" edge.

func HasMediaFilesWith

func HasMediaFilesWith(preds ...predicate.MediaFile) predicate.Media

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

func ID

func ID(id uuid.UUID) predicate.Media

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Media

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Media

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Media

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Media

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Media

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Media

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Media) predicate.Media

Or groups list of predicates with the OR operator between them.

func OriginalFilename

func OriginalFilename(v string) predicate.Media

OriginalFilename applies equality check predicate on the "original_filename" field. It's identical to OriginalFilenameEQ.

func OriginalFilenameContains

func OriginalFilenameContains(v string) predicate.Media

OriginalFilenameContains applies the Contains predicate on the "original_filename" field.

func OriginalFilenameContainsFold

func OriginalFilenameContainsFold(v string) predicate.Media

OriginalFilenameContainsFold applies the ContainsFold predicate on the "original_filename" field.

func OriginalFilenameEQ

func OriginalFilenameEQ(v string) predicate.Media

OriginalFilenameEQ applies the EQ predicate on the "original_filename" field.

func OriginalFilenameEqualFold

func OriginalFilenameEqualFold(v string) predicate.Media

OriginalFilenameEqualFold applies the EqualFold predicate on the "original_filename" field.

func OriginalFilenameGT

func OriginalFilenameGT(v string) predicate.Media

OriginalFilenameGT applies the GT predicate on the "original_filename" field.

func OriginalFilenameGTE

func OriginalFilenameGTE(v string) predicate.Media

OriginalFilenameGTE applies the GTE predicate on the "original_filename" field.

func OriginalFilenameHasPrefix

func OriginalFilenameHasPrefix(v string) predicate.Media

OriginalFilenameHasPrefix applies the HasPrefix predicate on the "original_filename" field.

func OriginalFilenameHasSuffix

func OriginalFilenameHasSuffix(v string) predicate.Media

OriginalFilenameHasSuffix applies the HasSuffix predicate on the "original_filename" field.

func OriginalFilenameIn

func OriginalFilenameIn(vs ...string) predicate.Media

OriginalFilenameIn applies the In predicate on the "original_filename" field.

func OriginalFilenameIsNil

func OriginalFilenameIsNil() predicate.Media

OriginalFilenameIsNil applies the IsNil predicate on the "original_filename" field.

func OriginalFilenameLT

func OriginalFilenameLT(v string) predicate.Media

OriginalFilenameLT applies the LT predicate on the "original_filename" field.

func OriginalFilenameLTE

func OriginalFilenameLTE(v string) predicate.Media

OriginalFilenameLTE applies the LTE predicate on the "original_filename" field.

func OriginalFilenameNEQ

func OriginalFilenameNEQ(v string) predicate.Media

OriginalFilenameNEQ applies the NEQ predicate on the "original_filename" field.

func OriginalFilenameNotIn

func OriginalFilenameNotIn(vs ...string) predicate.Media

OriginalFilenameNotIn applies the NotIn predicate on the "original_filename" field.

func OriginalFilenameNotNil

func OriginalFilenameNotNil() predicate.Media

OriginalFilenameNotNil applies the NotNil predicate on the "original_filename" field.

func StatusEQ

func StatusEQ(v Status) predicate.Media

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Media

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Media

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Media

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func Title

func Title(v string) predicate.Media

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Media

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Media

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Media

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Media

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Media

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Media

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Media

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Media

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Media

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Media

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Media

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Media

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Media

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Media

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Media

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Media

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Media

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Media

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Media

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Media

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

func UpdatedAtNotIn

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

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 Status

type Status string

Status defines the type for the status enum field.

const (
	StatusAwaitingUpload Status = "AwaitingUpload"
	StatusProcessing     Status = "Processing"
	StatusReady          Status = "Ready"
	StatusErrored        Status = "Errored"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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