pki

package
v0.0.0-...-2b4f063 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for pki fields.

Functions

func And

func And(predicates ...predicate.Pki) predicate.Pki

And groups predicates with the AND operator between them.

func Cert

func Cert(v []byte) predicate.Pki

Cert applies equality check predicate on the "cert" field. It's identical to CertEQ.

func CertEQ

func CertEQ(v []byte) predicate.Pki

CertEQ applies the EQ predicate on the "cert" field.

func CertGT

func CertGT(v []byte) predicate.Pki

CertGT applies the GT predicate on the "cert" field.

func CertGTE

func CertGTE(v []byte) predicate.Pki

CertGTE applies the GTE predicate on the "cert" field.

func CertIn

func CertIn(vs ...[]byte) predicate.Pki

CertIn applies the In predicate on the "cert" field.

func CertLT

func CertLT(v []byte) predicate.Pki

CertLT applies the LT predicate on the "cert" field.

func CertLTE

func CertLTE(v []byte) predicate.Pki

CertLTE applies the LTE predicate on the "cert" field.

func CertNEQ

func CertNEQ(v []byte) predicate.Pki

CertNEQ applies the NEQ predicate on the "cert" field.

func CertNotIn

func CertNotIn(vs ...[]byte) predicate.Pki

CertNotIn applies the NotIn predicate on the "cert" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Pki

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Pki

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Pki

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Pki

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Pki

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Pki

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Pki

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Pki

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Pki

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Pki

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Pki

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Pki

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Pki

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Pki

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Pki

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Pki

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Pki

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Pki

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Pki

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Pki

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

func ID(id int) predicate.Pki

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Pki

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Pki

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Pki

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Pki

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Pki

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Pki

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v []byte) predicate.Pki

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyEQ

func KeyEQ(v []byte) predicate.Pki

KeyEQ applies the EQ predicate on the "key" field.

func KeyGT

func KeyGT(v []byte) predicate.Pki

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v []byte) predicate.Pki

KeyGTE applies the GTE predicate on the "key" field.

func KeyIn

func KeyIn(vs ...[]byte) predicate.Pki

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v []byte) predicate.Pki

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v []byte) predicate.Pki

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v []byte) predicate.Pki

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...[]byte) predicate.Pki

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

func Not(p predicate.Pki) predicate.Pki

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pki) predicate.Pki

Or groups predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Pki

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Pki

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Pki

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Pki

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Pki

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Pki

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Pki

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Pki

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Pki

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Pki

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Pki

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Pki

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Pki

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 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.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeCa         Type = "ca"
	TypeListener   Type = "listener"
	TypeOperator   Type = "operator"
	TypeManagement Type = "management"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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