apikey

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the apikey type in the database.
	Label = "api_key"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPrefix holds the string denoting the prefix field in the database.
	FieldPrefix = "prefix"
	// FieldKeyHash holds the string denoting the key_hash field in the database.
	FieldKeyHash = "key_hash"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// FieldLastUsedIP holds the string denoting the last_used_ip field in the database.
	FieldLastUsedIP = "last_used_ip"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldRevokedReason holds the string denoting the revoked_reason field in the database.
	FieldRevokedReason = "revoked_reason"
	// FieldEnvironment holds the string denoting the environment field in the database.
	FieldEnvironment = "environment"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// Table holds the table name of the apikey in the database.
	Table = "cf_api_keys"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "cf_api_keys"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "cf_users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_api_keys"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cf_api_keys"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "cf_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_api_keys"
)
View Source
const DefaultEnvironment = EnvironmentLive

EnvironmentLive is the default value of the Environment enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// PrefixValidator is a validator for the "prefix" field. It is called by the builders before save.
	PrefixValidator func(string) error
	// KeyHashValidator is a validator for the "key_hash" field. It is called by the builders before save.
	KeyHashValidator func(string) error
	// DefaultRevoked holds the default value on creation for the "revoked" field.
	DefaultRevoked bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for apikey fields.

View Source
var ForeignKeys = []string{
	"organization_api_keys",
	"user_api_keys",
}

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

Functions

func And

func And(predicates ...predicate.APIKey) predicate.APIKey

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.APIKey

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.APIKey

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.APIKey

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.APIKey

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.APIKey

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.APIKey

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.APIKey

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.APIKey

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.APIKey

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.APIKey

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.APIKey

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.APIKey

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.APIKey

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.APIKey

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.APIKey

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.APIKey

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.APIKey

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.APIKey

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.APIKey

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.APIKey

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.APIKey

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.APIKey

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.APIKey

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EnvironmentEQ

func EnvironmentEQ(v Environment) predicate.APIKey

EnvironmentEQ applies the EQ predicate on the "environment" field.

func EnvironmentIn

func EnvironmentIn(vs ...Environment) predicate.APIKey

EnvironmentIn applies the In predicate on the "environment" field.

func EnvironmentNEQ

func EnvironmentNEQ(v Environment) predicate.APIKey

EnvironmentNEQ applies the NEQ predicate on the "environment" field.

func EnvironmentNotIn

func EnvironmentNotIn(vs ...Environment) predicate.APIKey

EnvironmentNotIn applies the NotIn predicate on the "environment" field.

func EnvironmentValidator

func EnvironmentValidator(e Environment) error

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.APIKey

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.APIKey

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.APIKey

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.APIKey

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

func ExpiresAtIn

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

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.APIKey

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.APIKey

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.APIKey

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.APIKey

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

func ExpiresAtNotIn

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

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.APIKey

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

func HasOrganization

func HasOrganization() predicate.APIKey

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.APIKey

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

func HasOwner

func HasOwner() predicate.APIKey

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.APIKey

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

func ID

func ID(id uuid.UUID) predicate.APIKey

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.APIKey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.APIKey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.APIKey

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.APIKey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.APIKey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.APIKey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KeyHash

func KeyHash(v string) predicate.APIKey

KeyHash applies equality check predicate on the "key_hash" field. It's identical to KeyHashEQ.

func KeyHashContains

func KeyHashContains(v string) predicate.APIKey

KeyHashContains applies the Contains predicate on the "key_hash" field.

func KeyHashContainsFold

func KeyHashContainsFold(v string) predicate.APIKey

KeyHashContainsFold applies the ContainsFold predicate on the "key_hash" field.

func KeyHashEQ

func KeyHashEQ(v string) predicate.APIKey

KeyHashEQ applies the EQ predicate on the "key_hash" field.

func KeyHashEqualFold

func KeyHashEqualFold(v string) predicate.APIKey

KeyHashEqualFold applies the EqualFold predicate on the "key_hash" field.

func KeyHashGT

func KeyHashGT(v string) predicate.APIKey

KeyHashGT applies the GT predicate on the "key_hash" field.

func KeyHashGTE

