Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.KEK) predicate.KEK
- func CreatedAt(v time.Time) predicate.KEK
- func CreatedAtEQ(v time.Time) predicate.KEK
- func CreatedAtGT(v time.Time) predicate.KEK
- func CreatedAtGTE(v time.Time) predicate.KEK
- func CreatedAtIn(vs ...time.Time) predicate.KEK
- func CreatedAtLT(v time.Time) predicate.KEK
- func CreatedAtLTE(v time.Time) predicate.KEK
- func CreatedAtNEQ(v time.Time) predicate.KEK
- func CreatedAtNotIn(vs ...time.Time) predicate.KEK
- func HasDataKeys() predicate.KEK
- func HasDataKeysWith(preds ...predicate.DataKey) predicate.KEK
- func HasSentinels() predicate.KEK
- func HasSentinelsWith(preds ...predicate.Sentinel) predicate.KEK
- func HasVersions() predicate.KEK
- func HasVersionsWith(preds ...predicate.KEKVersion) predicate.KEK
- func ID(id envelope.ID) predicate.KEK
- func IDEQ(id envelope.ID) predicate.KEK
- func IDGT(id envelope.ID) predicate.KEK
- func IDGTE(id envelope.ID) predicate.KEK
- func IDIn(ids ...envelope.ID) predicate.KEK
- func IDLT(id envelope.ID) predicate.KEK
- func IDLTE(id envelope.ID) predicate.KEK
- func IDNEQ(id envelope.ID) predicate.KEK
- func IDNotIn(ids ...envelope.ID) predicate.KEK
- func Not(p predicate.KEK) predicate.KEK
- func Or(predicates ...predicate.KEK) predicate.KEK
- func Provider(v string) predicate.KEK
- func ProviderContains(v string) predicate.KEK
- func ProviderContainsFold(v string) predicate.KEK
- func ProviderEQ(v string) predicate.KEK
- func ProviderEqualFold(v string) predicate.KEK
- func ProviderGT(v string) predicate.KEK
- func ProviderGTE(v string) predicate.KEK
- func ProviderHasPrefix(v string) predicate.KEK
- func ProviderHasSuffix(v string) predicate.KEK
- func ProviderIn(vs ...string) predicate.KEK
- func ProviderLT(v string) predicate.KEK
- func ProviderLTE(v string) predicate.KEK
- func ProviderNEQ(v string) predicate.KEK
- func ProviderNotIn(vs ...string) predicate.KEK
- func ProviderRef(v string) predicate.KEK
- func ProviderRefContains(v string) predicate.KEK
- func ProviderRefContainsFold(v string) predicate.KEK
- func ProviderRefEQ(v string) predicate.KEK
- func ProviderRefEqualFold(v string) predicate.KEK
- func ProviderRefGT(v string) predicate.KEK
- func ProviderRefGTE(v string) predicate.KEK
- func ProviderRefHasPrefix(v string) predicate.KEK
- func ProviderRefHasSuffix(v string) predicate.KEK
- func ProviderRefIn(vs ...string) predicate.KEK
- func ProviderRefLT(v string) predicate.KEK
- func ProviderRefLTE(v string) predicate.KEK
- func ProviderRefNEQ(v string) predicate.KEK
- func ProviderRefNotIn(vs ...string) predicate.KEK
- func Purpose(v string) predicate.KEK
- func PurposeContains(v string) predicate.KEK
- func PurposeContainsFold(v string) predicate.KEK
- func PurposeEQ(v string) predicate.KEK
- func PurposeEqualFold(v string) predicate.KEK
- func PurposeGT(v string) predicate.KEK
- func PurposeGTE(v string) predicate.KEK
- func PurposeHasPrefix(v string) predicate.KEK
- func PurposeHasSuffix(v string) predicate.KEK
- func PurposeIn(vs ...string) predicate.KEK
- func PurposeLT(v string) predicate.KEK
- func PurposeLTE(v string) predicate.KEK
- func PurposeNEQ(v string) predicate.KEK
- func PurposeNotIn(vs ...string) predicate.KEK
- func State(v uint8) predicate.KEK
- func StateEQ(v uint8) predicate.KEK
- func StateGT(v uint8) predicate.KEK
- func StateGTE(v uint8) predicate.KEK
- func StateIn(vs ...uint8) predicate.KEK
- func StateLT(v uint8) predicate.KEK
- func StateLTE(v uint8) predicate.KEK
- func StateNEQ(v uint8) predicate.KEK
- func StateNotIn(vs ...uint8) predicate.KEK
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDataKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDataKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByProviderRef(opts ...sql.OrderTermOption) OrderOption
- func ByPurpose(opts ...sql.OrderTermOption) OrderOption
- func BySentinels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySentinelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByVersions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVersionsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldPurpose, FieldProvider, FieldProviderRef, FieldState, FieldCreatedAt, }
Columns holds all SQL columns for kek 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 HasDataKeys ¶
HasDataKeys applies the HasEdge predicate on the "data_keys" edge.
func HasDataKeysWith ¶
HasDataKeysWith applies the HasEdge predicate on the "data_keys" edge with a given conditions (other predicates).
func HasSentinels ¶
HasSentinels applies the HasEdge predicate on the "sentinels" edge.
func HasSentinelsWith ¶
HasSentinelsWith applies the HasEdge predicate on the "sentinels" edge with a given conditions (other predicates).
func HasVersions ¶
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 Provider ¶
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderRef ¶
ProviderRef applies equality check predicate on the "provider_ref" field. It's identical to ProviderRefEQ.
func ProviderRefContains ¶
ProviderRefContains applies the Contains predicate on the "provider_ref" field.
func ProviderRefContainsFold ¶
ProviderRefContainsFold applies the ContainsFold predicate on the "provider_ref" field.
func ProviderRefEQ ¶
ProviderRefEQ applies the EQ predicate on the "provider_ref" field.
func ProviderRefEqualFold ¶
ProviderRefEqualFold applies the EqualFold predicate on the "provider_ref" field.
func ProviderRefGT ¶
ProviderRefGT applies the GT predicate on the "provider_ref" field.
func ProviderRefGTE ¶
ProviderRefGTE applies the GTE predicate on the "provider_ref" field.
func ProviderRefHasPrefix ¶
ProviderRefHasPrefix applies the HasPrefix predicate on the "provider_ref" field.
func ProviderRefHasSuffix ¶
ProviderRefHasSuffix applies the HasSuffix predicate on the "provider_ref" field.
func ProviderRefIn ¶
ProviderRefIn applies the In predicate on the "provider_ref" field.
func ProviderRefLT ¶
ProviderRefLT applies the LT predicate on the "provider_ref" field.
func ProviderRefLTE ¶
ProviderRefLTE applies the LTE predicate on the "provider_ref" field.
func ProviderRefNEQ ¶
ProviderRefNEQ applies the NEQ predicate on the "provider_ref" field.
func ProviderRefNotIn ¶
ProviderRefNotIn applies the NotIn predicate on the "provider_ref" field.
func Purpose ¶
Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.
func PurposeContains ¶
PurposeContains applies the Contains predicate on the "purpose" field.
func PurposeContainsFold ¶
PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.
func PurposeEqualFold ¶
PurposeEqualFold applies the EqualFold predicate on the "purpose" field.
func PurposeGTE ¶
PurposeGTE applies the GTE predicate on the "purpose" field.
func PurposeHasPrefix ¶
PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.
func PurposeHasSuffix ¶
PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.
func PurposeLTE ¶
PurposeLTE applies the LTE predicate on the "purpose" field.
func PurposeNEQ ¶
PurposeNEQ applies the NEQ predicate on the "purpose" field.
func PurposeNotIn ¶
PurposeNotIn applies the NotIn predicate on the "purpose" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 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.