file

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 3 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"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// 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"
	// FieldExt holds the string denoting the ext field in the database.
	FieldExt = "ext"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldPayload holds the string denoting the payload field in the database.
	FieldPayload = "payload"
	// Table holds the table name of the file in the database.
	Table = "files"
)

Variables

Columns holds all SQL columns for file fields.

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

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

Functions

func And

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

And groups predicates with the AND operator between them.

func Ext

func Ext(v string) predicate.File

Ext applies equality check predicate on the "Ext" field. It's identical to ExtEQ.

func ExtContains

func ExtContains(v string) predicate.File

ExtContains applies the Contains predicate on the "Ext" field.

func ExtContainsFold

func ExtContainsFold(v string) predicate.File

ExtContainsFold applies the ContainsFold predicate on the "Ext" field.

func ExtEQ

func ExtEQ(v string) predicate.File

ExtEQ applies the EQ predicate on the "Ext" field.

func ExtEqualFold

func ExtEqualFold(v string) predicate.File

ExtEqualFold applies the EqualFold predicate on the "Ext" field.

func ExtGT

func ExtGT(v string) predicate.File

ExtGT applies the GT predicate on the "Ext" field.

func ExtGTE

func ExtGTE(v string) predicate.File

ExtGTE applies the GTE predicate on the "Ext" field.

func ExtHasPrefix

func ExtHasPrefix(v string) predicate.File

ExtHasPrefix applies the HasPrefix predicate on the "Ext" field.

func ExtHasSuffix

func ExtHasSuffix(v string) predicate.File

ExtHasSuffix applies the HasSuffix predicate on the "Ext" field.

func ExtIn

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

ExtIn applies the In predicate on the "Ext" field.

func ExtLT

func ExtLT(v string) predicate.File

ExtLT applies the LT predicate on the "Ext" field.

func ExtLTE

func ExtLTE(v string) predicate.File

ExtLTE applies the LTE predicate on the "Ext" field.

func ExtNEQ

func ExtNEQ(v string) predicate.File

ExtNEQ applies the NEQ predicate on the "Ext" field.

func ExtNotIn

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

ExtNotIn applies the NotIn predicate on the "Ext" field.

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 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 Payload

func Payload(v []byte) predicate.File

Payload applies equality check predicate on the "payload" field. It's identical to PayloadEQ.

func PayloadEQ

func PayloadEQ(v []byte) predicate.File

PayloadEQ applies the EQ predicate on the "payload" field.

func PayloadGT

func PayloadGT(v []byte) predicate.File

PayloadGT applies the GT predicate on the "payload" field.

func PayloadGTE

func PayloadGTE(v []byte) predicate.File

PayloadGTE applies the GTE predicate on the "payload" field.

func PayloadIn

func PayloadIn(vs ...[]byte) predicate.File

PayloadIn applies the In predicate on the "payload" field.

func PayloadLT

func PayloadLT(v []byte) predicate.File

PayloadLT applies the LT predicate on the "payload" field.

func PayloadLTE

func PayloadLTE(v []byte) predicate.File

PayloadLTE applies the LTE predicate on the "payload" field.

func PayloadNEQ

func PayloadNEQ(v []byte) predicate.File

PayloadNEQ applies the NEQ predicate on the "payload" field.

func PayloadNotIn

func PayloadNotIn(vs ...[]byte) predicate.File

PayloadNotIn applies the NotIn predicate on the "payload" field.

func Size

func Size(v int) predicate.File

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

func SizeEQ

func SizeEQ(v int) predicate.File

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

func SizeGT

func SizeGT(v int) predicate.File

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

func SizeGTE

func SizeGTE(v int) predicate.File

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

func SizeIn

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

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

func SizeLT

func SizeLT(v int) predicate.File

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

func SizeLTE

func SizeLTE(v int) predicate.File

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

func SizeNEQ

func SizeNEQ(v int) predicate.File

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

func SizeNotIn

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

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

func Type

func Type(v string) predicate.File

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

func TypeContains

func TypeContains(v string) predicate.File

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

func TypeContainsFold

func TypeContainsFold(v string) predicate.File

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

func TypeEQ

func TypeEQ(v string) predicate.File

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.File

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

func TypeGT

func TypeGT(v string) predicate.File

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

func TypeGTE

func TypeGTE(v string) predicate.File

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

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.File

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

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.File

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

func TypeIn

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

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

func TypeLT

func TypeLT(v string) predicate.File

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

func TypeLTE

func TypeLTE(v string) predicate.File

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

func TypeNEQ

func TypeNEQ(v string) predicate.File

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

func TypeNotIn

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

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

func UUID

func UUID(v uuid.UUID) predicate.File

UUID applies equality check predicate on the "UUID" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.File

UUIDEQ applies the EQ predicate on the "UUID" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.File

UUIDGT applies the GT predicate on the "UUID" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.File

UUIDGTE applies the GTE predicate on the "UUID" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.File

UUIDIn applies the In predicate on the "UUID" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.File

UUIDLT applies the LT predicate on the "UUID" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.File

UUIDLTE applies the LTE predicate on the "UUID" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.File

UUIDNEQ applies the NEQ predicate on the "UUID" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.File

UUIDNotIn applies the NotIn predicate on the "UUID" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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