func KeyHashGTE(v string) predicate.APIKey

KeyHashGTE applies the GTE predicate on the "key_hash" field.

func KeyHashHasPrefix

func KeyHashHasPrefix(v string) predicate.APIKey

KeyHashHasPrefix applies the HasPrefix predicate on the "key_hash" field.

func KeyHashHasSuffix

func KeyHashHasSuffix(v string) predicate.APIKey

KeyHashHasSuffix applies the HasSuffix predicate on the "key_hash" field.

func KeyHashIn

func KeyHashIn(vs ...string) predicate.APIKey

KeyHashIn applies the In predicate on the "key_hash" field.

func KeyHashLT

func KeyHashLT(v string) predicate.APIKey

KeyHashLT applies the LT predicate on the "key_hash" field.

func KeyHashLTE

func KeyHashLTE(v string) predicate.APIKey

KeyHashLTE applies the LTE predicate on the "key_hash" field.

func KeyHashNEQ

func KeyHashNEQ(v string) predicate.APIKey

KeyHashNEQ applies the NEQ predicate on the "key_hash" field.

func KeyHashNotIn

func KeyHashNotIn(vs ...string) predicate.APIKey

KeyHashNotIn applies the NotIn predicate on the "key_hash" field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.APIKey

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.APIKey

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.APIKey

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.APIKey

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.APIKey

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.APIKey

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.APIKey

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.APIKey

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.APIKey

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.APIKey

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.APIKey

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func LastUsedIP

func LastUsedIP(v string) predicate.APIKey

LastUsedIP applies equality check predicate on the "last_used_ip" field. It's identical to LastUsedIPEQ.

func LastUsedIPContains

func LastUsedIPContains(v string) predicate.APIKey

LastUsedIPContains applies the Contains predicate on the "last_used_ip" field.

func LastUsedIPContainsFold

func LastUsedIPContainsFold(v string) predicate.APIKey

LastUsedIPContainsFold applies the ContainsFold predicate on the "last_used_ip" field.

func LastUsedIPEQ

func LastUsedIPEQ(v string) predicate.APIKey

LastUsedIPEQ applies the EQ predicate on the "last_used_ip" field.

func LastUsedIPEqualFold

func LastUsedIPEqualFold(v string) predicate.APIKey

LastUsedIPEqualFold applies the EqualFold predicate on the "last_used_ip" field.

func LastUsedIPGT

func LastUsedIPGT(v string) predicate.APIKey

LastUsedIPGT applies the GT predicate on the "last_used_ip" field.

func LastUsedIPGTE

func LastUsedIPGTE(v string) predicate.APIKey

LastUsedIPGTE applies the GTE predicate on the "last_used_ip" field.

func LastUsedIPHasPrefix

func LastUsedIPHasPrefix(v string) predicate.APIKey

LastUsedIPHasPrefix applies the HasPrefix predicate on the "last_used_ip" field.

func LastUsedIPHasSuffix

func LastUsedIPHasSuffix(v string) predicate.APIKey

LastUsedIPHasSuffix applies the HasSuffix predicate on the "last_used_ip" field.

func LastUsedIPIn

func LastUsedIPIn(vs ...string) predicate.APIKey

LastUsedIPIn applies the In predicate on the "last_used_ip" field.

func LastUsedIPIsNil

func LastUsedIPIsNil() predicate.APIKey

LastUsedIPIsNil applies the IsNil predicate on the "last_used_ip" field.

func LastUsedIPLT

func LastUsedIPLT(v string) predicate.APIKey

LastUsedIPLT applies the LT predicate on the "last_used_ip" field.

func LastUsedIPLTE

func LastUsedIPLTE(v string) predicate.APIKey

LastUsedIPLTE applies the LTE predicate on the "last_used_ip" field.

func LastUsedIPNEQ

func LastUsedIPNEQ(v string) predicate.APIKey

LastUsedIPNEQ applies the NEQ predicate on the "last_used_ip" field.

func LastUsedIPNotIn

func LastUsedIPNotIn(vs ...string) predicate.APIKey

LastUsedIPNotIn applies the NotIn predicate on the "last_used_ip" field.

