servicetoken

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the servicetoken type in the database.
	Label = "service_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldIssuedAt holds the string denoting the issued_at field in the database.
	FieldIssuedAt = "issued_at"
	// EdgeTokenToServiceAccount holds the string denoting the tokentoserviceaccount edge name in mutations.
	EdgeTokenToServiceAccount = "TokenToServiceAccount"
	// ServiceAccountFieldID holds the string denoting the ID field of the ServiceAccount.
	ServiceAccountFieldID = "oid"
	// Table holds the table name of the servicetoken in the database.
	Table = "service_tokens"
	// TokenToServiceAccountTable is the table that holds the TokenToServiceAccount relation/edge.
	TokenToServiceAccountTable = "service_tokens"
	// TokenToServiceAccountInverseTable is the table name for the ServiceAccount entity.
	// It exists in this package in order to avoid circular dependency with the "serviceaccount" package.
	TokenToServiceAccountInverseTable = "service_accounts"
	// TokenToServiceAccountColumn is the table column denoting the TokenToServiceAccount relation/edge.
	TokenToServiceAccountColumn = "service_account_service_account_to_token"
)

Variables

Columns holds all SQL columns for servicetoken fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)
View Source
var ForeignKeys = []string{
	"service_account_service_account_to_token",
}

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

Functions

func And

func And(predicates ...predicate.ServiceToken) predicate.ServiceToken

And groups predicates with the AND operator between them.

func HasTokenToServiceAccount

func HasTokenToServiceAccount() predicate.ServiceToken

HasTokenToServiceAccount applies the HasEdge predicate on the "TokenToServiceAccount" edge.

func HasTokenToServiceAccountWith

func HasTokenToServiceAccountWith(preds ...predicate.ServiceAccount) predicate.ServiceToken

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ServiceToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ServiceToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ServiceToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IssuedAt

func IssuedAt(v int64) predicate.ServiceToken

IssuedAt applies equality check predicate on the "issued_at" field. It's identical to IssuedAtEQ.

func IssuedAtEQ

func IssuedAtEQ(v int64) predicate.ServiceToken

IssuedAtEQ applies the EQ predicate on the "issued_at" field.

func IssuedAtGT

func IssuedAtGT(v int64) predicate.ServiceToken

IssuedAtGT applies the GT predicate on the "issued_at" field.

func IssuedAtGTE

func IssuedAtGTE(v int64) predicate.ServiceToken

IssuedAtGTE applies the GTE predicate on the "issued_at" field.

func IssuedAtIn

func IssuedAtIn(vs ...int64) predicate.ServiceToken

IssuedAtIn applies the In predicate on the "issued_at" field.

func IssuedAtLT

func IssuedAtLT(v int64) predicate.ServiceToken

IssuedAtLT applies the LT predicate on the "issued_at" field.

func IssuedAtLTE

func IssuedAtLTE(v int64) predicate.ServiceToken

IssuedAtLTE applies the LTE predicate on the "issued_at" field.

func IssuedAtNEQ

func IssuedAtNEQ(v int64) predicate.ServiceToken

IssuedAtNEQ applies the NEQ predicate on the "issued_at" field.

func IssuedAtNotIn

func IssuedAtNotIn(vs ...int64) predicate.ServiceToken

IssuedAtNotIn applies the NotIn predicate on the "issued_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ServiceToken) predicate.ServiceToken

Or groups predicates with the OR operator between them.

func RefreshToken

func RefreshToken(v string) predicate.ServiceToken

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenContains

func RefreshTokenContains(v string) predicate.ServiceToken

RefreshTokenContains applies the Contains predicate on the "refresh_token" field.

func RefreshTokenContainsFold

func RefreshTokenContainsFold(v string) predicate.ServiceToken

RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.

func RefreshTokenEQ

func RefreshTokenEQ(v string) predicate.ServiceToken

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenEqualFold

func RefreshTokenEqualFold(v string) predicate.ServiceToken

RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v string) predicate.ServiceToken

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v string) predicate.ServiceToken

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenHasPrefix

func RefreshTokenHasPrefix(v string) predicate.ServiceToken

RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.

func RefreshTokenHasSuffix

func RefreshTokenHasSuffix(v string) predicate.ServiceToken

RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.

func RefreshTokenIn

func RefreshTokenIn(vs ...string) predicate.ServiceToken

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v string) predicate.ServiceToken

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v string) predicate.ServiceToken

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v string) predicate.ServiceToken

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

func RefreshTokenNotIn(vs ...string) predicate.ServiceToken

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func Token

func Token(v string) predicate.ServiceToken

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.ServiceToken

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.ServiceToken

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.ServiceToken

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.ServiceToken

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.ServiceToken

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.ServiceToken

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.ServiceToken

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.ServiceToken

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.ServiceToken

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.ServiceToken

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.ServiceToken

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.ServiceToken

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.ServiceToken

TokenNotIn applies the NotIn predicate on the "token" 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