Documentation ¶
Index ¶
- Constants
- Variables
- func AlreadyRead(v bool) predicate.Secret
- func AlreadyReadEQ(v bool) predicate.Secret
- func AlreadyReadNEQ(v bool) predicate.Secret
- func And(predicates ...predicate.Secret) predicate.Secret
- func BurnAfterRead(v bool) predicate.Secret
- func BurnAfterReadEQ(v bool) predicate.Secret
- func BurnAfterReadNEQ(v bool) predicate.Secret
- func DeletionToken(v string) predicate.Secret
- func DeletionTokenContains(v string) predicate.Secret
- func DeletionTokenContainsFold(v string) predicate.Secret
- func DeletionTokenEQ(v string) predicate.Secret
- func DeletionTokenEqualFold(v string) predicate.Secret
- func DeletionTokenGT(v string) predicate.Secret
- func DeletionTokenGTE(v string) predicate.Secret
- func DeletionTokenHasPrefix(v string) predicate.Secret
- func DeletionTokenHasSuffix(v string) predicate.Secret
- func DeletionTokenIn(vs ...string) predicate.Secret
- func DeletionTokenLT(v string) predicate.Secret
- func DeletionTokenLTE(v string) predicate.Secret
- func DeletionTokenNEQ(v string) predicate.Secret
- func DeletionTokenNotIn(vs ...string) predicate.Secret
- func EncryptedData(v string) predicate.Secret
- func EncryptedDataContains(v string) predicate.Secret
- func EncryptedDataContainsFold(v string) predicate.Secret
- func EncryptedDataEQ(v string) predicate.Secret
- func EncryptedDataEqualFold(v string) predicate.Secret
- func EncryptedDataGT(v string) predicate.Secret
- func EncryptedDataGTE(v string) predicate.Secret
- func EncryptedDataHasPrefix(v string) predicate.Secret
- func EncryptedDataHasSuffix(v string) predicate.Secret
- func EncryptedDataIn(vs ...string) predicate.Secret
- func EncryptedDataLT(v string) predicate.Secret
- func EncryptedDataLTE(v string) predicate.Secret
- func EncryptedDataNEQ(v string) predicate.Secret
- func EncryptedDataNotIn(vs ...string) predicate.Secret
- func ExpiresAt(v time.Time) predicate.Secret
- func ExpiresAtEQ(v time.Time) predicate.Secret
- func ExpiresAtGT(v time.Time) predicate.Secret
- func ExpiresAtGTE(v time.Time) predicate.Secret
- func ExpiresAtIn(vs ...time.Time) predicate.Secret
- func ExpiresAtLT(v time.Time) predicate.Secret
- func ExpiresAtLTE(v time.Time) predicate.Secret
- func ExpiresAtNEQ(v time.Time) predicate.Secret
- func ExpiresAtNotIn(vs ...time.Time) predicate.Secret
- func ID(id int) predicate.Secret
- func IDEQ(id int) predicate.Secret
- func IDGT(id int) predicate.Secret
- func IDGTE(id int) predicate.Secret
- func IDIn(ids ...int) predicate.Secret
- func IDLT(id int) predicate.Secret
- func IDLTE(id int) predicate.Secret
- func IDNEQ(id int) predicate.Secret
- func IDNotIn(ids ...int) predicate.Secret
- func Nonce(v string) predicate.Secret
- func NonceContains(v string) predicate.Secret
- func NonceContainsFold(v string) predicate.Secret
- func NonceEQ(v string) predicate.Secret
- func NonceEqualFold(v string) predicate.Secret
- func NonceGT(v string) predicate.Secret
- func NonceGTE(v string) predicate.Secret
- func NonceHasPrefix(v string) predicate.Secret
- func NonceHasSuffix(v string) predicate.Secret
- func NonceIn(vs ...string) predicate.Secret
- func NonceLT(v string) predicate.Secret
- func NonceLTE(v string) predicate.Secret
- func NonceNEQ(v string) predicate.Secret
- func NonceNotIn(vs ...string) predicate.Secret
- func Not(p predicate.Secret) predicate.Secret
- func Or(predicates ...predicate.Secret) predicate.Secret
- func PublicID(v string) predicate.Secret
- func PublicIDContains(v string) predicate.Secret
- func PublicIDContainsFold(v string) predicate.Secret
- func PublicIDEQ(v string) predicate.Secret
- func PublicIDEqualFold(v string) predicate.Secret
- func PublicIDGT(v string) predicate.Secret
- func PublicIDGTE(v string) predicate.Secret
- func PublicIDHasPrefix(v string) predicate.Secret
- func PublicIDHasSuffix(v string) predicate.Secret
- func PublicIDIn(vs ...string) predicate.Secret
- func PublicIDLT(v string) predicate.Secret
- func PublicIDLTE(v string) predicate.Secret
- func PublicIDNEQ(v string) predicate.Secret
- func PublicIDNotIn(vs ...string) predicate.Secret
- func RetrievalToken(v string) predicate.Secret
- func RetrievalTokenContains(v string) predicate.Secret
- func RetrievalTokenContainsFold(v string) predicate.Secret
- func RetrievalTokenEQ(v string) predicate.Secret
- func RetrievalTokenEqualFold(v string) predicate.Secret
- func RetrievalTokenGT(v string) predicate.Secret
- func RetrievalTokenGTE(v string) predicate.Secret
- func RetrievalTokenHasPrefix(v string) predicate.Secret
- func RetrievalTokenHasSuffix(v string) predicate.Secret
- func RetrievalTokenIn(vs ...string) predicate.Secret
- func RetrievalTokenLT(v string) predicate.Secret
- func RetrievalTokenLTE(v string) predicate.Secret
- func RetrievalTokenNEQ(v string) predicate.Secret
- func RetrievalTokenNotIn(vs ...string) predicate.Secret
- func ValidColumn(column string) bool
- type OrderOption
- func ByAlreadyRead(opts ...sql.OrderTermOption) OrderOption
- func ByBurnAfterRead(opts ...sql.OrderTermOption) OrderOption
- func ByDeletionToken(opts ...sql.OrderTermOption) OrderOption
- func ByEncryptedData(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNonce(opts ...sql.OrderTermOption) OrderOption
- func ByPublicID(opts ...sql.OrderTermOption) OrderOption
- func ByRetrievalToken(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldPublicID, FieldRetrievalToken, FieldDeletionToken, FieldNonce, FieldEncryptedData, FieldExpiresAt, FieldBurnAfterRead, FieldAlreadyRead, }
Columns holds all SQL columns for secret fields.
Functions ¶
func AlreadyRead ¶
AlreadyRead applies equality check predicate on the "already_read" field. It's identical to AlreadyReadEQ.
func AlreadyReadEQ ¶
AlreadyReadEQ applies the EQ predicate on the "already_read" field.
func AlreadyReadNEQ ¶
AlreadyReadNEQ applies the NEQ predicate on the "already_read" field.
func BurnAfterRead ¶
BurnAfterRead applies equality check predicate on the "burn_after_read" field. It's identical to BurnAfterReadEQ.
func BurnAfterReadEQ ¶
BurnAfterReadEQ applies the EQ predicate on the "burn_after_read" field.
func BurnAfterReadNEQ ¶
BurnAfterReadNEQ applies the NEQ predicate on the "burn_after_read" field.
func DeletionToken ¶
DeletionToken applies equality check predicate on the "deletion_token" field. It's identical to DeletionTokenEQ.
func DeletionTokenContains ¶
DeletionTokenContains applies the Contains predicate on the "deletion_token" field.
func DeletionTokenContainsFold ¶
DeletionTokenContainsFold applies the ContainsFold predicate on the "deletion_token" field.
func DeletionTokenEQ ¶
DeletionTokenEQ applies the EQ predicate on the "deletion_token" field.
func DeletionTokenEqualFold ¶
DeletionTokenEqualFold applies the EqualFold predicate on the "deletion_token" field.
func DeletionTokenGT ¶
DeletionTokenGT applies the GT predicate on the "deletion_token" field.
func DeletionTokenGTE ¶
DeletionTokenGTE applies the GTE predicate on the "deletion_token" field.
func DeletionTokenHasPrefix ¶
DeletionTokenHasPrefix applies the HasPrefix predicate on the "deletion_token" field.
func DeletionTokenHasSuffix ¶
DeletionTokenHasSuffix applies the HasSuffix predicate on the "deletion_token" field.
func DeletionTokenIn ¶
DeletionTokenIn applies the In predicate on the "deletion_token" field.
func DeletionTokenLT ¶
DeletionTokenLT applies the LT predicate on the "deletion_token" field.
func DeletionTokenLTE ¶
DeletionTokenLTE applies the LTE predicate on the "deletion_token" field.
func DeletionTokenNEQ ¶
DeletionTokenNEQ applies the NEQ predicate on the "deletion_token" field.
func DeletionTokenNotIn ¶
DeletionTokenNotIn applies the NotIn predicate on the "deletion_token" field.
func EncryptedData ¶
EncryptedData applies equality check predicate on the "encrypted_data" field. It's identical to EncryptedDataEQ.
func EncryptedDataContains ¶
EncryptedDataContains applies the Contains predicate on the "encrypted_data" field.
func EncryptedDataContainsFold ¶
EncryptedDataContainsFold applies the ContainsFold predicate on the "encrypted_data" field.
func EncryptedDataEQ ¶
EncryptedDataEQ applies the EQ predicate on the "encrypted_data" field.
func EncryptedDataEqualFold ¶
EncryptedDataEqualFold applies the EqualFold predicate on the "encrypted_data" field.
func EncryptedDataGT ¶
EncryptedDataGT applies the GT predicate on the "encrypted_data" field.
func EncryptedDataGTE ¶
EncryptedDataGTE applies the GTE predicate on the "encrypted_data" field.
func EncryptedDataHasPrefix ¶
EncryptedDataHasPrefix applies the HasPrefix predicate on the "encrypted_data" field.
func EncryptedDataHasSuffix ¶
EncryptedDataHasSuffix applies the HasSuffix predicate on the "encrypted_data" field.
func EncryptedDataIn ¶
EncryptedDataIn applies the In predicate on the "encrypted_data" field.
func EncryptedDataLT ¶
EncryptedDataLT applies the LT predicate on the "encrypted_data" field.
func EncryptedDataLTE ¶
EncryptedDataLTE applies the LTE predicate on the "encrypted_data" field.
func EncryptedDataNEQ ¶
EncryptedDataNEQ applies the NEQ predicate on the "encrypted_data" field.
func EncryptedDataNotIn ¶
EncryptedDataNotIn applies the NotIn predicate on the "encrypted_data" field.
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 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 Nonce ¶
Nonce applies equality check predicate on the "nonce" field. It's identical to NonceEQ.
func NonceContains ¶
NonceContains applies the Contains predicate on the "nonce" field.
func NonceContainsFold ¶
NonceContainsFold applies the ContainsFold predicate on the "nonce" field.
func NonceEqualFold ¶
NonceEqualFold applies the EqualFold predicate on the "nonce" field.
func NonceHasPrefix ¶
NonceHasPrefix applies the HasPrefix predicate on the "nonce" field.
func NonceHasSuffix ¶
NonceHasSuffix applies the HasSuffix predicate on the "nonce" field.
func NonceNotIn ¶
NonceNotIn applies the NotIn predicate on the "nonce" field.
func PublicID ¶
PublicID applies equality check predicate on the "public_id" field. It's identical to PublicIDEQ.
func PublicIDContains ¶
PublicIDContains applies the Contains predicate on the "public_id" field.
func PublicIDContainsFold ¶
PublicIDContainsFold applies the ContainsFold predicate on the "public_id" field.
func PublicIDEQ ¶
PublicIDEQ applies the EQ predicate on the "public_id" field.
func PublicIDEqualFold ¶
PublicIDEqualFold applies the EqualFold predicate on the "public_id" field.
func PublicIDGT ¶
PublicIDGT applies the GT predicate on the "public_id" field.
func PublicIDGTE ¶
PublicIDGTE applies the GTE predicate on the "public_id" field.
func PublicIDHasPrefix ¶
PublicIDHasPrefix applies the HasPrefix predicate on the "public_id" field.
func PublicIDHasSuffix ¶
PublicIDHasSuffix applies the HasSuffix predicate on the "public_id" field.
func PublicIDIn ¶
PublicIDIn applies the In predicate on the "public_id" field.
func PublicIDLT ¶
PublicIDLT applies the LT predicate on the "public_id" field.
func PublicIDLTE ¶
PublicIDLTE applies the LTE predicate on the "public_id" field.
func PublicIDNEQ ¶
PublicIDNEQ applies the NEQ predicate on the "public_id" field.
func PublicIDNotIn ¶
PublicIDNotIn applies the NotIn predicate on the "public_id" field.
func RetrievalToken ¶
RetrievalToken applies equality check predicate on the "retrieval_token" field. It's identical to RetrievalTokenEQ.
func RetrievalTokenContains ¶
RetrievalTokenContains applies the Contains predicate on the "retrieval_token" field.
func RetrievalTokenContainsFold ¶
RetrievalTokenContainsFold applies the ContainsFold predicate on the "retrieval_token" field.
func RetrievalTokenEQ ¶
RetrievalTokenEQ applies the EQ predicate on the "retrieval_token" field.
func RetrievalTokenEqualFold ¶
RetrievalTokenEqualFold applies the EqualFold predicate on the "retrieval_token" field.
func RetrievalTokenGT ¶
RetrievalTokenGT applies the GT predicate on the "retrieval_token" field.
func RetrievalTokenGTE ¶
RetrievalTokenGTE applies the GTE predicate on the "retrieval_token" field.
func RetrievalTokenHasPrefix ¶
RetrievalTokenHasPrefix applies the HasPrefix predicate on the "retrieval_token" field.
func RetrievalTokenHasSuffix ¶
RetrievalTokenHasSuffix applies the HasSuffix predicate on the "retrieval_token" field.
func RetrievalTokenIn ¶
RetrievalTokenIn applies the In predicate on the "retrieval_token" field.
func RetrievalTokenLT ¶
RetrievalTokenLT applies the LT predicate on the "retrieval_token" field.
func RetrievalTokenLTE ¶
RetrievalTokenLTE applies the LTE predicate on the "retrieval_token" field.
func RetrievalTokenNEQ ¶
RetrievalTokenNEQ applies the NEQ predicate on the "retrieval_token" field.
func RetrievalTokenNotIn ¶
RetrievalTokenNotIn applies the NotIn predicate on the "retrieval_token" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.