devicerequest

package
v0.0.0-...-08e2f75 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the devicerequest type in the database.
	Label = "device_request"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserCode holds the string denoting the user_code field in the database.
	FieldUserCode = "user_code"
	// FieldDeviceCode holds the string denoting the device_code field in the database.
	FieldDeviceCode = "device_code"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldClientSecret holds the string denoting the client_secret field in the database.
	FieldClientSecret = "client_secret"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// Table holds the table name of the devicerequest in the database.
	Table = "device_requests"
)

Variables

View Source
var (
	// UserCodeValidator is a validator for the "user_code" field. It is called by the builders before save.
	UserCodeValidator func(string) error
	// DeviceCodeValidator is a validator for the "device_code" field. It is called by the builders before save.
	DeviceCodeValidator func(string) error
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// ClientSecretValidator is a validator for the "client_secret" field. It is called by the builders before save.
	ClientSecretValidator func(string) error
)

Columns holds all SQL columns for devicerequest fields.

Functions

func And

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.DeviceRequest

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDContains

func ClientIDContains(v string) predicate.DeviceRequest

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.DeviceRequest

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

func ClientIDEQ(v string) predicate.DeviceRequest

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.DeviceRequest

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.DeviceRequest

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.DeviceRequest

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.DeviceRequest

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.DeviceRequest

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.DeviceRequest

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDLT

func ClientIDLT(v string) predicate.DeviceRequest

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.DeviceRequest

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.DeviceRequest

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...string) predicate.DeviceRequest

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func ClientSecret

func ClientSecret(v string) predicate.DeviceRequest

ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ.

func ClientSecretContains

func ClientSecretContains(v string) predicate.DeviceRequest

ClientSecretContains applies the Contains predicate on the "client_secret" field.

func ClientSecretContainsFold

func ClientSecretContainsFold(v string) predicate.DeviceRequest

ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field.

func ClientSecretEQ

func ClientSecretEQ(v string) predicate.DeviceRequest

ClientSecretEQ applies the EQ predicate on the "client_secret" field.

func ClientSecretEqualFold

func ClientSecretEqualFold(v string) predicate.DeviceRequest

ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field.

func ClientSecretGT

func ClientSecretGT(v string) predicate.DeviceRequest

ClientSecretGT applies the GT predicate on the "client_secret" field.

func ClientSecretGTE

func ClientSecretGTE(v string) predicate.DeviceRequest

ClientSecretGTE applies the GTE predicate on the "client_secret" field.

func ClientSecretHasPrefix

func ClientSecretHasPrefix(v string) predicate.DeviceRequest

ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field.

func ClientSecretHasSuffix

func ClientSecretHasSuffix(v string) predicate.DeviceRequest

ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field.

func ClientSecretIn

func ClientSecretIn(vs ...string) predicate.DeviceRequest

ClientSecretIn applies the In predicate on the "client_secret" field.

func ClientSecretLT

func ClientSecretLT(v string) predicate.DeviceRequest

ClientSecretLT applies the LT predicate on the "client_secret" field.

func ClientSecretLTE

func ClientSecretLTE(v string) predicate.DeviceRequest

ClientSecretLTE applies the LTE predicate on the "client_secret" field.

func ClientSecretNEQ

func ClientSecretNEQ(v string) predicate.DeviceRequest

ClientSecretNEQ applies the NEQ predicate on the "client_secret" field.

func ClientSecretNotIn

func ClientSecretNotIn(vs ...string) predicate.DeviceRequest

ClientSecretNotIn applies the NotIn predicate on the "client_secret" field.

func DeviceCode

func DeviceCode(v string) predicate.DeviceRequest

DeviceCode applies equality check predicate on the "device_code" field. It's identical to DeviceCodeEQ.

func DeviceCodeContains

func DeviceCodeContains(v string) predicate.DeviceRequest

DeviceCodeContains applies the Contains predicate on the "device_code" field.

func DeviceCodeContainsFold

func DeviceCodeContainsFold(v string) predicate.DeviceRequest

DeviceCodeContainsFold applies the ContainsFold predicate on the "device_code" field.

func DeviceCodeEQ

func DeviceCodeEQ(v string) predicate.DeviceRequest

DeviceCodeEQ applies the EQ predicate on the "device_code" field.

func DeviceCodeEqualFold

func DeviceCodeEqualFold(v string) predicate.DeviceRequest

DeviceCodeEqualFold applies the EqualFold predicate on the "device_code" field.

func DeviceCodeGT

func DeviceCodeGT(v string) predicate.DeviceRequest

