credential

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the credential type in the database.
	Label = "credential"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldConnectionID holds the string denoting the connection_id field in the database.
	FieldConnectionID = "connection_id"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldCiphertext holds the string denoting the ciphertext field in the database.
	FieldCiphertext = "ciphertext"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the credential in the database.
	Table = "connectionforge_credentials"
)

Variables

View Source
var (
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// ConnectionIDValidator is a validator for the "connection_id" field. It is called by the builders before save.
	ConnectionIDValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
)

Columns holds all SQL columns for credential fields.

Functions

func And

func And(predicates ...predicate.Credential) predicate.Credential

And groups predicates with the AND operator between them.

func Ciphertext

func Ciphertext(v []byte) predicate.Credential

Ciphertext applies equality check predicate on the "ciphertext" field. It's identical to CiphertextEQ.

func CiphertextEQ

func CiphertextEQ(v []byte) predicate.Credential

CiphertextEQ applies the EQ predicate on the "ciphertext" field.

func CiphertextGT

func CiphertextGT(v []byte) predicate.Credential

CiphertextGT applies the GT predicate on the "ciphertext" field.

func CiphertextGTE

func CiphertextGTE(v []byte) predicate.Credential

CiphertextGTE applies the GTE predicate on the "ciphertext" field.

func CiphertextIn

func CiphertextIn(vs ...[]byte) predicate.Credential

CiphertextIn applies the In predicate on the "ciphertext" field.

func CiphertextLT

func CiphertextLT(v []byte) predicate.Credential

CiphertextLT applies the LT predicate on the "ciphertext" field.

func CiphertextLTE

func CiphertextLTE(v []byte) predicate.Credential

CiphertextLTE applies the LTE predicate on the "ciphertext" field.

func CiphertextNEQ

func CiphertextNEQ(v []byte) predicate.Credential

CiphertextNEQ applies the NEQ predicate on the "ciphertext" field.

func CiphertextNotIn

func CiphertextNotIn(vs ...[]byte) predicate.Credential

CiphertextNotIn applies the NotIn predicate on the "ciphertext" field.

func ConnectionID

func ConnectionID(v string) predicate.Credential

ConnectionID applies equality check predicate on the "connection_id" field. It's identical to ConnectionIDEQ.

func ConnectionIDContains

func ConnectionIDContains(v string) predicate.Credential

ConnectionIDContains applies the Contains predicate on the "connection_id" field.

func ConnectionIDContainsFold

func ConnectionIDContainsFold(v string) predicate.Credential

ConnectionIDContainsFold applies the ContainsFold predicate on the "connection_id" field.

func ConnectionIDEQ

func ConnectionIDEQ(v string) predicate.Credential

ConnectionIDEQ applies the EQ predicate on the "connection_id" field.

func ConnectionIDEqualFold

func ConnectionIDEqualFold(v string) predicate.Credential

ConnectionIDEqualFold applies the EqualFold predicate on the "connection_id" field.

func ConnectionIDGT

func ConnectionIDGT(v string) predicate.Credential

ConnectionIDGT applies the GT predicate on the "connection_id" field.

func ConnectionIDGTE

func ConnectionIDGTE(v string) predicate.Credential

ConnectionIDGTE applies the GTE predicate on the "connection_id" field.

func ConnectionIDHasPrefix

func ConnectionIDHasPrefix(v string) predicate.Credential

ConnectionIDHasPrefix applies the HasPrefix predicate on the "connection_id" field.

func ConnectionIDHasSuffix

func ConnectionIDHasSuffix(v string) predicate.Credential

ConnectionIDHasSuffix applies the HasSuffix predicate on the "connection_id" field.

func ConnectionIDIn

func ConnectionIDIn(vs ...string) predicate.Credential

ConnectionIDIn applies the In predicate on the "connection_id" field.

func ConnectionIDLT

func ConnectionIDLT(v string) predicate.Credential

ConnectionIDLT applies the LT predicate on the "connection_id" field.

func ConnectionIDLTE

func ConnectionIDLTE(v string) predicate.Credential

ConnectionIDLTE applies the LTE predicate on the "connection_id" field.

func ConnectionIDNEQ

func ConnectionIDNEQ(v string) predicate.Credential

ConnectionIDNEQ applies the NEQ predicate on the "connection_id" field.

func ConnectionIDNotIn

func ConnectionIDNotIn(vs ...string) predicate.Credential

ConnectionIDNotIn applies the NotIn predicate on the "connection_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Credential

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Credential

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Credential

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Credential

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Credential

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Credential

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Credential

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Credential

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Credential

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Credential

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Credential

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Credential

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Credential

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

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Credential

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.Credential

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Credential

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Credential

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Credential

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

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Credential

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.Credential

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func ID

func ID(id int) predicate.Credential

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Credential

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Credential

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Credential

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Credential

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Credential

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Credential

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Kind

func Kind(v string) predicate.Credential

Kind applies equality check predicate on the "kind" field. It's identical to KindEQ.

func KindContains

func KindContains(v string) predicate.Credential

KindContains applies the Contains predicate on the "kind" field.

func KindContainsFold

func KindContainsFold(v string) predicate.Credential

KindContainsFold applies the ContainsFold predicate on the "kind" field.

func KindEQ

func KindEQ(v string) predicate.Credential

KindEQ applies the EQ predicate on the "kind" field.

func KindEqualFold

func KindEqualFold(v string) predicate.Credential

KindEqualFold applies the EqualFold predicate on the "kind" field.

func KindGT

func KindGT(v string) predicate.Credential

KindGT applies the GT predicate on the "kind" field.

func KindGTE

func KindGTE(v string) predicate.Credential

KindGTE applies the GTE predicate on the "kind" field.

func KindHasPrefix

func KindHasPrefix(v string) predicate.Credential

KindHasPrefix applies the HasPrefix predicate on the "kind" field.

func KindHasSuffix

func KindHasSuffix(v string) predicate.Credential

KindHasSuffix applies the HasSuffix predicate on the "kind" field.

func KindIn

func KindIn(vs ...string) predicate.Credential

KindIn applies the In predicate on the "kind" field.

func KindLT

func KindLT(v string) predicate.Credential

KindLT applies the LT predicate on the "kind" field.

func KindLTE

func KindLTE(v string) predicate.Credential

KindLTE applies the LTE predicate on the "kind" field.

func KindNEQ

func KindNEQ(v string) predicate.Credential

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...string) predicate.Credential

KindNotIn applies the NotIn predicate on the "kind" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Credential) predicate.Credential

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Credential

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Credential

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Credential

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Credential

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Credential

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Credential

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Credential

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Credential

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Credential

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.Credential

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Credential

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Credential

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Credential

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.Credential

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v int) predicate.Credential

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Credential

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Credential

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Credential

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Credential

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Credential

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Credential

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Credential

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Credential

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Credential queries.

func ByConnectionID

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

ByConnectionID orders the results by the connection_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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