Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pki) predicate.Pki
- func Cert(v []byte) predicate.Pki
- func CertEQ(v []byte) predicate.Pki
- func CertGT(v []byte) predicate.Pki
- func CertGTE(v []byte) predicate.Pki
- func CertIn(vs ...[]byte) predicate.Pki
- func CertLT(v []byte) predicate.Pki
- func CertLTE(v []byte) predicate.Pki
- func CertNEQ(v []byte) predicate.Pki
- func CertNotIn(vs ...[]byte) predicate.Pki
- func CreatedAt(v time.Time) predicate.Pki
- func CreatedAtEQ(v time.Time) predicate.Pki
- func CreatedAtGT(v time.Time) predicate.Pki
- func CreatedAtGTE(v time.Time) predicate.Pki
- func CreatedAtIn(vs ...time.Time) predicate.Pki
- func CreatedAtLT(v time.Time) predicate.Pki
- func CreatedAtLTE(v time.Time) predicate.Pki
- func CreatedAtNEQ(v time.Time) predicate.Pki
- func CreatedAtNotIn(vs ...time.Time) predicate.Pki
- func DeletedAt(v time.Time) predicate.Pki
- func DeletedAtEQ(v time.Time) predicate.Pki
- func DeletedAtGT(v time.Time) predicate.Pki
- func DeletedAtGTE(v time.Time) predicate.Pki
- func DeletedAtIn(vs ...time.Time) predicate.Pki
- func DeletedAtIsNil() predicate.Pki
- func DeletedAtLT(v time.Time) predicate.Pki
- func DeletedAtLTE(v time.Time) predicate.Pki
- func DeletedAtNEQ(v time.Time) predicate.Pki
- func DeletedAtNotIn(vs ...time.Time) predicate.Pki
- func DeletedAtNotNil() predicate.Pki
- func ID(id int) predicate.Pki
- func IDEQ(id int) predicate.Pki
- func IDGT(id int) predicate.Pki
- func IDGTE(id int) predicate.Pki
- func IDIn(ids ...int) predicate.Pki
- func IDLT(id int) predicate.Pki
- func IDLTE(id int) predicate.Pki
- func IDNEQ(id int) predicate.Pki
- func IDNotIn(ids ...int) predicate.Pki
- func Key(v []byte) predicate.Pki
- func KeyEQ(v []byte) predicate.Pki
- func KeyGT(v []byte) predicate.Pki
- func KeyGTE(v []byte) predicate.Pki
- func KeyIn(vs ...[]byte) predicate.Pki
- func KeyLT(v []byte) predicate.Pki
- func KeyLTE(v []byte) predicate.Pki
- func KeyNEQ(v []byte) predicate.Pki
- func KeyNotIn(vs ...[]byte) predicate.Pki
- func Not(p predicate.Pki) predicate.Pki
- func Or(predicates ...predicate.Pki) predicate.Pki
- func TypeEQ(v Type) predicate.Pki
- func TypeIn(vs ...Type) predicate.Pki
- func TypeNEQ(v Type) predicate.Pki
- func TypeNotIn(vs ...Type) predicate.Pki
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Pki
- func UpdatedAtEQ(v time.Time) predicate.Pki
- func UpdatedAtGT(v time.Time) predicate.Pki
- func UpdatedAtGTE(v time.Time) predicate.Pki
- func UpdatedAtIn(vs ...time.Time) predicate.Pki
- func UpdatedAtLT(v time.Time) predicate.Pki
- func UpdatedAtLTE(v time.Time) predicate.Pki
- func UpdatedAtNEQ(v time.Time) predicate.Pki
- func UpdatedAtNotIn(vs ...time.Time) predicate.Pki
- func ValidColumn(column string) bool
- type OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the pki type in the database. Label = "pki" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldCert holds the string denoting the cert field in the database. FieldCert = "cert" // Table holds the table name of the pki in the database. Table = "pki" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/c2micro/c2m/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldType, FieldKey, FieldCert, }
Columns holds all SQL columns for pki 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 Pki queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.