Help us shape the future of Go! Take the 2026 Go Developer Survey

servicecredential

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the servicecredential type in the database.
	Label = "service_credential"
	// 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"
	// FieldSecretHash holds the string denoting the secret_hash field in the database.
	FieldSecretHash = "secret_hash"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// Table holds the table name of the servicecredential in the database.
	Table = "service_credentials"
)

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
	// SecretHashValidator is a validator for the "secret_hash" field. It is called by the builders before save.
	SecretHashValidator func(string) error
	// DefaultScopes holds the default value on creation for the "scopes" field.
	DefaultScopes []string
)

Columns holds all SQL columns for servicecredential fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ServiceCredential

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ServiceCredential

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ServiceCredential

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ServiceCredential

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ServiceCredential

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ServiceCredential

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ServiceCredential

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.ServiceCredential

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.ServiceCredential

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.ServiceCredential

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.ServiceCredential

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

func ExpiresAtIn

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

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

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.ServiceCredential

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.ServiceCredential

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.ServiceCredential

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.ServiceCredential

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

func ExpiresAtNotIn

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

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

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.ServiceCredential

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

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

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.ServiceCredential

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.ServiceCredential

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.ServiceCredential

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

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.ServiceCredential

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

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.ServiceCredential

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

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.ServiceCredential

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

func LastUsedAtIn

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

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

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.ServiceCredential

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

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.ServiceCredential

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

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.ServiceCredential

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

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.ServiceCredential

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

func LastUsedAtNotIn

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

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

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.ServiceCredential

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

func Name

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

func NameContains

func NameContains(v string) predicate.ServiceCredential

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

func NameContainsFold

func NameContainsFold(v string) predicate.ServiceCredential

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.ServiceCredential

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

func NameGT

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

func NameGTE

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ServiceCredential

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ServiceCredential

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

func NameIn

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

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

func NameLT

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

func NameLTE

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

func NameNEQ

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

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Prefix

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

func PrefixContains

func PrefixContains(v string) predicate.ServiceCredential

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

func PrefixContainsFold

func PrefixContainsFold(v string) predicate.ServiceCredential

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

func PrefixEQ

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

func PrefixEqualFold

func PrefixEqualFold(v string) predicate.ServiceCredential

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

func PrefixGT

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

func PrefixGTE

func PrefixGTE(v string) predicate.ServiceCredential

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

func PrefixHasPrefix

func PrefixHasPrefix(v string) predicate.ServiceCredential

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

func PrefixHasSuffix

func PrefixHasSuffix(v string) predicate.ServiceCredential

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

func PrefixIn

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

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

func PrefixLT

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

func PrefixLTE

func PrefixLTE(v string) predicate.ServiceCredential

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

func PrefixNEQ

func PrefixNEQ(v string) predicate.ServiceCredential

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

func PrefixNotIn

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

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

func RevokedAt

func RevokedAt(v time.Time) predicate.ServiceCredential

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

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.ServiceCredential

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

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.ServiceCredential

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

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.ServiceCredential

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

func RevokedAtIn

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

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

func RevokedAtIsNil

func RevokedAtIsNil() predicate.ServiceCredential

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

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.ServiceCredential

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

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.ServiceCredential

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

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.ServiceCredential

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

func RevokedAtNotIn

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

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

func RevokedAtNotNil

func RevokedAtNotNil() predicate.ServiceCredential

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

func SecretHash

func SecretHash(v string) predicate.ServiceCredential

SecretHash applies equality check predicate on the "secret_hash" field. It's identical to SecretHashEQ.

func SecretHashContains

func SecretHashContains(v string) predicate.ServiceCredential

SecretHashContains applies the Contains predicate on the "secret_hash" field.

func SecretHashContainsFold

func SecretHashContainsFold(v string) predicate.ServiceCredential

SecretHashContainsFold applies the ContainsFold predicate on the "secret_hash" field.

func SecretHashEQ

func SecretHashEQ(v string) predicate.ServiceCredential

SecretHashEQ applies the EQ predicate on the "secret_hash" field.

func SecretHashEqualFold

func SecretHashEqualFold(v string) predicate.ServiceCredential

SecretHashEqualFold applies the EqualFold predicate on the "secret_hash" field.

func SecretHashGT

func SecretHashGT(v string) predicate.ServiceCredential

SecretHashGT applies the GT predicate on the "secret_hash" field.

func SecretHashGTE

func SecretHashGTE(v string) predicate.ServiceCredential

SecretHashGTE applies the GTE predicate on the "secret_hash" field.

func SecretHashHasPrefix

func SecretHashHasPrefix(v string) predicate.ServiceCredential

SecretHashHasPrefix applies the HasPrefix predicate on the "secret_hash" field.

func SecretHashHasSuffix

func SecretHashHasSuffix(v string) predicate.ServiceCredential

SecretHashHasSuffix applies the HasSuffix predicate on the "secret_hash" field.

func SecretHashIn

func SecretHashIn(vs ...string) predicate.ServiceCredential

SecretHashIn applies the In predicate on the "secret_hash" field.

func SecretHashLT

func SecretHashLT(v string) predicate.ServiceCredential

SecretHashLT applies the LT predicate on the "secret_hash" field.

func SecretHashLTE

func SecretHashLTE(v string) predicate.ServiceCredential

SecretHashLTE applies the LTE predicate on the "secret_hash" field.

func SecretHashNEQ

func SecretHashNEQ(v string) predicate.ServiceCredential

SecretHashNEQ applies the NEQ predicate on the "secret_hash" field.

func SecretHashNotIn

func SecretHashNotIn(vs ...string) predicate.ServiceCredential

SecretHashNotIn applies the NotIn predicate on the "secret_hash" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.ServiceCredential

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ServiceCredential

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ServiceCredential

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ServiceCredential

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ServiceCredential

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ServiceCredential

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ServiceCredential

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

func UpdatedAtNotIn

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

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 OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ServiceCredential queries.

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 ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByName

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

ByName orders the results by the name field.

func ByPrefix

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

ByPrefix orders the results by the prefix field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func BySecretHash

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

BySecretHash orders the results by the secret_hash 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