Documentation
¶
Index ¶
- Constants
- Variables
- func AccessCount(v int) predicate.Secret
- func AccessCountEQ(v int) predicate.Secret
- func AccessCountGT(v int) predicate.Secret
- func AccessCountGTE(v int) predicate.Secret
- func AccessCountIn(vs ...int) predicate.Secret
- func AccessCountLT(v int) predicate.Secret
- func AccessCountLTE(v int) predicate.Secret
- func AccessCountNEQ(v int) predicate.Secret
- func AccessCountNotIn(vs ...int) predicate.Secret
- func And(predicates ...predicate.Secret) predicate.Secret
- func CreatedAt(v time.Time) predicate.Secret
- func CreatedAtEQ(v time.Time) predicate.Secret
- func CreatedAtGT(v time.Time) predicate.Secret
- func CreatedAtGTE(v time.Time) predicate.Secret
- func CreatedAtIn(vs ...time.Time) predicate.Secret
- func CreatedAtLT(v time.Time) predicate.Secret
- func CreatedAtLTE(v time.Time) predicate.Secret
- func CreatedAtNEQ(v time.Time) predicate.Secret
- func CreatedAtNotIn(vs ...time.Time) predicate.Secret
- func EncryptedValue(v []byte) predicate.Secret
- func EncryptedValueEQ(v []byte) predicate.Secret
- func EncryptedValueGT(v []byte) predicate.Secret
- func EncryptedValueGTE(v []byte) predicate.Secret
- func EncryptedValueIn(vs ...[]byte) predicate.Secret
- func EncryptedValueLT(v []byte) predicate.Secret
- func EncryptedValueLTE(v []byte) predicate.Secret
- func EncryptedValueNEQ(v []byte) predicate.Secret
- func EncryptedValueNotIn(vs ...[]byte) predicate.Secret
- func HasKey() predicate.Secret
- func HasKeyWith(preds ...predicate.Key) predicate.Secret
- func ID(id uuid.UUID) predicate.Secret
- func IDEQ(id uuid.UUID) predicate.Secret
- func IDGT(id uuid.UUID) predicate.Secret
- func IDGTE(id uuid.UUID) predicate.Secret
- func IDIn(ids ...uuid.UUID) predicate.Secret
- func IDLT(id uuid.UUID) predicate.Secret
- func IDLTE(id uuid.UUID) predicate.Secret
- func IDNEQ(id uuid.UUID) predicate.Secret
- func IDNotIn(ids ...uuid.UUID) predicate.Secret
- func Name(v string) predicate.Secret
- func NameContains(v string) predicate.Secret
- func NameContainsFold(v string) predicate.Secret
- func NameEQ(v string) predicate.Secret
- func NameEqualFold(v string) predicate.Secret
- func NameGT(v string) predicate.Secret
- func NameGTE(v string) predicate.Secret
- func NameHasPrefix(v string) predicate.Secret
- func NameHasSuffix(v string) predicate.Secret
- func NameIn(vs ...string) predicate.Secret
- func NameLT(v string) predicate.Secret
- func NameLTE(v string) predicate.Secret
- func NameNEQ(v string) predicate.Secret
- func NameNotIn(vs ...string) predicate.Secret
- func Not(p predicate.Secret) predicate.Secret
- func Or(predicates ...predicate.Secret) predicate.Secret
- func UpdatedAt(v time.Time) predicate.Secret
- func UpdatedAtEQ(v time.Time) predicate.Secret
- func UpdatedAtGT(v time.Time) predicate.Secret
- func UpdatedAtGTE(v time.Time) predicate.Secret
- func UpdatedAtIn(vs ...time.Time) predicate.Secret
- func UpdatedAtLT(v time.Time) predicate.Secret
- func UpdatedAtLTE(v time.Time) predicate.Secret
- func UpdatedAtNEQ(v time.Time) predicate.Secret
- func UpdatedAtNotIn(vs ...time.Time) predicate.Secret
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccessCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKeyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldEncryptedValue holds the string denoting the encrypted_value field in the database. FieldEncryptedValue = "encrypted_value" // 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" // FieldAccessCount holds the string denoting the access_count field in the database. FieldAccessCount = "access_count" // EdgeKey holds the string denoting the key edge name in mutations. EdgeKey = "key" // Table holds the table name of the secret in the database. Table = "secrets" // KeyTable is the table that holds the key relation/edge. KeyTable = "secrets" // KeyInverseTable is the table name for the Key entity. // It exists in this package in order to avoid circular dependency with the "key" package. KeyInverseTable = "keys" // KeyColumn is the table column denoting the key relation/edge. KeyColumn = "key_secrets" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // 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 // DefaultAccessCount holds the default value on creation for the "access_count" field. DefaultAccessCount int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldEncryptedValue, FieldCreatedAt, FieldUpdatedAt, FieldAccessCount, }
Columns holds all SQL columns for secret fields.
var ForeignKeys = []string{
"key_secrets",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "secrets" table and are not defined as standalone fields in the schema.
Functions ¶
func AccessCount ¶
AccessCount applies equality check predicate on the "access_count" field. It's identical to AccessCountEQ.
func AccessCountEQ ¶
AccessCountEQ applies the EQ predicate on the "access_count" field.
func AccessCountGT ¶
AccessCountGT applies the GT predicate on the "access_count" field.
func AccessCountGTE ¶
AccessCountGTE applies the GTE predicate on the "access_count" field.
func AccessCountIn ¶
AccessCountIn applies the In predicate on the "access_count" field.
func AccessCountLT ¶
AccessCountLT applies the LT predicate on the "access_count" field.
func AccessCountLTE ¶
AccessCountLTE applies the LTE predicate on the "access_count" field.
func AccessCountNEQ ¶
AccessCountNEQ applies the NEQ predicate on the "access_count" field.
func AccessCountNotIn ¶
AccessCountNotIn applies the NotIn predicate on the "access_count" field.
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 EncryptedValue ¶
EncryptedValue applies equality check predicate on the "encrypted_value" field. It's identical to EncryptedValueEQ.
func EncryptedValueEQ ¶
EncryptedValueEQ applies the EQ predicate on the "encrypted_value" field.
func EncryptedValueGT ¶
EncryptedValueGT applies the GT predicate on the "encrypted_value" field.
func EncryptedValueGTE ¶
EncryptedValueGTE applies the GTE predicate on the "encrypted_value" field.
func EncryptedValueIn ¶
EncryptedValueIn applies the In predicate on the "encrypted_value" field.
func EncryptedValueLT ¶
EncryptedValueLT applies the LT predicate on the "encrypted_value" field.
func EncryptedValueLTE ¶
EncryptedValueLTE applies the LTE predicate on the "encrypted_value" field.
func EncryptedValueNEQ ¶
EncryptedValueNEQ applies the NEQ predicate on the "encrypted_value" field.
func EncryptedValueNotIn ¶
EncryptedValueNotIn applies the NotIn predicate on the "encrypted_value" field.
func HasKeyWith ¶
HasKeyWith applies the HasEdge predicate on the "key" edge with a given conditions (other predicates).
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 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 OrderOption ¶
OrderOption defines the ordering options for the Secret queries.
func ByAccessCount ¶
func ByAccessCount(opts ...sql.OrderTermOption) OrderOption
ByAccessCount orders the results by the access_count field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKeyField ¶
func ByKeyField(field string, opts ...sql.OrderTermOption) OrderOption
ByKeyField orders the results by key field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.