secret

package
v0.0.0-...-603d17d Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the secret type in the database.
	Label = "secret"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPublicID holds the string denoting the public_id field in the database.
	FieldPublicID = "public_id"
	// FieldRetrievalToken holds the string denoting the retrieval_token field in the database.
	FieldRetrievalToken = "retrieval_token"
	// FieldDeletionToken holds the string denoting the deletion_token field in the database.
	FieldDeletionToken = "deletion_token"
	// FieldNonce holds the string denoting the nonce field in the database.
	FieldNonce = "nonce"
	// FieldEncryptedData holds the string denoting the encrypted_data field in the database.
	FieldEncryptedData = "encrypted_data"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldBurnAfterRead holds the string denoting the burn_after_read field in the database.
	FieldBurnAfterRead = "burn_after_read"
	// FieldAlreadyRead holds the string denoting the already_read field in the database.
	FieldAlreadyRead = "already_read"
	// Table holds the table name of the secret in the database.
	Table = "secrets"
)

Variables

Columns holds all SQL columns for secret fields.

Functions

func AlreadyRead

func AlreadyRead(v bool) predicate.Secret

AlreadyRead applies equality check predicate on the "already_read" field. It's identical to AlreadyReadEQ.

func AlreadyReadEQ

func AlreadyReadEQ(v bool) predicate.Secret

AlreadyReadEQ applies the EQ predicate on the "already_read" field.

func AlreadyReadNEQ

func AlreadyReadNEQ(v bool) predicate.Secret

AlreadyReadNEQ applies the NEQ predicate on the "already_read" field.

func And

func And(predicates ...predicate.Secret) predicate.Secret

And groups predicates with the AND operator between them.

func BurnAfterRead

func BurnAfterRead(v bool) predicate.Secret

BurnAfterRead applies equality check predicate on the "burn_after_read" field. It's identical to BurnAfterReadEQ.

func BurnAfterReadEQ

func BurnAfterReadEQ(v bool) predicate.Secret

BurnAfterReadEQ applies the EQ predicate on the "burn_after_read" field.

func BurnAfterReadNEQ

func BurnAfterReadNEQ(v bool) predicate.Secret

BurnAfterReadNEQ applies the NEQ predicate on the "burn_after_read" field.

func DeletionToken

func DeletionToken(v string) predicate.Secret

DeletionToken applies equality check predicate on the "deletion_token" field. It's identical to DeletionTokenEQ.

func DeletionTokenContains

func DeletionTokenContains(v string) predicate.Secret

DeletionTokenContains applies the Contains predicate on the "deletion_token" field.

func DeletionTokenContainsFold

func DeletionTokenContainsFold(v string) predicate.Secret

DeletionTokenContainsFold applies the ContainsFold predicate on the "deletion_token" field.

func DeletionTokenEQ

func DeletionTokenEQ(v string) predicate.Secret

DeletionTokenEQ applies the EQ predicate on the "deletion_token" field.

func DeletionTokenEqualFold

func DeletionTokenEqualFold(v string) predicate.Secret

DeletionTokenEqualFold applies the EqualFold predicate on the "deletion_token" field.

func DeletionTokenGT

func DeletionTokenGT(v string) predicate.Secret

DeletionTokenGT applies the GT predicate on the "deletion_token" field.

func DeletionTokenGTE

func DeletionTokenGTE(v string) predicate.Secret

DeletionTokenGTE applies the GTE predicate on the "deletion_token" field.

func DeletionTokenHasPrefix

func DeletionTokenHasPrefix(v string) predicate.Secret

DeletionTokenHasPrefix applies the HasPrefix predicate on the "deletion_token" field.

func DeletionTokenHasSuffix

func DeletionTokenHasSuffix(v string) predicate.Secret

DeletionTokenHasSuffix applies the HasSuffix predicate on the "deletion_token" field.

func DeletionTokenIn

func DeletionTokenIn(vs ...string) predicate.Secret

DeletionTokenIn applies the In predicate on the "deletion_token" field.

func DeletionTokenLT

func DeletionTokenLT(v string) predicate.Secret

DeletionTokenLT applies the LT predicate on the "deletion_token" field.

func DeletionTokenLTE

func DeletionTokenLTE(v string) predicate.Secret

DeletionTokenLTE applies the LTE predicate on the "deletion_token" field.

func DeletionTokenNEQ

func DeletionTokenNEQ(v string) predicate.Secret

DeletionTokenNEQ applies the NEQ predicate on the "deletion_token" field.

func DeletionTokenNotIn

func DeletionTokenNotIn(vs ...string) predicate.Secret

DeletionTokenNotIn applies the NotIn predicate on the "deletion_token" field.

func EncryptedData

func EncryptedData(v string) predicate.Secret

EncryptedData applies equality check predicate on the "encrypted_data" field. It's identical to EncryptedDataEQ.