func LastUsedIPNotNil

func LastUsedIPNotNil() predicate.APIKey

LastUsedIPNotNil applies the NotNil predicate on the "last_used_ip" field.

func MetadataIsNil

func MetadataIsNil() predicate.APIKey

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.APIKey

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.APIKey

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

func NameContains

func NameContains(v string) predicate.APIKey

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

func NameContainsFold

func NameContainsFold(v string) predicate.APIKey

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

func NameEQ

func NameEQ(v string) predicate.APIKey

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

func NameEqualFold

func NameEqualFold(v string) predicate.APIKey

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

func NameGT

func NameGT(v string) predicate.APIKey

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

func NameGTE

func NameGTE(v string) predicate.APIKey

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.APIKey

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.APIKey

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.APIKey

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

func NameLTE

func NameLTE(v string) predicate.APIKey

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

func NameNEQ

func NameNEQ(v string) predicate.APIKey

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Prefix

func Prefix(v string) predicate.APIKey

Prefix applies equality check predicate on the "prefix" field. It's identical to PrefixEQ.

func PrefixContains

func PrefixContains(v string) predicate.APIKey

PrefixContains applies the Contains predicate on the "prefix" field.

func PrefixContainsFold

func PrefixContainsFold(v string) predicate.APIKey

PrefixContainsFold applies the ContainsFold predicate on the "prefix" field.

func PrefixEQ

func PrefixEQ(v string) predicate.APIKey

PrefixEQ applies the EQ predicate on the "prefix" field.

func PrefixEqualFold

func PrefixEqualFold(v string) predicate.APIKey

PrefixEqualFold applies the EqualFold predicate on the "prefix" field.

func PrefixGT

func PrefixGT(v string) predicate.APIKey

PrefixGT applies the GT predicate on the "prefix" field.

func PrefixGTE

func PrefixGTE(v string) predicate.APIKey

PrefixGTE applies the GTE predicate on the "prefix" field.

func PrefixHasPrefix

func PrefixHasPrefix(v string) predicate.APIKey

PrefixHasPrefix applies the HasPrefix predicate on the "prefix" field.

func PrefixHasSuffix

func PrefixHasSuffix(v string) predicate.APIKey

PrefixHasSuffix applies the HasSuffix predicate on the "prefix" field.

func PrefixIn

func PrefixIn(vs ...string) predicate.APIKey

PrefixIn applies the In predicate on the "prefix" field.

func PrefixLT

func PrefixLT(v string) predicate.APIKey

PrefixLT applies the LT predicate on the "prefix" field.

func PrefixLTE

func PrefixLTE(v string) predicate.APIKey

PrefixLTE applies the LTE predicate on the "prefix" field.

func PrefixNEQ

func PrefixNEQ(v string) predicate.APIKey

PrefixNEQ applies the NEQ predicate on the "prefix" field.

func PrefixNotIn

func PrefixNotIn(vs ...string) predicate.APIKey

PrefixNotIn applies the NotIn predicate on the "prefix" field.

func Revoked

func Revoked(v bool) predicate.APIKey

Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.

func RevokedAt

func RevokedAt(v time.Time) predicate.APIKey

RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.APIKey

RevokedAtEQ applies the EQ predicate on the "revoked_at" field.

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.APIKey

RevokedAtGT applies the GT predicate on the "revoked_at" field.

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.APIKey

RevokedAtGTE applies the GTE predicate on the "revoked_at" field.

func RevokedAtIn

func RevokedAtIn(vs ...time.Time) predicate.APIKey

RevokedAtIn applies the In predicate on the "revoked_at" field.

func RevokedAtIsNil

func RevokedAtIsNil() predicate.APIKey

RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.APIKey

RevokedAtLT applies the LT predicate on the "revoked_at" field.

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.APIKey

RevokedAtLTE applies the LTE predicate on the "revoked_at" field.

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.APIKey

RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.

func RevokedAtNotIn

func RevokedAtNotIn(vs ...time.Time) predicate.APIKey

RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.

func RevokedAtNotNil

func RevokedAtNotNil() predicate.APIKey

RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.

func RevokedEQ

func RevokedEQ(v bool) predicate.APIKey

