Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.APIKey) predicate.APIKey
- func CreatedAt(v time.Time) predicate.APIKey
- func CreatedAtEQ(v time.Time) predicate.APIKey
- func CreatedAtGT(v time.Time) predicate.APIKey
- func CreatedAtGTE(v time.Time) predicate.APIKey
- func CreatedAtIn(vs ...time.Time) predicate.APIKey
- func CreatedAtLT(v time.Time) predicate.APIKey
- func CreatedAtLTE(v time.Time) predicate.APIKey
- func CreatedAtNEQ(v time.Time) predicate.APIKey
- func CreatedAtNotIn(vs ...time.Time) predicate.APIKey
- func Description(v string) predicate.APIKey
- func DescriptionContains(v string) predicate.APIKey
- func DescriptionContainsFold(v string) predicate.APIKey
- func DescriptionEQ(v string) predicate.APIKey
- func DescriptionEqualFold(v string) predicate.APIKey
- func DescriptionGT(v string) predicate.APIKey
- func DescriptionGTE(v string) predicate.APIKey
- func DescriptionHasPrefix(v string) predicate.APIKey
- func DescriptionHasSuffix(v string) predicate.APIKey
- func DescriptionIn(vs ...string) predicate.APIKey
- func DescriptionIsNil() predicate.APIKey
- func DescriptionLT(v string) predicate.APIKey
- func DescriptionLTE(v string) predicate.APIKey
- func DescriptionNEQ(v string) predicate.APIKey
- func DescriptionNotIn(vs ...string) predicate.APIKey
- func DescriptionNotNil() predicate.APIKey
- func EnvironmentEQ(v Environment) predicate.APIKey
- func EnvironmentIn(vs ...Environment) predicate.APIKey
- func EnvironmentNEQ(v Environment) predicate.APIKey
- func EnvironmentNotIn(vs ...Environment) predicate.APIKey
- func EnvironmentValidator(e Environment) error
- func ExpiresAt(v time.Time) predicate.APIKey
- func ExpiresAtEQ(v time.Time) predicate.APIKey
- func ExpiresAtGT(v time.Time) predicate.APIKey
- func ExpiresAtGTE(v time.Time) predicate.APIKey
- func ExpiresAtIn(vs ...time.Time) predicate.APIKey
- func ExpiresAtIsNil() predicate.APIKey
- func ExpiresAtLT(v time.Time) predicate.APIKey
- func ExpiresAtLTE(v time.Time) predicate.APIKey
- func ExpiresAtNEQ(v time.Time) predicate.APIKey
- func ExpiresAtNotIn(vs ...time.Time) predicate.APIKey
- func ExpiresAtNotNil() predicate.APIKey
- func HasOrganization() predicate.APIKey
- func HasOrganizationWith(preds ...predicate.Organization) predicate.APIKey
- func HasOwner() predicate.APIKey
- func HasOwnerWith(preds ...predicate.User) predicate.APIKey
- func ID(id uuid.UUID) predicate.APIKey
- func IDEQ(id uuid.UUID) predicate.APIKey
- func IDGT(id uuid.UUID) predicate.APIKey
- func IDGTE(id uuid.UUID) predicate.APIKey
- func IDIn(ids ...uuid.UUID) predicate.APIKey
- func IDLT(id uuid.UUID) predicate.APIKey
- func IDLTE(id uuid.UUID) predicate.APIKey
- func IDNEQ(id uuid.UUID) predicate.APIKey
- func IDNotIn(ids ...uuid.UUID) predicate.APIKey
- func KeyHash(v string) predicate.APIKey
- func KeyHashContains(v string) predicate.APIKey
- func KeyHashContainsFold(v string) predicate.APIKey
- func KeyHashEQ(v string) predicate.APIKey
- func KeyHashEqualFold(v string) predicate.APIKey
- func KeyHashGT(v string) predicate.APIKey
- func KeyHashGTE(v string) predicate.APIKey
- func KeyHashHasPrefix(v string) predicate.APIKey
- func KeyHashHasSuffix(v string) predicate.APIKey
- func KeyHashIn(vs ...string) predicate.APIKey
- func KeyHashLT(v string) predicate.APIKey
- func KeyHashLTE(v string) predicate.APIKey
- func KeyHashNEQ(v string) predicate.APIKey
- func KeyHashNotIn(vs ...string) predicate.APIKey
- func LastUsedAt(v time.Time) predicate.APIKey
- func LastUsedAtEQ(v time.Time) predicate.APIKey
- func LastUsedAtGT(v time.Time) predicate.APIKey
- func LastUsedAtGTE(v time.Time) predicate.APIKey
- func LastUsedAtIn(vs ...time.Time) predicate.APIKey
- func LastUsedAtIsNil() predicate.APIKey
- func LastUsedAtLT(v time.Time) predicate.APIKey
- func LastUsedAtLTE(v time.Time) predicate.APIKey
- func LastUsedAtNEQ(v time.Time) predicate.APIKey
- func LastUsedAtNotIn(vs ...time.Time) predicate.APIKey
- func LastUsedAtNotNil() predicate.APIKey
- func LastUsedIP(v string) predicate.APIKey
- func LastUsedIPContains(v string) predicate.APIKey
- func LastUsedIPContainsFold(v string) predicate.APIKey
- func LastUsedIPEQ(v string) predicate.APIKey
- func LastUsedIPEqualFold(v string) predicate.APIKey
- func LastUsedIPGT(v string) predicate.APIKey
- func LastUsedIPGTE(v string) predicate.APIKey
- func LastUsedIPHasPrefix(v string) predicate.APIKey
- func LastUsedIPHasSuffix(v string) predicate.APIKey
- func LastUsedIPIn(vs ...string) predicate.APIKey
- func LastUsedIPIsNil() predicate.APIKey
- func LastUsedIPLT(v string) predicate.APIKey
- func LastUsedIPLTE(v string) predicate.APIKey
- func LastUsedIPNEQ(v string) predicate.APIKey
- func LastUsedIPNotIn(vs ...string) predicate.APIKey
- func LastUsedIPNotNil() predicate.APIKey
- func MetadataIsNil() predicate.APIKey
- func MetadataNotNil() predicate.APIKey
- func Name(v string) predicate.APIKey
- func NameContains(v string) predicate.APIKey
- func NameContainsFold(v string) predicate.APIKey
- func NameEQ(v string) predicate.APIKey
- func NameEqualFold(v string) predicate.APIKey
- func NameGT(v string) predicate.APIKey
- func NameGTE(v string) predicate.APIKey
- func NameHasPrefix(v string) predicate.APIKey
- func NameHasSuffix(v string) predicate.APIKey
- func NameIn(vs ...string) predicate.APIKey
- func NameLT(v string) predicate.APIKey
- func NameLTE(v string) predicate.APIKey
- func NameNEQ(v string) predicate.APIKey
- func NameNotIn(vs ...string) predicate.APIKey
- func Not(p predicate.APIKey) predicate.APIKey
- func Or(predicates ...predicate.APIKey) predicate.APIKey
- func Prefix(v string) predicate.APIKey
- func PrefixContains(v string) predicate.APIKey
- func PrefixContainsFold(v string) predicate.APIKey
- func PrefixEQ(v string) predicate.APIKey
- func PrefixEqualFold(v string) predicate.APIKey
- func PrefixGT(v string) predicate.APIKey
- func PrefixGTE(v string) predicate.APIKey
- func PrefixHasPrefix(v string) predicate.APIKey
- func PrefixHasSuffix(v string) predicate.APIKey
- func PrefixIn(vs ...string) predicate.APIKey
- func PrefixLT(v string) predicate.APIKey
- func PrefixLTE(v string) predicate.APIKey
- func PrefixNEQ(v string) predicate.APIKey
- func PrefixNotIn(vs ...string) predicate.APIKey
- func Revoked(v bool) predicate.APIKey
- func RevokedAt(v time.Time) predicate.APIKey
- func RevokedAtEQ(v time.Time) predicate.APIKey
- func RevokedAtGT(v time.Time) predicate.APIKey
- func RevokedAtGTE(v time.Time) predicate.APIKey
- func RevokedAtIn(vs ...time.Time) predicate.APIKey
- func RevokedAtIsNil() predicate.APIKey
- func RevokedAtLT(v time.Time) predicate.APIKey
- func RevokedAtLTE(v time.Time) predicate.APIKey
- func RevokedAtNEQ(v time.Time) predicate.APIKey
- func RevokedAtNotIn(vs ...time.Time) predicate.APIKey
- func RevokedAtNotNil() predicate.APIKey
- func RevokedEQ(v bool) predicate.APIKey
- func RevokedNEQ(v bool) predicate.APIKey
- func RevokedReason(v string) predicate.APIKey
- func RevokedReasonContains(v string) predicate.APIKey
- func RevokedReasonContainsFold(v string) predicate.APIKey
- func RevokedReasonEQ(v string) predicate.APIKey
- func RevokedReasonEqualFold(v string) predicate.APIKey
- func RevokedReasonGT(v string) predicate.APIKey
- func RevokedReasonGTE(v string) predicate.APIKey
- func RevokedReasonHasPrefix(v string) predicate.APIKey
- func RevokedReasonHasSuffix(v string) predicate.APIKey
- func RevokedReasonIn(vs ...string) predicate.APIKey
- func RevokedReasonIsNil() predicate.APIKey
- func RevokedReasonLT(v string) predicate.APIKey
- func RevokedReasonLTE(v string) predicate.APIKey
- func RevokedReasonNEQ(v string) predicate.APIKey
- func RevokedReasonNotIn(vs ...string) predicate.APIKey
- func RevokedReasonNotNil() predicate.APIKey
- func ScopesIsNil() predicate.APIKey
- func ScopesNotNil() predicate.APIKey
- func UpdatedAt(v time.Time) predicate.APIKey
- func UpdatedAtEQ(v time.Time) predicate.APIKey
- func UpdatedAtGT(v time.Time) predicate.APIKey
- func UpdatedAtGTE(v time.Time) predicate.APIKey
- func UpdatedAtIn(vs ...time.Time) predicate.APIKey
- func UpdatedAtLT(v time.Time) predicate.APIKey
- func UpdatedAtLTE(v time.Time) predicate.APIKey
- func UpdatedAtNEQ(v time.Time) predicate.APIKey
- func UpdatedAtNotIn(vs ...time.Time) predicate.APIKey
- func ValidColumn(column string) bool
- type Environment
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironment(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKeyHash(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLastUsedIP(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrefix(opts ...sql.OrderTermOption) OrderOption
- func ByRevoked(opts ...sql.OrderTermOption) OrderOption
- func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
- func ByRevokedReason(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" )
const DefaultEnvironment = EnvironmentLive
EnvironmentLive is the default value of the Environment enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldPrefix, FieldKeyHash, FieldScopes, FieldDescription, FieldExpiresAt, FieldLastUsedAt, FieldLastUsedIP, FieldRevoked, FieldRevokedAt, FieldRevokedReason, FieldEnvironment, FieldMetadata, }
Columns holds all SQL columns for apikey fields.
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 CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
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 ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasOrganization ¶
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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func KeyHash ¶
KeyHash applies equality check predicate on the "key_hash" field. It's identical to KeyHashEQ.
func KeyHashContains ¶
KeyHashContains applies the Contains predicate on the "key_hash" field.
func KeyHashContainsFold ¶
KeyHashContainsFold applies the ContainsFold predicate on the "key_hash" field.
func KeyHashEqualFold ¶
KeyHashEqualFold applies the EqualFold predicate on the "key_hash" field.
func KeyHashGTE ¶
KeyHashGTE applies the GTE predicate on the "key_hash" field.
func KeyHashHasPrefix ¶
KeyHashHasPrefix applies the HasPrefix predicate on the "key_hash" field.
func KeyHashHasSuffix ¶
KeyHashHasSuffix applies the HasSuffix predicate on the "key_hash" field.
func KeyHashLTE ¶
KeyHashLTE applies the LTE predicate on the "key_hash" field.
func KeyHashNEQ ¶
KeyHashNEQ applies the NEQ predicate on the "key_hash" field.
func KeyHashNotIn ¶
KeyHashNotIn applies the NotIn predicate on the "key_hash" field.
func LastUsedAt ¶
LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.
func LastUsedAtEQ ¶
LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.
func LastUsedAtGT ¶
LastUsedAtGT applies the GT predicate on the "last_used_at" field.
func LastUsedAtGTE ¶
LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.
func LastUsedAtIn ¶
LastUsedAtIn applies the In predicate on the "last_used_at" field.
func LastUsedAtIsNil ¶
LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.
func LastUsedAtLT ¶
LastUsedAtLT applies the LT predicate on the "last_used_at" field.
func LastUsedAtLTE ¶
LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.
func LastUsedAtNEQ ¶
LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.
func LastUsedAtNotIn ¶
LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.
func LastUsedAtNotNil ¶
LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.
func LastUsedIP ¶
LastUsedIP applies equality check predicate on the "last_used_ip" field. It's identical to LastUsedIPEQ.
func LastUsedIPContains ¶
LastUsedIPContains applies the Contains predicate on the "last_used_ip" field.
func LastUsedIPContainsFold ¶
LastUsedIPContainsFold applies the ContainsFold predicate on the "last_used_ip" field.
func LastUsedIPEQ ¶
LastUsedIPEQ applies the EQ predicate on the "last_used_ip" field.
func LastUsedIPEqualFold ¶
LastUsedIPEqualFold applies the EqualFold predicate on the "last_used_ip" field.
func LastUsedIPGT ¶
LastUsedIPGT applies the GT predicate on the "last_used_ip" field.
func LastUsedIPGTE ¶
LastUsedIPGTE applies the GTE predicate on the "last_used_ip" field.
func LastUsedIPHasPrefix ¶
LastUsedIPHasPrefix applies the HasPrefix predicate on the "last_used_ip" field.
func LastUsedIPHasSuffix ¶
LastUsedIPHasSuffix applies the HasSuffix predicate on the "last_used_ip" field.
func LastUsedIPIn ¶
LastUsedIPIn applies the In predicate on the "last_used_ip" field.
func LastUsedIPIsNil ¶
LastUsedIPIsNil applies the IsNil predicate on the "last_used_ip" field.
func LastUsedIPLT ¶
LastUsedIPLT applies the LT predicate on the "last_used_ip" field.
func LastUsedIPLTE ¶
LastUsedIPLTE applies the LTE predicate on the "last_used_ip" field.
func LastUsedIPNEQ ¶
LastUsedIPNEQ applies the NEQ predicate on the "last_used_ip" field.
func LastUsedIPNotIn ¶
LastUsedIPNotIn applies the NotIn predicate on the "last_used_ip" field.
func LastUsedIPNotNil ¶
LastUsedIPNotNil applies the NotNil predicate on the "last_used_ip" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Prefix ¶
Prefix applies equality check predicate on the "prefix" field. It's identical to PrefixEQ.
func PrefixContains ¶
PrefixContains applies the Contains predicate on the "prefix" field.
func PrefixContainsFold ¶
PrefixContainsFold applies the ContainsFold predicate on the "prefix" field.
func PrefixEqualFold ¶
PrefixEqualFold applies the EqualFold predicate on the "prefix" field.
func PrefixHasPrefix ¶
PrefixHasPrefix applies the HasPrefix predicate on the "prefix" field.
func PrefixHasSuffix ¶
PrefixHasSuffix applies the HasSuffix predicate on the "prefix" field.
func PrefixNotIn ¶
PrefixNotIn applies the NotIn predicate on the "prefix" field.
func Revoked ¶
Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.
func RevokedAt ¶
RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.
func RevokedAtEQ ¶
RevokedAtEQ applies the EQ predicate on the "revoked_at" field.
func RevokedAtGT ¶
RevokedAtGT applies the GT predicate on the "revoked_at" field.
func RevokedAtGTE ¶
RevokedAtGTE applies the GTE predicate on the "revoked_at" field.
func RevokedAtIn ¶
RevokedAtIn applies the In predicate on the "revoked_at" field.
func RevokedAtIsNil ¶
RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.
func RevokedAtLT ¶
RevokedAtLT applies the LT predicate on the "revoked_at" field.
func RevokedAtLTE ¶
RevokedAtLTE applies the LTE predicate on the "revoked_at" field.
func RevokedAtNEQ ¶
RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.
func RevokedAtNotIn ¶
RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.
func RevokedAtNotNil ¶
RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.
func RevokedNEQ ¶
RevokedNEQ applies the NEQ predicate on the "revoked" field.
func RevokedReason ¶
RevokedReason applies equality check predicate on the "revoked_reason" field. It's identical to RevokedReasonEQ.
func RevokedReasonContains ¶
RevokedReasonContains applies the Contains predicate on the "revoked_reason" field.
func RevokedReasonContainsFold ¶
RevokedReasonContainsFold applies the ContainsFold predicate on the "revoked_reason" field.
func RevokedReasonEQ ¶
RevokedReasonEQ applies the EQ predicate on the "revoked_reason" field.
func RevokedReasonEqualFold ¶
RevokedReasonEqualFold applies the EqualFold predicate on the "revoked_reason" field.
func RevokedReasonGT ¶
RevokedReasonGT applies the GT predicate on the "revoked_reason" field.
func RevokedReasonGTE ¶
RevokedReasonGTE applies the GTE predicate on the "revoked_reason" field.
func RevokedReasonHasPrefix ¶
RevokedReasonHasPrefix applies the HasPrefix predicate on the "revoked_reason" field.
func RevokedReasonHasSuffix ¶
RevokedReasonHasSuffix applies the HasSuffix predicate on the "revoked_reason" field.
func RevokedReasonIn ¶
RevokedReasonIn applies the In predicate on the "revoked_reason" field.
func RevokedReasonIsNil ¶
RevokedReasonIsNil applies the IsNil predicate on the "revoked_reason" field.
func RevokedReasonLT ¶
RevokedReasonLT applies the LT predicate on the "revoked_reason" field.
func RevokedReasonLTE ¶
RevokedReasonLTE applies the LTE predicate on the "revoked_reason" field.
func RevokedReasonNEQ ¶
RevokedReasonNEQ applies the NEQ predicate on the "revoked_reason" field.
func RevokedReasonNotIn ¶
RevokedReasonNotIn applies the NotIn predicate on the "revoked_reason" field.
func RevokedReasonNotNil ¶
RevokedReasonNotNil applies the NotNil predicate on the "revoked_reason" field.
func ScopesIsNil ¶
ScopesIsNil applies the IsNil predicate on the "scopes" field.
func ScopesNotNil ¶
ScopesNotNil applies the NotNil predicate on the "scopes" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
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 ¶
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.