revocation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the revocation type in the database.
	Label = "revocation"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "serial"
	// FieldReason holds the string denoting the reason field in the database.
	FieldReason = "reason"
	// FieldInfo holds the string denoting the info field in the database.
	FieldInfo = "info"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// Table holds the table name of the revocation in the database.
	Table = "revocations"
)

Variables

View Source
var (
	// DefaultReason holds the default value on creation for the "reason" field.
	DefaultReason int
	// DefaultRevoked holds the default value on creation for the "revoked" field.
	DefaultRevoked func() time.Time
)

Columns holds all SQL columns for revocation fields.

Functions

func And

func And(predicates ...predicate.Revocation) predicate.Revocation

And groups predicates with the AND operator between them.

func Expiry

func Expiry(v time.Time) predicate.Revocation

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.Revocation

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.Revocation

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.Revocation

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

func ExpiryIn(vs ...time.Time) predicate.Revocation

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryIsNil

func ExpiryIsNil() predicate.Revocation

ExpiryIsNil applies the IsNil predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.Revocation

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.Revocation

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.Revocation

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

func ExpiryNotIn(vs ...time.Time) predicate.Revocation

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ExpiryNotNil

func ExpiryNotNil() predicate.Revocation

ExpiryNotNil applies the NotNil predicate on the "expiry" field.

func ID

func ID(id int64) predicate.Revocation

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Revocation

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Revocation

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Revocation

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Revocation

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Revocation

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Revocation

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Revocation

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Revocation

IDNotIn applies the NotIn predicate on the ID field.

func Info

func Info(v string) predicate.Revocation

Info applies equality check predicate on the "info" field. It's identical to InfoEQ.

func InfoContains

func InfoContains(v string) predicate.Revocation

InfoContains applies the Contains predicate on the "info" field.

func InfoContainsFold

func InfoContainsFold(v string) predicate.Revocation

InfoContainsFold applies the ContainsFold predicate on the "info" field.

func InfoEQ

func InfoEQ(v string) predicate.Revocation

InfoEQ applies the EQ predicate on the "info" field.

func InfoEqualFold

func InfoEqualFold(v string) predicate.Revocation

InfoEqualFold applies the EqualFold predicate on the "info" field.

func InfoGT

func InfoGT(v string) predicate.Revocation

InfoGT applies the GT predicate on the "info" field.

func InfoGTE

func InfoGTE(v string) predicate.Revocation

InfoGTE applies the GTE predicate on the "info" field.

func InfoHasPrefix

func InfoHasPrefix(v string) predicate.Revocation

InfoHasPrefix applies the HasPrefix predicate on the "info" field.

func InfoHasSuffix

func InfoHasSuffix(v string) predicate.Revocation

InfoHasSuffix applies the HasSuffix predicate on the "info" field.

func InfoIn

func InfoIn(vs ...string) predicate.Revocation

InfoIn applies the In predicate on the "info" field.

func InfoIsNil

func InfoIsNil() predicate.Revocation

InfoIsNil applies the IsNil predicate on the "info" field.

func InfoLT

func InfoLT(v string) predicate.Revocation

InfoLT applies the LT predicate on the "info" field.

func InfoLTE

func InfoLTE(v string) predicate.Revocation

InfoLTE applies the LTE predicate on the "info" field.

func InfoNEQ

func InfoNEQ(v string) predicate.Revocation

InfoNEQ applies the NEQ predicate on the "info" field.

func InfoNotIn

func InfoNotIn(vs ...string) predicate.Revocation

InfoNotIn applies the NotIn predicate on the "info" field.

func InfoNotNil

func InfoNotNil() predicate.Revocation

InfoNotNil applies the NotNil predicate on the "info" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Revocation) predicate.Revocation

Or groups predicates with the OR operator between them.

func Reason

func Reason(v int) predicate.Revocation

Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.

func ReasonEQ

func ReasonEQ(v int) predicate.Revocation

ReasonEQ applies the EQ predicate on the "reason" field.

func ReasonGT

func ReasonGT(v int) predicate.Revocation

ReasonGT applies the GT predicate on the "reason" field.

func ReasonGTE

func ReasonGTE(v int) predicate.Revocation

ReasonGTE applies the GTE predicate on the "reason" field.

func ReasonIn

func ReasonIn(vs ...int) predicate.Revocation

ReasonIn applies the In predicate on the "reason" field.

func ReasonIsNil

func ReasonIsNil() predicate.Revocation

ReasonIsNil applies the IsNil predicate on the "reason" field.

func ReasonLT

func ReasonLT(v int) predicate.Revocation

ReasonLT applies the LT predicate on the "reason" field.

func ReasonLTE

func ReasonLTE(v int) predicate.Revocation

ReasonLTE applies the LTE predicate on the "reason" field.

func ReasonNEQ

func ReasonNEQ(v int) predicate.Revocation

ReasonNEQ applies the NEQ predicate on the "reason" field.

func ReasonNotIn

func ReasonNotIn(vs ...int) predicate.Revocation

ReasonNotIn applies the NotIn predicate on the "reason" field.

func ReasonNotNil

func ReasonNotNil() predicate.Revocation

ReasonNotNil applies the NotNil predicate on the "reason" field.

func Revoked

func Revoked(v time.Time) predicate.Revocation

Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.

func RevokedEQ

func RevokedEQ(v time.Time) predicate.Revocation

RevokedEQ applies the EQ predicate on the "revoked" field.

func RevokedGT

func RevokedGT(v time.Time) predicate.Revocation

RevokedGT applies the GT predicate on the "revoked" field.

func RevokedGTE

func RevokedGTE(v time.Time) predicate.Revocation

RevokedGTE applies the GTE predicate on the "revoked" field.

func RevokedIn

func RevokedIn(vs ...time.Time) predicate.Revocation

RevokedIn applies the In predicate on the "revoked" field.

func RevokedLT

func RevokedLT(v time.Time) predicate.Revocation

RevokedLT applies the LT predicate on the "revoked" field.

func RevokedLTE

func RevokedLTE(v time.Time) predicate.Revocation

RevokedLTE applies the LTE predicate on the "revoked" field.

func RevokedNEQ

func RevokedNEQ(v time.Time) predicate.Revocation

RevokedNEQ applies the NEQ predicate on the "revoked" field.

func RevokedNotIn

func RevokedNotIn(vs ...time.Time) predicate.Revocation

RevokedNotIn applies the NotIn predicate on the "revoked" 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 Revocation queries.

func ByExpiry

func ByExpiry(opts ...sql.OrderTermOption) OrderOption

ByExpiry orders the results by the expiry field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInfo

func ByInfo(opts ...sql.OrderTermOption) OrderOption

ByInfo orders the results by the info field.

func ByReason

func ByReason(opts ...sql.OrderTermOption) OrderOption

ByReason orders the results by the reason field.

func ByRevoked

func ByRevoked(opts ...sql.OrderTermOption) OrderOption

ByRevoked orders the results by the revoked field.

Jump to

Keyboard shortcuts

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