DeviceCodeGT applies the GT predicate on the "device_code" field.

func DeviceCodeGTE

func DeviceCodeGTE(v string) predicate.DeviceRequest

DeviceCodeGTE applies the GTE predicate on the "device_code" field.

func DeviceCodeHasPrefix

func DeviceCodeHasPrefix(v string) predicate.DeviceRequest

DeviceCodeHasPrefix applies the HasPrefix predicate on the "device_code" field.

func DeviceCodeHasSuffix

func DeviceCodeHasSuffix(v string) predicate.DeviceRequest

DeviceCodeHasSuffix applies the HasSuffix predicate on the "device_code" field.

func DeviceCodeIn

func DeviceCodeIn(vs ...string) predicate.DeviceRequest

DeviceCodeIn applies the In predicate on the "device_code" field.

func DeviceCodeLT

func DeviceCodeLT(v string) predicate.DeviceRequest

DeviceCodeLT applies the LT predicate on the "device_code" field.

func DeviceCodeLTE

func DeviceCodeLTE(v string) predicate.DeviceRequest

DeviceCodeLTE applies the LTE predicate on the "device_code" field.

func DeviceCodeNEQ

func DeviceCodeNEQ(v string) predicate.DeviceRequest

DeviceCodeNEQ applies the NEQ predicate on the "device_code" field.

func DeviceCodeNotIn

func DeviceCodeNotIn(vs ...string) predicate.DeviceRequest

DeviceCodeNotIn applies the NotIn predicate on the "device_code" field.

func Expiry

func Expiry(v time.Time) predicate.DeviceRequest

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.DeviceRequest

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.DeviceRequest

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.DeviceRequest

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.DeviceRequest

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.DeviceRequest

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.DeviceRequest

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.DeviceRequest

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.DeviceRequest

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DeviceRequest

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DeviceRequest

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DeviceRequest

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DeviceRequest

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DeviceRequest

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DeviceRequest

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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 ScopesIsNil

func ScopesIsNil() predicate.DeviceRequest

ScopesIsNil applies the IsNil predicate on the "scopes" field.

func ScopesNotNil

func ScopesNotNil() predicate.DeviceRequest

ScopesNotNil applies the NotNil predicate on the "scopes" field.

func UserCode

func UserCode(v string) predicate.DeviceRequest

UserCode applies equality check predicate on the "user_code" field. It's identical to UserCodeEQ.

func UserCodeContains

func UserCodeContains(v string) predicate.DeviceRequest

UserCodeContains applies the Contains predicate on the "user_code" field.

func UserCodeContainsFold

func UserCodeContainsFold(v string) predicate.DeviceRequest

UserCodeContainsFold applies the ContainsFold predicate on the "user_code" field.

func UserCodeEQ

func UserCodeEQ(v string) predicate.DeviceRequest

UserCodeEQ applies the EQ predicate on the "user_code" field.

func UserCodeEqualFold

func UserCodeEqualFold(v string) predicate.DeviceRequest

UserCodeEqualFold applies the EqualFold predicate on the "user_code" field.

func UserCodeGT

func UserCodeGT(v string) predicate.DeviceRequest

UserCodeGT applies the GT predicate on the "user_code" field.

func UserCodeGTE

func UserCodeGTE(v string) predicate.DeviceRequest

UserCodeGTE applies the GTE predicate on the "user_code" field.

func UserCodeHasPrefix

func UserCodeHasPrefix(v string) predicate.DeviceRequest

UserCodeHasPrefix applies the HasPrefix predicate on the "user_code" field.

func UserCodeHasSuffix

func UserCodeHasSuffix(v string) predicate.DeviceRequest

UserCodeHasSuffix applies the HasSuffix predicate on the "user_code" field.

func UserCodeIn

func UserCodeIn(vs ...string) predicate.DeviceRequest

UserCodeIn applies the In predicate on the "user_code" field.

func UserCodeLT

func UserCodeLT(v string) predicate.DeviceRequest

UserCodeLT applies the LT predicate on the "user_code" field.

func UserCodeLTE

func UserCodeLTE(v string) predicate.DeviceRequest

UserCodeLTE applies the LTE predicate on the "user_code" field.

func UserCodeNEQ

func UserCodeNEQ(v string) predicate.DeviceRequest

UserCodeNEQ applies the NEQ predicate on the "user_code" field.

func UserCodeNotIn

func UserCodeNotIn(vs ...string) predicate.DeviceRequest

UserCodeNotIn applies the NotIn predicate on the "user_code" 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