storagereaderlease

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the storagereaderlease type in the database.
	Label = "storage_reader_lease"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStorageLocationId holds the string denoting the storagelocationid field in the database.
	FieldStorageLocationId = "storageLocationId"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldExpiresAt holds the string denoting the expiresat field in the database.
	FieldExpiresAt = "expiresAt"
	// EdgeStorageLocation holds the string denoting the storagelocation edge name in mutations.
	EdgeStorageLocation = "storageLocation"
	// Table holds the table name of the storagereaderlease in the database.
	Table = "storage_reader_leases"
	// StorageLocationTable is the table that holds the storageLocation relation/edge.
	StorageLocationTable = "storage_reader_leases"
	// StorageLocationInverseTable is the table name for the StorageLocation entity.
	// It exists in this package in order to avoid circular dependency with the "storagelocation" package.
	StorageLocationInverseTable = "storage_locations"
	// StorageLocationColumn is the table column denoting the storageLocation relation/edge.
	StorageLocationColumn = "storageLocationId"
)

Variables

Columns holds all SQL columns for storagereaderlease fields.

Functions

func And

And groups predicates with the AND operator between them.

func ExpiresAt

func ExpiresAt(v int64) predicate.StorageReaderLease

ExpiresAt applies equality check predicate on the "expiresAt" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v int64) predicate.StorageReaderLease

ExpiresAtEQ applies the EQ predicate on the "expiresAt" field.

func ExpiresAtGT

func ExpiresAtGT(v int64) predicate.StorageReaderLease

ExpiresAtGT applies the GT predicate on the "expiresAt" field.

func ExpiresAtGTE

func ExpiresAtGTE(v int64) predicate.StorageReaderLease

ExpiresAtGTE applies the GTE predicate on the "expiresAt" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...int64) predicate.StorageReaderLease

ExpiresAtIn applies the In predicate on the "expiresAt" field.

func ExpiresAtLT

func ExpiresAtLT(v int64) predicate.StorageReaderLease

ExpiresAtLT applies the LT predicate on the "expiresAt" field.

func ExpiresAtLTE

func ExpiresAtLTE(v int64) predicate.StorageReaderLease

ExpiresAtLTE applies the LTE predicate on the "expiresAt" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v int64) predicate.StorageReaderLease

ExpiresAtNEQ applies the NEQ predicate on the "expiresAt" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...int64) predicate.StorageReaderLease

ExpiresAtNotIn applies the NotIn predicate on the "expiresAt" field.

func HasStorageLocation

func HasStorageLocation() predicate.StorageReaderLease

HasStorageLocation applies the HasEdge predicate on the "storageLocation" edge.

func HasStorageLocationWith

func HasStorageLocationWith(preds ...predicate.StorageLocation) predicate.StorageReaderLease

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.StorageReaderLease

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.StorageReaderLease

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.StorageReaderLease

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.StorageReaderLease

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ScopeEQ

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...Scope) predicate.StorageReaderLease

ScopeIn applies the In predicate on the "scope" field.

func ScopeNEQ

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...Scope) predicate.StorageReaderLease

ScopeNotIn applies the NotIn predicate on the "scope" field.

func ScopeValidator

func ScopeValidator(s Scope) error

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

func StorageLocationId

func StorageLocationId(v string) predicate.StorageReaderLease

StorageLocationId applies equality check predicate on the "storageLocationId" field. It's identical to StorageLocationIdEQ.

func StorageLocationIdContains

func StorageLocationIdContains(v string) predicate.StorageReaderLease

StorageLocationIdContains applies the Contains predicate on the "storageLocationId" field.

func StorageLocationIdContainsFold

func StorageLocationIdContainsFold(v string) predicate.StorageReaderLease

StorageLocationIdContainsFold applies the ContainsFold predicate on the "storageLocationId" field.

func StorageLocationIdEQ

func StorageLocationIdEQ(v string) predicate.StorageReaderLease

StorageLocationIdEQ applies the EQ predicate on the "storageLocationId" field.

func StorageLocationIdEqualFold

func StorageLocationIdEqualFold(v string) predicate.StorageReaderLease

StorageLocationIdEqualFold applies the EqualFold predicate on the "storageLocationId" field.

func StorageLocationIdGT

func StorageLocationIdGT(v string) predicate.StorageReaderLease

StorageLocationIdGT applies the GT predicate on the "storageLocationId" field.

func StorageLocationIdGTE

func StorageLocationIdGTE(v string) predicate.StorageReaderLease

StorageLocationIdGTE applies the GTE predicate on the "storageLocationId" field.

func StorageLocationIdHasPrefix

func StorageLocationIdHasPrefix(v string) predicate.StorageReaderLease

StorageLocationIdHasPrefix applies the HasPrefix predicate on the "storageLocationId" field.

func StorageLocationIdHasSuffix

func StorageLocationIdHasSuffix(v string) predicate.StorageReaderLease

StorageLocationIdHasSuffix applies the HasSuffix predicate on the "storageLocationId" field.

func StorageLocationIdIn

func StorageLocationIdIn(vs ...string) predicate.StorageReaderLease

StorageLocationIdIn applies the In predicate on the "storageLocationId" field.

func StorageLocationIdLT

func StorageLocationIdLT(v string) predicate.StorageReaderLease

StorageLocationIdLT applies the LT predicate on the "storageLocationId" field.

func StorageLocationIdLTE

func StorageLocationIdLTE(v string) predicate.StorageReaderLease

StorageLocationIdLTE applies the LTE predicate on the "storageLocationId" field.

func StorageLocationIdNEQ

func StorageLocationIdNEQ(v string) predicate.StorageReaderLease

StorageLocationIdNEQ applies the NEQ predicate on the "storageLocationId" field.

func StorageLocationIdNotIn

func StorageLocationIdNotIn(vs ...string) predicate.StorageReaderLease

StorageLocationIdNotIn applies the NotIn predicate on the "storageLocationId" 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 StorageReaderLease queries.

func ByExpiresAt

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

ByExpiresAt orders the results by the expiresAt field.

func ByID

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

ByID orders the results by the id field.

func ByScope

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

ByScope orders the results by the scope field.

func ByStorageLocationField

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

ByStorageLocationField orders the results by storageLocation field.

func ByStorageLocationId

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

ByStorageLocationId orders the results by the storageLocationId field.

type Scope

type Scope string

Scope defines the type for the "scope" enum field.

const (
	ScopeParts   Scope = "parts"
	ScopeStorage Scope = "storage"
)

Scope values.

func (Scope) String

func (s Scope) String() string

Jump to

Keyboard shortcuts

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