func EncryptedDataContains

func EncryptedDataContains(v string) predicate.Secret

EncryptedDataContains applies the Contains predicate on the "encrypted_data" field.

func EncryptedDataContainsFold

func EncryptedDataContainsFold(v string) predicate.Secret

EncryptedDataContainsFold applies the ContainsFold predicate on the "encrypted_data" field.

func EncryptedDataEQ

func EncryptedDataEQ(v string) predicate.Secret

EncryptedDataEQ applies the EQ predicate on the "encrypted_data" field.

func EncryptedDataEqualFold

func EncryptedDataEqualFold(v string) predicate.Secret

EncryptedDataEqualFold applies the EqualFold predicate on the "encrypted_data" field.

func EncryptedDataGT

func EncryptedDataGT(v string) predicate.Secret

EncryptedDataGT applies the GT predicate on the "encrypted_data" field.

func EncryptedDataGTE

func EncryptedDataGTE(v string) predicate.Secret

EncryptedDataGTE applies the GTE predicate on the "encrypted_data" field.

func EncryptedDataHasPrefix

func EncryptedDataHasPrefix(v string) predicate.Secret

EncryptedDataHasPrefix applies the HasPrefix predicate on the "encrypted_data" field.

func EncryptedDataHasSuffix

func EncryptedDataHasSuffix(v string) predicate.Secret

EncryptedDataHasSuffix applies the HasSuffix predicate on the "encrypted_data" field.

func EncryptedDataIn

func EncryptedDataIn(vs ...string) predicate.Secret

EncryptedDataIn applies the In predicate on the "encrypted_data" field.

func EncryptedDataLT

func EncryptedDataLT(v string) predicate.Secret

EncryptedDataLT applies the LT predicate on the "encrypted_data" field.

func EncryptedDataLTE

func EncryptedDataLTE(v string) predicate.Secret

EncryptedDataLTE applies the LTE predicate on the "encrypted_data" field.

func EncryptedDataNEQ

func EncryptedDataNEQ(v string) predicate.Secret

EncryptedDataNEQ applies the NEQ predicate on the "encrypted_data" field.

func EncryptedDataNotIn

func EncryptedDataNotIn(vs ...string) predicate.Secret

EncryptedDataNotIn applies the NotIn predicate on the "encrypted_data" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Secret

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Secret

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Secret

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Secret

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

func ExpiresAtIn

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

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Secret

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Secret

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Secret

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

func ExpiresAtNotIn

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

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

func ID

func ID(id int) predicate.Secret

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Secret

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Secret

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Secret

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Secret

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Secret

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Secret

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Nonce

func Nonce(v string) predicate.Secret

Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.

func NonceContains

func NonceContains(v string) predicate.Secret

NonceContains applies the Contains predicate on the "nonce" field.

func NonceContainsFold

func NonceContainsFold(v string) predicate.Secret

NonceContainsFold applies the ContainsFold predicate on the "nonce" field.

func NonceEQ

func NonceEQ(v string) predicate.Secret

NonceEQ applies the EQ predicate on the "nonce" field.

func NonceEqualFold

func NonceEqualFold(v string) predicate.Secret

NonceEqualFold applies the EqualFold predicate on the "nonce" field.

func NonceGT

func NonceGT(v string) predicate.Secret

NonceGT applies the GT predicate on the "nonce" field.

func NonceGTE

func NonceGTE(v string) predicate.Secret

NonceGTE applies the GTE predicate on the "nonce" field.

func NonceHasPrefix

func NonceHasPrefix(v string) predicate.Secret

NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.

func NonceHasSuffix

func NonceHasSuffix(v string) predicate.Secret

NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.

func NonceIn

func NonceIn(vs ...string) predicate.Secret

NonceIn applies the In predicate on the "nonce" field.

func NonceLT

func NonceLT(v string) predicate.Secret

NonceLT applies the LT predicate on the "nonce" field.

func NonceLTE

func NonceLTE(v string) predicate.Secret

NonceLTE applies the LTE predicate on the "nonce" field.

func NonceNEQ

func NonceNEQ(v string) predicate.Secret

NonceNEQ applies the NEQ predicate on the "nonce" field.

func NonceNotIn

func NonceNotIn(vs ...string) predicate.Secret

NonceNotIn applies the NotIn predicate on the "nonce" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Secret) predicate.Secret

Or groups predicates with the OR operator between them.

func PublicID

func PublicID(v string) predicate.Secret

PublicID applies equality check predicate on the "public_id" field. It's identical to PublicIDEQ.

func PublicIDContains

func PublicIDContains(v string) predicate.Secret

PublicIDContains applies the Contains predicate on the "public_id" field.

func PublicIDContainsFold

func PublicIDContainsFold(v string) predicate.Secret

PublicIDContainsFold applies the ContainsFold predicate on the "public_id" field.

func PublicIDEQ

