Documentation
¶
Index ¶
- Constants
- Variables
- func Algorithm(v uint8) predicate.DataKey
- func AlgorithmEQ(v uint8) predicate.DataKey
- func AlgorithmGT(v uint8) predicate.DataKey
- func AlgorithmGTE(v uint8) predicate.DataKey
- func AlgorithmIn(vs ...uint8) predicate.DataKey
- func AlgorithmLT(v uint8) predicate.DataKey
- func AlgorithmLTE(v uint8) predicate.DataKey
- func AlgorithmNEQ(v uint8) predicate.DataKey
- func AlgorithmNotIn(vs ...uint8) predicate.DataKey
- func And(predicates ...predicate.DataKey) predicate.DataKey
- func CreatedAt(v time.Time) predicate.DataKey
- func CreatedAtEQ(v time.Time) predicate.DataKey
- func CreatedAtGT(v time.Time) predicate.DataKey
- func CreatedAtGTE(v time.Time) predicate.DataKey
- func CreatedAtIn(vs ...time.Time) predicate.DataKey
- func CreatedAtLT(v time.Time) predicate.DataKey
- func CreatedAtLTE(v time.Time) predicate.DataKey
- func CreatedAtNEQ(v time.Time) predicate.DataKey
- func CreatedAtNotIn(vs ...time.Time) predicate.DataKey
- func Epoch(v uint32) predicate.DataKey
- func EpochEQ(v uint32) predicate.DataKey
- func EpochGT(v uint32) predicate.DataKey
- func EpochGTE(v uint32) predicate.DataKey
- func EpochIn(vs ...uint32) predicate.DataKey
- func EpochLT(v uint32) predicate.DataKey
- func EpochLTE(v uint32) predicate.DataKey
- func EpochNEQ(v uint32) predicate.DataKey
- func EpochNotIn(vs ...uint32) predicate.DataKey
- func HasKek() predicate.DataKey
- func HasKekWith(preds ...predicate.KEK) predicate.DataKey
- func ID(id envelope.ID) predicate.DataKey
- func IDEQ(id envelope.ID) predicate.DataKey
- func IDGT(id envelope.ID) predicate.DataKey
- func IDGTE(id envelope.ID) predicate.DataKey
- func IDIn(ids ...envelope.ID) predicate.DataKey
- func IDLT(id envelope.ID) predicate.DataKey
- func IDLTE(id envelope.ID) predicate.DataKey
- func IDNEQ(id envelope.ID) predicate.DataKey
- func IDNotIn(ids ...envelope.ID) predicate.DataKey
- func IsCurrent(v bool) predicate.DataKey
- func IsCurrentEQ(v bool) predicate.DataKey
- func IsCurrentNEQ(v bool) predicate.DataKey
- func KekID(v envelope.ID) predicate.DataKey
- func KekIDEQ(v envelope.ID) predicate.DataKey
- func KekIDIn(vs ...envelope.ID) predicate.DataKey
- func KekIDNEQ(v envelope.ID) predicate.DataKey
- func KekIDNotIn(vs ...envelope.ID) predicate.DataKey
- func KekVersion(v uint32) predicate.DataKey
- func KekVersionEQ(v uint32) predicate.DataKey
- func KekVersionGT(v uint32) predicate.DataKey
- func KekVersionGTE(v uint32) predicate.DataKey
- func KekVersionIn(vs ...uint32) predicate.DataKey
- func KekVersionLT(v uint32) predicate.DataKey
- func KekVersionLTE(v uint32) predicate.DataKey
- func KekVersionNEQ(v uint32) predicate.DataKey
- func KekVersionNotIn(vs ...uint32) predicate.DataKey
- func Not(p predicate.DataKey) predicate.DataKey
- func Or(predicates ...predicate.DataKey) predicate.DataKey
- func Purpose(v string) predicate.DataKey
- func PurposeContains(v string) predicate.DataKey
- func PurposeContainsFold(v string) predicate.DataKey
- func PurposeEQ(v string) predicate.DataKey
- func PurposeEqualFold(v string) predicate.DataKey
- func PurposeGT(v string) predicate.DataKey
- func PurposeGTE(v string) predicate.DataKey
- func PurposeHasPrefix(v string) predicate.DataKey
- func PurposeHasSuffix(v string) predicate.DataKey
- func PurposeIn(vs ...string) predicate.DataKey
- func PurposeLT(v string) predicate.DataKey
- func PurposeLTE(v string) predicate.DataKey
- func PurposeNEQ(v string) predicate.DataKey
- func PurposeNotIn(vs ...string) predicate.DataKey
- func Reserved(v uint64) predicate.DataKey
- func ReservedEQ(v uint64) predicate.DataKey
- func ReservedGT(v uint64) predicate.DataKey
- func ReservedGTE(v uint64) predicate.DataKey
- func ReservedIn(vs ...uint64) predicate.DataKey
- func ReservedLT(v uint64) predicate.DataKey
- func ReservedLTE(v uint64) predicate.DataKey
- func ReservedNEQ(v uint64) predicate.DataKey
- func ReservedNotIn(vs ...uint64) predicate.DataKey
- func State(v uint8) predicate.DataKey
- func StateEQ(v uint8) predicate.DataKey
- func StateGT(v uint8) predicate.DataKey
- func StateGTE(v uint8) predicate.DataKey
- func StateIn(vs ...uint8) predicate.DataKey
- func StateLT(v uint8) predicate.DataKey
- func StateLTE(v uint8) predicate.DataKey
- func StateNEQ(v uint8) predicate.DataKey
- func StateNotIn(vs ...uint8) predicate.DataKey
- func Subject(v string) predicate.DataKey
- func SubjectContains(v string) predicate.DataKey
- func SubjectContainsFold(v string) predicate.DataKey
- func SubjectEQ(v string) predicate.DataKey
- func SubjectEqualFold(v string) predicate.DataKey
- func SubjectGT(v string) predicate.DataKey
- func SubjectGTE(v string) predicate.DataKey
- func SubjectHasPrefix(v string) predicate.DataKey
- func SubjectHasSuffix(v string) predicate.DataKey
- func SubjectIn(vs ...string) predicate.DataKey
- func SubjectLT(v string) predicate.DataKey
- func SubjectLTE(v string) predicate.DataKey
- func SubjectNEQ(v string) predicate.DataKey
- func SubjectNotIn(vs ...string) predicate.DataKey
- func ValidColumn(column string) bool
- func Wrapped(v []byte) predicate.DataKey
- func WrappedEQ(v []byte) predicate.DataKey
- func WrappedGT(v []byte) predicate.DataKey
- func WrappedGTE(v []byte) predicate.DataKey
- func WrappedIn(vs ...[]byte) predicate.DataKey
- func WrappedIsNil() predicate.DataKey
- func WrappedLT(v []byte) predicate.DataKey
- func WrappedLTE(v []byte) predicate.DataKey
- func WrappedNEQ(v []byte) predicate.DataKey
- func WrappedNotIn(vs ...[]byte) predicate.DataKey
- func WrappedNotNil() predicate.DataKey
- type OrderOption
- func ByAlgorithm(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEpoch(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsCurrent(opts ...sql.OrderTermOption) OrderOption
- func ByKekField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByKekID(opts ...sql.OrderTermOption) OrderOption
- func ByKekVersion(opts ...sql.OrderTermOption) OrderOption
- func ByPurpose(opts ...sql.OrderTermOption) OrderOption
- func ByReserved(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func BySubject(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the datakey type in the database. Label = "data_key" // 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" // FieldSubject holds the string denoting the subject field in the database. FieldSubject = "subject" // FieldEpoch holds the string denoting the epoch field in the database. FieldEpoch = "epoch" // FieldAlgorithm holds the string denoting the algorithm field in the database. FieldAlgorithm = "algorithm" // FieldKekID holds the string denoting the kek_id field in the database. FieldKekID = "kek_id" // FieldKekVersion holds the string denoting the kek_version field in the database. FieldKekVersion = "kek_version" // FieldWrapped holds the string denoting the wrapped field in the database. FieldWrapped = "wrapped" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldReserved holds the string denoting the reserved field in the database. FieldReserved = "reserved" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldWrappedUnder holds the string denoting the wrapped_under field in the database. FieldWrappedUnder = "wrapped_under" // FieldIsCurrent holds the string denoting the is_current field in the database. FieldIsCurrent = "is_current" // EdgeKek holds the string denoting the kek edge name in mutations. EdgeKek = "kek" // Table holds the table name of the datakey in the database. Table = "data_keys" // KekTable is the table that holds the kek relation/edge. KekTable = "data_keys" // KekInverseTable is the table name for the KEK entity. // It exists in this package in order to avoid circular dependency with the "kek" package. KekInverseTable = "ke_ks" // KekColumn is the table column denoting the kek relation/edge. KekColumn = "kek_id" )
Variables ¶
var ( // PurposeValidator is a validator for the "purpose" field. It is called by the builders before save. PurposeValidator func(string) error // DefaultSubject holds the default value on creation for the "subject" field. DefaultSubject string // DefaultReserved holds the default value on creation for the "reserved" field. DefaultReserved uint64 // DefaultIsCurrent holds the default value on creation for the "is_current" field. DefaultIsCurrent bool )
var Columns = []string{ FieldID, FieldPurpose, FieldSubject, FieldEpoch, FieldAlgorithm, FieldKekID, FieldKekVersion, FieldWrapped, FieldState, FieldReserved, FieldCreatedAt, FieldWrappedUnder, FieldIsCurrent, }
Columns holds all SQL columns for datakey fields.
Functions ¶
func Algorithm ¶
Algorithm applies equality check predicate on the "algorithm" field. It's identical to AlgorithmEQ.
func AlgorithmEQ ¶
AlgorithmEQ applies the EQ predicate on the "algorithm" field.
func AlgorithmGT ¶
AlgorithmGT applies the GT predicate on the "algorithm" field.
func AlgorithmGTE ¶
AlgorithmGTE applies the GTE predicate on the "algorithm" field.
func AlgorithmIn ¶
AlgorithmIn applies the In predicate on the "algorithm" field.
func AlgorithmLT ¶
AlgorithmLT applies the LT predicate on the "algorithm" field.
func AlgorithmLTE ¶
AlgorithmLTE applies the LTE predicate on the "algorithm" field.
func AlgorithmNEQ ¶
AlgorithmNEQ applies the NEQ predicate on the "algorithm" field.
func AlgorithmNotIn ¶
AlgorithmNotIn applies the NotIn predicate on the "algorithm" field.
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 Epoch ¶
Epoch applies equality check predicate on the "epoch" field. It's identical to EpochEQ.
func EpochNotIn ¶
EpochNotIn applies the NotIn predicate on the "epoch" field.
func HasKekWith ¶
HasKekWith applies the HasEdge predicate on the "kek" edge with a given conditions (other predicates).
func IsCurrent ¶
IsCurrent applies equality check predicate on the "is_current" field. It's identical to IsCurrentEQ.
func IsCurrentEQ ¶
IsCurrentEQ applies the EQ predicate on the "is_current" field.
func IsCurrentNEQ ¶
IsCurrentNEQ applies the NEQ predicate on the "is_current" field.
func KekID ¶
KekID applies equality check predicate on the "kek_id" field. It's identical to KekIDEQ.
func KekIDNotIn ¶
KekIDNotIn applies the NotIn predicate on the "kek_id" field.
func KekVersion ¶
KekVersion applies equality check predicate on the "kek_version" field. It's identical to KekVersionEQ.
func KekVersionEQ ¶
KekVersionEQ applies the EQ predicate on the "kek_version" field.
func KekVersionGT ¶
KekVersionGT applies the GT predicate on the "kek_version" field.
func KekVersionGTE ¶
KekVersionGTE applies the GTE predicate on the "kek_version" field.
func KekVersionIn ¶
KekVersionIn applies the In predicate on the "kek_version" field.
func KekVersionLT ¶
KekVersionLT applies the LT predicate on the "kek_version" field.
func KekVersionLTE ¶
KekVersionLTE applies the LTE predicate on the "kek_version" field.
func KekVersionNEQ ¶
KekVersionNEQ applies the NEQ predicate on the "kek_version" field.
func KekVersionNotIn ¶
KekVersionNotIn applies the NotIn predicate on the "kek_version" 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 Reserved ¶
Reserved applies equality check predicate on the "reserved" field. It's identical to ReservedEQ.
func ReservedEQ ¶
ReservedEQ applies the EQ predicate on the "reserved" field.
func ReservedGT ¶
ReservedGT applies the GT predicate on the "reserved" field.
func ReservedGTE ¶
ReservedGTE applies the GTE predicate on the "reserved" field.
func ReservedIn ¶
ReservedIn applies the In predicate on the "reserved" field.
func ReservedLT ¶
ReservedLT applies the LT predicate on the "reserved" field.
func ReservedLTE ¶
ReservedLTE applies the LTE predicate on the "reserved" field.
func ReservedNEQ ¶
ReservedNEQ applies the NEQ predicate on the "reserved" field.
func ReservedNotIn ¶
ReservedNotIn applies the NotIn predicate on the "reserved" 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 Subject ¶
Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.
func SubjectContains ¶
SubjectContains applies the Contains predicate on the "subject" field.
func SubjectContainsFold ¶
SubjectContainsFold applies the ContainsFold predicate on the "subject" field.
func SubjectEqualFold ¶
SubjectEqualFold applies the EqualFold predicate on the "subject" field.
func SubjectGTE ¶
SubjectGTE applies the GTE predicate on the "subject" field.
func SubjectHasPrefix ¶
SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.
func SubjectHasSuffix ¶
SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.
func SubjectLTE ¶
SubjectLTE applies the LTE predicate on the "subject" field.
func SubjectNEQ ¶
SubjectNEQ applies the NEQ predicate on the "subject" field.
func SubjectNotIn ¶
SubjectNotIn applies the NotIn predicate on the "subject" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Wrapped ¶
Wrapped applies equality check predicate on the "wrapped" field. It's identical to WrappedEQ.
func WrappedGTE ¶
WrappedGTE applies the GTE predicate on the "wrapped" field.
func WrappedIsNil ¶
WrappedIsNil applies the IsNil predicate on the "wrapped" field.
func WrappedLTE ¶
WrappedLTE applies the LTE predicate on the "wrapped" field.
func WrappedNEQ ¶
WrappedNEQ applies the NEQ predicate on the "wrapped" field.
func WrappedNotIn ¶
WrappedNotIn applies the NotIn predicate on the "wrapped" field.
func WrappedNotNil ¶
WrappedNotNil applies the NotNil predicate on the "wrapped" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the DataKey queries.
func ByAlgorithm ¶
func ByAlgorithm(opts ...sql.OrderTermOption) OrderOption
ByAlgorithm orders the results by the algorithm field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEpoch ¶
func ByEpoch(opts ...sql.OrderTermOption) OrderOption
ByEpoch orders the results by the epoch field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsCurrent ¶
func ByIsCurrent(opts ...sql.OrderTermOption) OrderOption
ByIsCurrent orders the results by the is_current field.
func ByKekField ¶
func ByKekField(field string, opts ...sql.OrderTermOption) OrderOption
ByKekField orders the results by kek field.
func ByKekID ¶
func ByKekID(opts ...sql.OrderTermOption) OrderOption
ByKekID orders the results by the kek_id field.
func ByKekVersion ¶
func ByKekVersion(opts ...sql.OrderTermOption) OrderOption
ByKekVersion orders the results by the kek_version field.
func ByPurpose ¶
func ByPurpose(opts ...sql.OrderTermOption) OrderOption
ByPurpose orders the results by the purpose field.
func ByReserved ¶
func ByReserved(opts ...sql.OrderTermOption) OrderOption
ByReserved orders the results by the reserved field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func BySubject ¶
func BySubject(opts ...sql.OrderTermOption) OrderOption
BySubject orders the results by the subject field.