RevokedEQ applies the EQ predicate on the "revoked" field.

func RevokedNEQ

func RevokedNEQ(v bool) predicate.APIKey

RevokedNEQ applies the NEQ predicate on the "revoked" field.

func RevokedReason

func RevokedReason(v string) predicate.APIKey

RevokedReason applies equality check predicate on the "revoked_reason" field. It's identical to RevokedReasonEQ.

func RevokedReasonContains

func RevokedReasonContains(v string) predicate.APIKey

RevokedReasonContains applies the Contains predicate on the "revoked_reason" field.

func RevokedReasonContainsFold

func RevokedReasonContainsFold(v string) predicate.APIKey

RevokedReasonContainsFold applies the ContainsFold predicate on the "revoked_reason" field.

func RevokedReasonEQ

func RevokedReasonEQ(v string) predicate.APIKey

RevokedReasonEQ applies the EQ predicate on the "revoked_reason" field.

func RevokedReasonEqualFold

func RevokedReasonEqualFold(v string) predicate.APIKey

RevokedReasonEqualFold applies the EqualFold predicate on the "revoked_reason" field.

func RevokedReasonGT

func RevokedReasonGT(v string) predicate.APIKey

RevokedReasonGT applies the GT predicate on the "revoked_reason" field.

func RevokedReasonGTE

func RevokedReasonGTE(v string) predicate.APIKey

RevokedReasonGTE applies the GTE predicate on the "revoked_reason" field.

func RevokedReasonHasPrefix

func RevokedReasonHasPrefix(v string) predicate.APIKey

RevokedReasonHasPrefix applies the HasPrefix predicate on the "revoked_reason" field.

func RevokedReasonHasSuffix

func RevokedReasonHasSuffix(v string) predicate.APIKey

RevokedReasonHasSuffix applies the HasSuffix predicate on the "revoked_reason" field.

func RevokedReasonIn

func RevokedReasonIn(vs ...string) predicate.APIKey

RevokedReasonIn applies the In predicate on the "revoked_reason" field.

func RevokedReasonIsNil

func RevokedReasonIsNil() predicate.APIKey

RevokedReasonIsNil applies the IsNil predicate on the "revoked_reason" field.

func RevokedReasonLT

func RevokedReasonLT(v string) predicate.APIKey

RevokedReasonLT applies the LT predicate on the "revoked_reason" field.

func RevokedReasonLTE

func RevokedReasonLTE(v string) predicate.APIKey

RevokedReasonLTE applies the LTE predicate on the "revoked_reason" field.

func RevokedReasonNEQ

func RevokedReasonNEQ(v string) predicate.APIKey

RevokedReasonNEQ applies the NEQ predicate on the "revoked_reason" field.

func RevokedReasonNotIn

func RevokedReasonNotIn(vs ...string) predicate.APIKey

RevokedReasonNotIn applies the NotIn predicate on the "revoked_reason" field.

func RevokedReasonNotNil

func RevokedReasonNotNil() predicate.APIKey

RevokedReasonNotNil applies the NotNil predicate on the "revoked_reason" field.

func ScopesIsNil

func ScopesIsNil() predicate.APIKey

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

func ScopesNotNil

func ScopesNotNil() predicate.APIKey

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.APIKey

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.APIKey

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.APIKey

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.APIKey

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.APIKey

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.APIKey

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.APIKey

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.APIKey

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.APIKey

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Environment

type Environment string

Environment defines the type for the "environment" enum field.

const (
	EnvironmentLive Environment = "live"
	EnvironmentTest Environment = "test"
)

Environment values.

func (Environment) String

func (e Environment) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the APIKey queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEnvironment

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

ByEnvironment orders the results by the environment 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 ByKeyHash

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

ByKeyHash orders the results by the key_hash field.

func ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByLastUsedIP

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

ByLastUsedIP orders the results by the last_used_ip field.

func ByName

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

ByName orders the results by the name field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByPrefix

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

ByPrefix orders the results by the prefix field.

func ByRevoked

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

ByRevoked orders the results by the revoked field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func ByRevokedReason

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

ByRevokedReason orders the results by the revoked_reason field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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