kek

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the kek type in the database.
	Label = "kek"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldProviderRef holds the string denoting the provider_ref field in the database.
	FieldProviderRef = "provider_ref"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeVersions holds the string denoting the versions edge name in mutations.
	EdgeVersions = "versions"
	// EdgeDataKeys holds the string denoting the data_keys edge name in mutations.
	EdgeDataKeys = "data_keys"
	// EdgeSentinels holds the string denoting the sentinels edge name in mutations.
	EdgeSentinels = "sentinels"
	// Table holds the table name of the kek in the database.
	Table = "ke_ks"
	// VersionsTable is the table that holds the versions relation/edge.
	VersionsTable = "kek_versions"
	// VersionsInverseTable is the table name for the KEKVersion entity.
	// It exists in this package in order to avoid circular dependency with the "kekversion" package.
	VersionsInverseTable = "kek_versions"
	// VersionsColumn is the table column denoting the versions relation/edge.
	VersionsColumn = "kek_id"
	// DataKeysTable is the table that holds the data_keys relation/edge.
	DataKeysTable = "data_keys"
	// DataKeysInverseTable is the table name for the DataKey entity.
	// It exists in this package in order to avoid circular dependency with the "datakey" package.
	DataKeysInverseTable = "data_keys"
	// DataKeysColumn is the table column denoting the data_keys relation/edge.
	DataKeysColumn = "kek_id"
	// SentinelsTable is the table that holds the sentinels relation/edge.
	SentinelsTable = "sentinels"
	// SentinelsInverseTable is the table name for the Sentinel entity.
	// It exists in this package in order to avoid circular dependency with the "sentinel" package.
	SentinelsInverseTable = "sentinels"
	// SentinelsColumn is the table column denoting the sentinels relation/edge.
	SentinelsColumn = "kek_id"
)

Variables

View Source
var (
	// PurposeValidator is a validator for the "purpose" field. It is called by the builders before save.
	PurposeValidator func(string) error
	// ProviderValidator is a validator for the "provider" field. It is called by the builders before save.
	ProviderValidator func(string) error
	// ProviderRefValidator is a validator for the "provider_ref" field. It is called by the builders before save.
	ProviderRefValidator func(string) error
)

Columns holds all SQL columns for kek fields.

Functions

func And

func And(predicates ...predicate.KEK) predicate.KEK

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.KEK

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.KEK

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.KEK

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.KEK

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.KEK

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.KEK

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.KEK

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

func CreatedAtNotIn

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

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

func HasDataKeys

func HasDataKeys() predicate.KEK

HasDataKeys applies the HasEdge predicate on the "data_keys" edge.

func HasDataKeysWith

func HasDataKeysWith(preds ...predicate.DataKey) predicate.KEK

HasDataKeysWith applies the HasEdge predicate on the "data_keys" edge with a given conditions (other predicates).

func HasSentinels

func HasSentinels() predicate.KEK

HasSentinels applies the HasEdge predicate on the "sentinels" edge.

func HasSentinelsWith

func HasSentinelsWith(preds ...predicate.Sentinel) predicate.KEK

HasSentinelsWith applies the HasEdge predicate on the "sentinels" edge with a given conditions (other predicates).

func HasVersions

func HasVersions() predicate.KEK

HasVersions applies the HasEdge predicate on the "versions" edge.

func HasVersionsWith

func HasVersionsWith(preds ...predicate.KEKVersion) predicate.KEK

HasVersionsWith applies the HasEdge predicate on the "versions" edge with a given conditions (other predicates).

func ID

func ID(id envelope.ID) predicate.KEK

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id envelope.ID) predicate.KEK

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id envelope.ID) predicate.KEK

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id envelope.ID) predicate.KEK

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...envelope.ID) predicate.KEK

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id envelope.ID) predicate.KEK

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id envelope.ID) predicate.KEK

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id envelope.ID) predicate.KEK

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...envelope.ID) predicate.KEK

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.KEK) predicate.KEK

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.KEK) predicate.KEK

Or groups predicates with the OR operator between them.

func Provider

func Provider(v string) predicate.KEK

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.KEK

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.KEK

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.KEK

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.KEK

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.KEK

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.KEK

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.KEK

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.KEK

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.KEK

ProviderIn applies the In predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.KEK

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.KEK

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.KEK

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.KEK

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderRef

func ProviderRef(v string) predicate.KEK

ProviderRef applies equality check predicate on the "provider_ref" field. It's identical to ProviderRefEQ.

func ProviderRefContains

func ProviderRefContains(v string) predicate.KEK

ProviderRefContains applies the Contains predicate on the "provider_ref" field.

func ProviderRefContainsFold

