Documentation ¶
Index ¶
- Constants
- Variables
- 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 CreatedBy(v string) predicate.Secret
- func CreatedByContains(v string) predicate.Secret
- func CreatedByContainsFold(v string) predicate.Secret
- func CreatedByEQ(v string) predicate.Secret
- func CreatedByEqualFold(v string) predicate.Secret
- func CreatedByGT(v string) predicate.Secret
- func CreatedByGTE(v string) predicate.Secret
- func CreatedByHasPrefix(v string) predicate.Secret
- func CreatedByHasSuffix(v string) predicate.Secret
- func CreatedByIn(vs ...string) predicate.Secret
- func CreatedByLT(v string) predicate.Secret
- func CreatedByLTE(v string) predicate.Secret
- func CreatedByNEQ(v string) predicate.Secret
- func CreatedByNotIn(vs ...string) 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 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 ProjectID(v int) predicate.Secret
- func ProjectIDEQ(v int) predicate.Secret
- func ProjectIDGT(v int) predicate.Secret
- func ProjectIDGTE(v int) predicate.Secret
- func ProjectIDIn(vs ...int) predicate.Secret
- func ProjectIDLT(v int) predicate.Secret
- func ProjectIDLTE(v int) predicate.Secret
- func ProjectIDNEQ(v int) predicate.Secret
- func ProjectIDNotIn(vs ...int) 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
- func Value(v string) predicate.Secret
- func ValueContains(v string) predicate.Secret
- func ValueContainsFold(v string) predicate.Secret
- func ValueEQ(v string) predicate.Secret
- func ValueEqualFold(v string) predicate.Secret
- func ValueGT(v string) predicate.Secret
- func ValueGTE(v string) predicate.Secret
- func ValueHasPrefix(v string) predicate.Secret
- func ValueHasSuffix(v string) predicate.Secret
- func ValueIn(vs ...string) predicate.Secret
- func ValueLT(v string) predicate.Secret
- func ValueLTE(v string) predicate.Secret
- func ValueNEQ(v string) predicate.Secret
- func ValueNotIn(vs ...string) predicate.Secret
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByValue(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" // 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" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // Table holds the table name of the secret in the database. Table = "secrets" )
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldValue, FieldProjectID, FieldCreatedBy, }
Columns holds all SQL columns for secret fields.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" 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 ProjectID ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDGT ¶
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDLT ¶
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Secret queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.