func PublicIDEQ(v string) predicate.Secret

PublicIDEQ applies the EQ predicate on the "public_id" field.

func PublicIDEqualFold

func PublicIDEqualFold(v string) predicate.Secret

PublicIDEqualFold applies the EqualFold predicate on the "public_id" field.

func PublicIDGT

func PublicIDGT(v string) predicate.Secret

PublicIDGT applies the GT predicate on the "public_id" field.

func PublicIDGTE

func PublicIDGTE(v string) predicate.Secret

PublicIDGTE applies the GTE predicate on the "public_id" field.

func PublicIDHasPrefix

func PublicIDHasPrefix(v string) predicate.Secret

PublicIDHasPrefix applies the HasPrefix predicate on the "public_id" field.

func PublicIDHasSuffix

func PublicIDHasSuffix(v string) predicate.Secret

PublicIDHasSuffix applies the HasSuffix predicate on the "public_id" field.

func PublicIDIn

func PublicIDIn(vs ...string) predicate.Secret

PublicIDIn applies the In predicate on the "public_id" field.

func PublicIDLT

func PublicIDLT(v string) predicate.Secret

PublicIDLT applies the LT predicate on the "public_id" field.

func PublicIDLTE

func PublicIDLTE(v string) predicate.Secret

PublicIDLTE applies the LTE predicate on the "public_id" field.

func PublicIDNEQ

func PublicIDNEQ(v string) predicate.Secret

PublicIDNEQ applies the NEQ predicate on the "public_id" field.

func PublicIDNotIn

func PublicIDNotIn(vs ...string) predicate.Secret

PublicIDNotIn applies the NotIn predicate on the "public_id" field.

func RetrievalToken

func RetrievalToken(v string) predicate.Secret

RetrievalToken applies equality check predicate on the "retrieval_token" field. It's identical to RetrievalTokenEQ.

func RetrievalTokenContains

func RetrievalTokenContains(v string) predicate.Secret

RetrievalTokenContains applies the Contains predicate on the "retrieval_token" field.

func RetrievalTokenContainsFold

func RetrievalTokenContainsFold(v string) predicate.Secret

RetrievalTokenContainsFold applies the ContainsFold predicate on the "retrieval_token" field.

func RetrievalTokenEQ

func RetrievalTokenEQ(v string) predicate.Secret

RetrievalTokenEQ applies the EQ predicate on the "retrieval_token" field.

func RetrievalTokenEqualFold

func RetrievalTokenEqualFold(v string) predicate.Secret

RetrievalTokenEqualFold applies the EqualFold predicate on the "retrieval_token" field.

func RetrievalTokenGT

func RetrievalTokenGT(v string) predicate.Secret

RetrievalTokenGT applies the GT predicate on the "retrieval_token" field.

func RetrievalTokenGTE

func RetrievalTokenGTE(v string) predicate.Secret

RetrievalTokenGTE applies the GTE predicate on the "retrieval_token" field.

func RetrievalTokenHasPrefix

func RetrievalTokenHasPrefix(v string) predicate.Secret

RetrievalTokenHasPrefix applies the HasPrefix predicate on the "retrieval_token" field.

func RetrievalTokenHasSuffix

func RetrievalTokenHasSuffix(v string) predicate.Secret

RetrievalTokenHasSuffix applies the HasSuffix predicate on the "retrieval_token" field.

func RetrievalTokenIn

func RetrievalTokenIn(vs ...string) predicate.Secret

RetrievalTokenIn applies the In predicate on the "retrieval_token" field.

func RetrievalTokenLT

func RetrievalTokenLT(v string) predicate.Secret

RetrievalTokenLT applies the LT predicate on the "retrieval_token" field.

func RetrievalTokenLTE

func RetrievalTokenLTE(v string) predicate.Secret

RetrievalTokenLTE applies the LTE predicate on the "retrieval_token" field.

func RetrievalTokenNEQ

func RetrievalTokenNEQ(v string) predicate.Secret

RetrievalTokenNEQ applies the NEQ predicate on the "retrieval_token" field.

func RetrievalTokenNotIn

func RetrievalTokenNotIn(vs ...string) predicate.Secret

RetrievalTokenNotIn applies the NotIn predicate on the "retrieval_token" 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 Secret queries.

func ByAlreadyRead

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

ByAlreadyRead orders the results by the already_read field.

func ByBurnAfterRead

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

ByBurnAfterRead orders the results by the burn_after_read field.

func ByDeletionToken

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

ByDeletionToken orders the results by the deletion_token field.

func ByEncryptedData

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

ByEncryptedData orders the results by the encrypted_data 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 ByNonce

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

ByNonce orders the results by the nonce field.

func ByPublicID

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

ByPublicID orders the results by the public_id field.

func ByRetrievalToken

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

ByRetrievalToken orders the results by the retrieval_token field.

Jump to

Keyboard shortcuts

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