func ProviderRefContainsFold(v string) predicate.KEK

ProviderRefContainsFold applies the ContainsFold predicate on the "provider_ref" field.

func ProviderRefEQ

func ProviderRefEQ(v string) predicate.KEK

ProviderRefEQ applies the EQ predicate on the "provider_ref" field.

func ProviderRefEqualFold

func ProviderRefEqualFold(v string) predicate.KEK

ProviderRefEqualFold applies the EqualFold predicate on the "provider_ref" field.

func ProviderRefGT

func ProviderRefGT(v string) predicate.KEK

ProviderRefGT applies the GT predicate on the "provider_ref" field.

func ProviderRefGTE

func ProviderRefGTE(v string) predicate.KEK

ProviderRefGTE applies the GTE predicate on the "provider_ref" field.

func ProviderRefHasPrefix

func ProviderRefHasPrefix(v string) predicate.KEK

ProviderRefHasPrefix applies the HasPrefix predicate on the "provider_ref" field.

func ProviderRefHasSuffix

func ProviderRefHasSuffix(v string) predicate.KEK

ProviderRefHasSuffix applies the HasSuffix predicate on the "provider_ref" field.

func ProviderRefIn

func ProviderRefIn(vs ...string) predicate.KEK

ProviderRefIn applies the In predicate on the "provider_ref" field.

func ProviderRefLT

func ProviderRefLT(v string) predicate.KEK

ProviderRefLT applies the LT predicate on the "provider_ref" field.

func ProviderRefLTE

func ProviderRefLTE(v string) predicate.KEK

ProviderRefLTE applies the LTE predicate on the "provider_ref" field.

func ProviderRefNEQ

func ProviderRefNEQ(v string) predicate.KEK

ProviderRefNEQ applies the NEQ predicate on the "provider_ref" field.

func ProviderRefNotIn

func ProviderRefNotIn(vs ...string) predicate.KEK

ProviderRefNotIn applies the NotIn predicate on the "provider_ref" field.

func Purpose

func Purpose(v string) predicate.KEK

Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.

func PurposeContains

func PurposeContains(v string) predicate.KEK

PurposeContains applies the Contains predicate on the "purpose" field.

func PurposeContainsFold

func PurposeContainsFold(v string) predicate.KEK

PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.

func PurposeEQ

func PurposeEQ(v string) predicate.KEK

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeEqualFold

func PurposeEqualFold(v string) predicate.KEK

PurposeEqualFold applies the EqualFold predicate on the "purpose" field.

func PurposeGT

func PurposeGT(v string) predicate.KEK

PurposeGT applies the GT predicate on the "purpose" field.

func PurposeGTE

func PurposeGTE(v string) predicate.KEK

PurposeGTE applies the GTE predicate on the "purpose" field.

func PurposeHasPrefix

func PurposeHasPrefix(v string) predicate.KEK

PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.

func PurposeHasSuffix

func PurposeHasSuffix(v string) predicate.KEK

PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...string) predicate.KEK

PurposeIn applies the In predicate on the "purpose" field.

func PurposeLT

func PurposeLT(v string) predicate.KEK

PurposeLT applies the LT predicate on the "purpose" field.

func PurposeLTE

func PurposeLTE(v string) predicate.KEK

PurposeLTE applies the LTE predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v string) predicate.KEK

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...string) predicate.KEK

PurposeNotIn applies the NotIn predicate on the "purpose" field.

func State

func State(v uint8) predicate.KEK

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v uint8) predicate.KEK

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v uint8) predicate.KEK

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v uint8) predicate.KEK

StateGTE applies the GTE predicate on the "state" field.

func StateIn

func StateIn(vs ...uint8) predicate.KEK

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v uint8) predicate.KEK

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v uint8) predicate.KEK

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v uint8) predicate.KEK

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...uint8) predicate.KEK

StateNotIn applies the NotIn predicate on the "state" 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 KEK queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDataKeys

func ByDataKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDataKeys orders the results by data_keys terms.

func ByDataKeysCount

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

ByDataKeysCount orders the results by data_keys count.

func ByID

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

ByID orders the results by the id field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByProviderRef

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

ByProviderRef orders the results by the provider_ref field.

func ByPurpose

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

ByPurpose orders the results by the purpose field.

func BySentinels

func BySentinels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySentinels orders the results by sentinels terms.

func BySentinelsCount

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

BySentinelsCount orders the results by sentinels count.

func ByState

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

ByState orders the results by the state field.

func ByVersions

func ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVersions orders the results by versions terms.

func ByVersionsCount

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

ByVersionsCount orders the results by versions count.

Jump to

Keyboard shortcuts

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