storage

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the storage type in the database.
	Label = "storage"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCid holds the string denoting the cid field in the database.
	FieldCid = "cid"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldLastModify holds the string denoting the last_modify field in the database.
	FieldLastModify = "last_modify"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// Table holds the table name of the storage in the database.
	Table = "storages"
)

Variables

View Source
var (
	// OwnerValidator is a validator for the "owner" field. It is called by the builders before save.
	OwnerValidator func(string) error
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType int32
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// CidValidator is a validator for the "cid" field. It is called by the builders before save.
	CidValidator func(string) error
	// DefaultLastModify holds the default value on creation for the "last_modify" field.
	DefaultLastModify func() time.Time
	// ParentIDValidator is a validator for the "parent_id" field. It is called by the builders before save.
	ParentIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for storage fields.

Functions

func And

func And(predicates ...predicate.Storage) predicate.Storage

And groups predicates with the AND operator between them.

func Cid

func Cid(v string) predicate.Storage

Cid applies equality check predicate on the "cid" field. It's identical to CidEQ.

func CidContains

func CidContains(v string) predicate.Storage

CidContains applies the Contains predicate on the "cid" field.

func CidContainsFold

func CidContainsFold(v string) predicate.Storage

CidContainsFold applies the ContainsFold predicate on the "cid" field.

func CidEQ

func CidEQ(v string) predicate.Storage

CidEQ applies the EQ predicate on the "cid" field.

func CidEqualFold

func CidEqualFold(v string) predicate.Storage

CidEqualFold applies the EqualFold predicate on the "cid" field.

func CidGT

func CidGT(v string) predicate.Storage

CidGT applies the GT predicate on the "cid" field.

func CidGTE

func CidGTE(v string) predicate.Storage

CidGTE applies the GTE predicate on the "cid" field.

func CidHasPrefix

func CidHasPrefix(v string) predicate.Storage

CidHasPrefix applies the HasPrefix predicate on the "cid" field.

func CidHasSuffix

func CidHasSuffix(v string) predicate.Storage

CidHasSuffix applies the HasSuffix predicate on the "cid" field.

func CidIn

func CidIn(vs ...string) predicate.Storage

CidIn applies the In predicate on the "cid" field.

func CidLT

func CidLT(v string) predicate.Storage

CidLT applies the LT predicate on the "cid" field.

func CidLTE

func CidLTE(v string) predicate.Storage

CidLTE applies the LTE predicate on the "cid" field.

func CidNEQ

func CidNEQ(v string) predicate.Storage

CidNEQ applies the NEQ predicate on the "cid" field.

func CidNotIn

func CidNotIn(vs ...string) predicate.Storage

CidNotIn applies the NotIn predicate on the "cid" field.

func ID

func ID(id uuid.UUID) predicate.Storage

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Storage

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Storage

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Storage

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Storage

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Storage

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Storage

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastModify

func LastModify(v time.Time) predicate.Storage

LastModify applies equality check predicate on the "last_modify" field. It's identical to LastModifyEQ.

func LastModifyEQ

func LastModifyEQ(v time.Time) predicate.Storage

LastModifyEQ applies the EQ predicate on the "last_modify" field.

func LastModifyGT

func LastModifyGT(v time.Time) predicate.Storage

LastModifyGT applies the GT predicate on the "last_modify" field.

func LastModifyGTE

func LastModifyGTE(v time.Time) predicate.Storage

LastModifyGTE applies the GTE predicate on the "last_modify" field.

func LastModifyIn

func LastModifyIn(vs ...time.Time) predicate.Storage

LastModifyIn applies the In predicate on the "last_modify" field.

func LastModifyLT

func LastModifyLT(v time.Time) predicate.Storage

LastModifyLT applies the LT predicate on the "last_modify" field.

func LastModifyLTE

func LastModifyLTE(v time.Time) predicate.Storage

LastModifyLTE applies the LTE predicate on the "last_modify" field.

func LastModifyNEQ

func LastModifyNEQ(v time.Time) predicate.Storage

LastModifyNEQ applies the NEQ predicate on the "last_modify" field.

func LastModifyNotIn

func LastModifyNotIn(vs ...time.Time) predicate.Storage

LastModifyNotIn applies the NotIn predicate on the "last_modify" field.

func Name

func Name(v string) predicate.Storage

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

func NameContains

func NameContains(v string) predicate.Storage

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

func NameContainsFold

func NameContainsFold(v string) predicate.Storage

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

func NameEQ

func NameEQ(v string) predicate.Storage

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

func NameEqualFold

func NameEqualFold(v string) predicate.Storage

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

func NameGT

func NameGT(v string) predicate.Storage

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

func NameGTE

func NameGTE(v string) predicate.Storage

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Storage

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Storage

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Storage

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

func NameLTE

func NameLTE(v string) predicate.Storage

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

func NameNEQ

func NameNEQ(v string) predicate.Storage

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Storage

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Storage

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Storage

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Storage

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Storage

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Storage

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Storage

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Storage

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Storage

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Storage

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Storage

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Storage

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Storage

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Storage

OwnerNotIn applies the NotIn predicate on the "owner" field.

func ParentID

func ParentID(v string) predicate.Storage

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDContains

func ParentIDContains(v string) predicate.Storage

ParentIDContains applies the Contains predicate on the "parent_id" field.

func ParentIDContainsFold

func ParentIDContainsFold(v string) predicate.Storage

ParentIDContainsFold applies the ContainsFold predicate on the "parent_id" field.

func ParentIDEQ

func ParentIDEQ(v string) predicate.Storage

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDEqualFold

func ParentIDEqualFold(v string) predicate.Storage

ParentIDEqualFold applies the EqualFold predicate on the "parent_id" field.

func ParentIDGT

func ParentIDGT(v string) predicate.Storage

ParentIDGT applies the GT predicate on the "parent_id" field.

func ParentIDGTE

func ParentIDGTE(v string) predicate.Storage

ParentIDGTE applies the GTE predicate on the "parent_id" field.

func ParentIDHasPrefix

func ParentIDHasPrefix(v string) predicate.Storage

ParentIDHasPrefix applies the HasPrefix predicate on the "parent_id" field.

func ParentIDHasSuffix

func ParentIDHasSuffix(v string) predicate.Storage

ParentIDHasSuffix applies the HasSuffix predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...string) predicate.Storage

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDLT

func ParentIDLT(v string) predicate.Storage

ParentIDLT applies the LT predicate on the "parent_id" field.

func ParentIDLTE

func ParentIDLTE(v string) predicate.Storage

ParentIDLTE applies the LTE predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v string) predicate.Storage

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...string) predicate.Storage

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func Size

func Size(v int32) predicate.Storage

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

func SizeEQ

func SizeEQ(v int32) predicate.Storage

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

func SizeGT

func SizeGT(v int32) predicate.Storage

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

func SizeGTE

func SizeGTE(v int32) predicate.Storage

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

func SizeIn

func SizeIn(vs ...int32) predicate.Storage

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

func SizeLT

func SizeLT(v int32) predicate.Storage

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

func SizeLTE

func SizeLTE(v int32) predicate.Storage

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

func SizeNEQ

func SizeNEQ(v int32) predicate.Storage

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

func SizeNotIn

func SizeNotIn(vs ...int32) predicate.Storage

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

func Type

func Type(v int32) predicate.Storage

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

func TypeEQ

func TypeEQ(v int32) predicate.Storage

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

func TypeGT

func TypeGT(v int32) predicate.Storage

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

func TypeGTE

func TypeGTE(v int32) predicate.Storage

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

func TypeIn

func TypeIn(vs ...int32) predicate.Storage

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

func TypeLT

func TypeLT(v int32) predicate.Storage

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

func TypeLTE

func TypeLTE(v int32) predicate.Storage

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

func TypeNEQ

func TypeNEQ(v int32) predicate.Storage

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

func TypeNotIn

func TypeNotIn(vs ...int32) predicate.Storage

TypeNotIn applies the NotIn predicate on the "type" 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 Storage queries.

func ByCid

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

ByCid orders the results by the cid field.

func ByID

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

ByID orders the results by the id field.

func ByLastModify

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

ByLastModify orders the results by the last_modify field.

func ByName

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

ByName orders the results by the name field.

func ByOwner

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

ByOwner orders the results by the owner field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func BySize

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

BySize orders the results by the size field.

func ByType

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

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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