certificate

package
v0.0.0-...-d46c51b Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the certificate type in the database.
	Label = "certificate"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "serial"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldUID holds the string denoting the uid field in the database.
	FieldUID = "uid"
	// Table holds the table name of the certificate in the database.
	Table = "certificates"
)

Variables

Columns holds all SQL columns for certificate fields.

Functions

func And

func And(predicates ...predicate.Certificate) predicate.Certificate

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Certificate

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Certificate

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Certificate

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Certificate

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Certificate

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Certificate

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Certificate

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Certificate

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Certificate

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Certificate

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Certificate

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Certificate

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Certificate

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Certificate

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Certificate

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Certificate

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Expiry

func Expiry(v time.Time) predicate.Certificate

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

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.Certificate

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

func ExpiryGT

func ExpiryGT(v time.Time) predicate.Certificate

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

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.Certificate

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

func ExpiryIn

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

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

func ExpiryIsNil

func ExpiryIsNil() predicate.Certificate

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

func ExpiryLT

func ExpiryLT(v time.Time) predicate.Certificate

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

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.Certificate

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

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.Certificate

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

func ExpiryNotIn

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

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

func ExpiryNotNil

func ExpiryNotNil() predicate.Certificate

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Certificate

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Certificate

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Certificate

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Certificate

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Certificate

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Certificate

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Certificate) predicate.Certificate

Or groups predicates with the OR operator between them.

func TypeEQ

func TypeEQ(v Type) predicate.Certificate

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

func TypeIn

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

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Certificate

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

func TypeNotIn

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

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 UID

UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.

func UIDContains

func UIDContains(v string) predicate.Certificate

UIDContains applies the Contains predicate on the "uid" field.

func UIDContainsFold

func UIDContainsFold(v string) predicate.Certificate

UIDContainsFold applies the ContainsFold predicate on the "uid" field.

func UIDEQ

func UIDEQ(v string) predicate.Certificate

UIDEQ applies the EQ predicate on the "uid" field.

func UIDEqualFold

func UIDEqualFold(v string) predicate.Certificate

UIDEqualFold applies the EqualFold predicate on the "uid" field.

func UIDGT

func UIDGT(v string) predicate.Certificate

UIDGT applies the GT predicate on the "uid" field.

func UIDGTE

func UIDGTE(v string) predicate.Certificate

UIDGTE applies the GTE predicate on the "uid" field.

func UIDHasPrefix

func UIDHasPrefix(v string) predicate.Certificate

UIDHasPrefix applies the HasPrefix predicate on the "uid" field.

func UIDHasSuffix

func UIDHasSuffix(v string) predicate.Certificate

UIDHasSuffix applies the HasSuffix predicate on the "uid" field.

func UIDIn

func UIDIn(vs ...string) predicate.Certificate

UIDIn applies the In predicate on the "uid" field.

func UIDIsNil

func UIDIsNil() predicate.Certificate

UIDIsNil applies the IsNil predicate on the "uid" field.

func UIDLT

func UIDLT(v string) predicate.Certificate

UIDLT applies the LT predicate on the "uid" field.

func UIDLTE

func UIDLTE(v string) predicate.Certificate

UIDLTE applies the LTE predicate on the "uid" field.

func UIDNEQ

func UIDNEQ(v string) predicate.Certificate

UIDNEQ applies the NEQ predicate on the "uid" field.

func UIDNotIn

func UIDNotIn(vs ...string) predicate.Certificate

UIDNotIn applies the NotIn predicate on the "uid" field.

func UIDNotNil

func UIDNotNil() predicate.Certificate

UIDNotNil applies the NotNil predicate on the "uid" 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 Certificate queries.

func ByDescription

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

ByDescription orders the results by the description field.

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 ByType

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

ByType orders the results by the type field.

func ByUID

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

ByUID orders the results by the uid field.

type Type

type Type string

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

const (
	TypeConsole Type = "console"
	TypeWorker  Type = "worker"
	TypeAgent   Type = "agent"
	TypeUser    Type = "user"
	TypeOcsp    Type = "ocsp"
	TypeNats    Type = "nats"
	TypeProxy   Type = "proxy"
	TypeSftp    Type = "sftp"
	TypeUpdater Type = "updater"
)

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