Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Settings) predicate.Settings
- func ID(id int) predicate.Settings
- func IDEQ(id int) predicate.Settings
- func IDGT(id int) predicate.Settings
- func IDGTE(id int) predicate.Settings
- func IDIn(ids ...int) predicate.Settings
- func IDLT(id int) predicate.Settings
- func IDLTE(id int) predicate.Settings
- func IDNEQ(id int) predicate.Settings
- func IDNotIn(ids ...int) predicate.Settings
- func KeyAcknowledgedAt(v time.Time) predicate.Settings
- func KeyAcknowledgedAtEQ(v time.Time) predicate.Settings
- func KeyAcknowledgedAtGT(v time.Time) predicate.Settings
- func KeyAcknowledgedAtGTE(v time.Time) predicate.Settings
- func KeyAcknowledgedAtIn(vs ...time.Time) predicate.Settings
- func KeyAcknowledgedAtIsNil() predicate.Settings
- func KeyAcknowledgedAtLT(v time.Time) predicate.Settings
- func KeyAcknowledgedAtLTE(v time.Time) predicate.Settings
- func KeyAcknowledgedAtNEQ(v time.Time) predicate.Settings
- func KeyAcknowledgedAtNotIn(vs ...time.Time) predicate.Settings
- func KeyAcknowledgedAtNotNil() predicate.Settings
- func Not(p predicate.Settings) predicate.Settings
- func Or(predicates ...predicate.Settings) predicate.Settings
- func PolicyContains(v string) predicate.Settings
- func PolicyContainsFold(v string) predicate.Settings
- func PolicyEQ(v string) predicate.Settings
- func PolicyEqualFold(v string) predicate.Settings
- func PolicyGT(v string) predicate.Settings
- func PolicyGTE(v string) predicate.Settings
- func PolicyHasPrefix(v string) predicate.Settings
- func PolicyHasSuffix(v string) predicate.Settings
- func PolicyIn(vs ...string) predicate.Settings
- func PolicyIsNil() predicate.Settings
- func PolicyLT(v string) predicate.Settings
- func PolicyLTE(v string) predicate.Settings
- func PolicyNEQ(v string) predicate.Settings
- func PolicyNotIn(vs ...string) predicate.Settings
- func PolicyNotNil() predicate.Settings
- func PolicySequence(v uint64) predicate.Settings
- func PolicySequenceEQ(v uint64) predicate.Settings
- func PolicySequenceGT(v uint64) predicate.Settings
- func PolicySequenceGTE(v uint64) predicate.Settings
- func PolicySequenceIn(vs ...uint64) predicate.Settings
- func PolicySequenceLT(v uint64) predicate.Settings
- func PolicySequenceLTE(v uint64) predicate.Settings
- func PolicySequenceNEQ(v uint64) predicate.Settings
- func PolicySequenceNotIn(vs ...uint64) predicate.Settings
- func PolicyVersion(v uint32) predicate.Settings
- func PolicyVersionEQ(v uint32) predicate.Settings
- func PolicyVersionGT(v uint32) predicate.Settings
- func PolicyVersionGTE(v uint32) predicate.Settings
- func PolicyVersionIn(vs ...uint32) predicate.Settings
- func PolicyVersionLT(v uint32) predicate.Settings
- func PolicyVersionLTE(v uint32) predicate.Settings
- func PolicyVersionNEQ(v uint32) predicate.Settings
- func PolicyVersionNotIn(vs ...uint32) predicate.Settings
- func RetentionPolicy(v string) predicate.Settings
- func RetentionPolicyContains(v string) predicate.Settings
- func RetentionPolicyContainsFold(v string) predicate.Settings
- func RetentionPolicyEQ(v string) predicate.Settings
- func RetentionPolicyEqualFold(v string) predicate.Settings
- func RetentionPolicyGT(v string) predicate.Settings
- func RetentionPolicyGTE(v string) predicate.Settings
- func RetentionPolicyHasPrefix(v string) predicate.Settings
- func RetentionPolicyHasSuffix(v string) predicate.Settings
- func RetentionPolicyIn(vs ...string) predicate.Settings
- func RetentionPolicyIsNil() predicate.Settings
- func RetentionPolicyLT(v string) predicate.Settings
- func RetentionPolicyLTE(v string) predicate.Settings
- func RetentionPolicyNEQ(v string) predicate.Settings
- func RetentionPolicyNotIn(vs ...string) predicate.Settings
- func RetentionPolicyNotNil() predicate.Settings
- func TrashDays(v int) predicate.Settings
- func TrashDaysEQ(v int) predicate.Settings
- func TrashDaysGT(v int) predicate.Settings
- func TrashDaysGTE(v int) predicate.Settings
- func TrashDaysIn(vs ...int) predicate.Settings
- func TrashDaysLT(v int) predicate.Settings
- func TrashDaysLTE(v int) predicate.Settings
- func TrashDaysNEQ(v int) predicate.Settings
- func TrashDaysNotIn(vs ...int) predicate.Settings
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKeyAcknowledgedAt(opts ...sql.OrderTermOption) OrderOption
- func ByPolicy(opts ...sql.OrderTermOption) OrderOption
- func ByPolicySequence(opts ...sql.OrderTermOption) OrderOption
- func ByPolicyVersion(opts ...sql.OrderTermOption) OrderOption
- func ByRetentionPolicy(opts ...sql.OrderTermOption) OrderOption
- func ByTrashDays(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the settings type in the database. Label = "settings" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPolicy holds the string denoting the policy field in the database. FieldPolicy = "policy" // FieldPolicyVersion holds the string denoting the policy_version field in the database. FieldPolicyVersion = "policy_version" // FieldKeyAcknowledgedAt holds the string denoting the key_acknowledged_at field in the database. FieldKeyAcknowledgedAt = "key_acknowledged_at" // FieldRetentionPolicy holds the string denoting the retention_policy field in the database. FieldRetentionPolicy = "retention_policy" // FieldTrashDays holds the string denoting the trash_days field in the database. FieldTrashDays = "trash_days" // FieldPolicySequence holds the string denoting the policy_sequence field in the database. FieldPolicySequence = "policy_sequence" // Table holds the table name of the settings in the database. Table = "settings" )
Variables ¶
var ( // DefaultPolicyVersion holds the default value on creation for the "policy_version" field. DefaultPolicyVersion uint32 // DefaultTrashDays holds the default value on creation for the "trash_days" field. DefaultTrashDays int // DefaultPolicySequence holds the default value on creation for the "policy_sequence" field. DefaultPolicySequence uint64 )
var Columns = []string{ FieldID, FieldPolicy, FieldPolicyVersion, FieldKeyAcknowledgedAt, FieldRetentionPolicy, FieldTrashDays, FieldPolicySequence, }
Columns holds all SQL columns for settings fields.
Functions ¶
func KeyAcknowledgedAt ¶
KeyAcknowledgedAt applies equality check predicate on the "key_acknowledged_at" field. It's identical to KeyAcknowledgedAtEQ.
func KeyAcknowledgedAtEQ ¶
KeyAcknowledgedAtEQ applies the EQ predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtGT ¶
KeyAcknowledgedAtGT applies the GT predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtGTE ¶
KeyAcknowledgedAtGTE applies the GTE predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtIn ¶
KeyAcknowledgedAtIn applies the In predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtIsNil ¶
KeyAcknowledgedAtIsNil applies the IsNil predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtLT ¶
KeyAcknowledgedAtLT applies the LT predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtLTE ¶
KeyAcknowledgedAtLTE applies the LTE predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtNEQ ¶
KeyAcknowledgedAtNEQ applies the NEQ predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtNotIn ¶
KeyAcknowledgedAtNotIn applies the NotIn predicate on the "key_acknowledged_at" field.
func KeyAcknowledgedAtNotNil ¶
KeyAcknowledgedAtNotNil applies the NotNil predicate on the "key_acknowledged_at" field.
func PolicyContains ¶
PolicyContains applies the Contains predicate on the "policy" field.
func PolicyContainsFold ¶
PolicyContainsFold applies the ContainsFold predicate on the "policy" field.
func PolicyEqualFold ¶
PolicyEqualFold applies the EqualFold predicate on the "policy" field.
func PolicyHasPrefix ¶
PolicyHasPrefix applies the HasPrefix predicate on the "policy" field.
func PolicyHasSuffix ¶
PolicyHasSuffix applies the HasSuffix predicate on the "policy" field.
func PolicyIsNil ¶
PolicyIsNil applies the IsNil predicate on the "policy" field.
func PolicyNotIn ¶
PolicyNotIn applies the NotIn predicate on the "policy" field.
func PolicyNotNil ¶
PolicyNotNil applies the NotNil predicate on the "policy" field.
func PolicySequence ¶
PolicySequence applies equality check predicate on the "policy_sequence" field. It's identical to PolicySequenceEQ.
func PolicySequenceEQ ¶
PolicySequenceEQ applies the EQ predicate on the "policy_sequence" field.
func PolicySequenceGT ¶
PolicySequenceGT applies the GT predicate on the "policy_sequence" field.
func PolicySequenceGTE ¶
PolicySequenceGTE applies the GTE predicate on the "policy_sequence" field.
func PolicySequenceIn ¶
PolicySequenceIn applies the In predicate on the "policy_sequence" field.
func PolicySequenceLT ¶
PolicySequenceLT applies the LT predicate on the "policy_sequence" field.
func PolicySequenceLTE ¶
PolicySequenceLTE applies the LTE predicate on the "policy_sequence" field.
func PolicySequenceNEQ ¶
PolicySequenceNEQ applies the NEQ predicate on the "policy_sequence" field.
func PolicySequenceNotIn ¶
PolicySequenceNotIn applies the NotIn predicate on the "policy_sequence" field.
func PolicyVersion ¶
PolicyVersion applies equality check predicate on the "policy_version" field. It's identical to PolicyVersionEQ.
func PolicyVersionEQ ¶
PolicyVersionEQ applies the EQ predicate on the "policy_version" field.
func PolicyVersionGT ¶
PolicyVersionGT applies the GT predicate on the "policy_version" field.
func PolicyVersionGTE ¶
PolicyVersionGTE applies the GTE predicate on the "policy_version" field.
func PolicyVersionIn ¶
PolicyVersionIn applies the In predicate on the "policy_version" field.
func PolicyVersionLT ¶
PolicyVersionLT applies the LT predicate on the "policy_version" field.
func PolicyVersionLTE ¶
PolicyVersionLTE applies the LTE predicate on the "policy_version" field.
func PolicyVersionNEQ ¶
PolicyVersionNEQ applies the NEQ predicate on the "policy_version" field.
func PolicyVersionNotIn ¶
PolicyVersionNotIn applies the NotIn predicate on the "policy_version" field.
func RetentionPolicy ¶
RetentionPolicy applies equality check predicate on the "retention_policy" field. It's identical to RetentionPolicyEQ.
func RetentionPolicyContains ¶
RetentionPolicyContains applies the Contains predicate on the "retention_policy" field.
func RetentionPolicyContainsFold ¶
RetentionPolicyContainsFold applies the ContainsFold predicate on the "retention_policy" field.
func RetentionPolicyEQ ¶
RetentionPolicyEQ applies the EQ predicate on the "retention_policy" field.
func RetentionPolicyEqualFold ¶
RetentionPolicyEqualFold applies the EqualFold predicate on the "retention_policy" field.
func RetentionPolicyGT ¶
RetentionPolicyGT applies the GT predicate on the "retention_policy" field.
func RetentionPolicyGTE ¶
RetentionPolicyGTE applies the GTE predicate on the "retention_policy" field.
func RetentionPolicyHasPrefix ¶
RetentionPolicyHasPrefix applies the HasPrefix predicate on the "retention_policy" field.
func RetentionPolicyHasSuffix ¶
RetentionPolicyHasSuffix applies the HasSuffix predicate on the "retention_policy" field.
func RetentionPolicyIn ¶
RetentionPolicyIn applies the In predicate on the "retention_policy" field.
func RetentionPolicyIsNil ¶
RetentionPolicyIsNil applies the IsNil predicate on the "retention_policy" field.
func RetentionPolicyLT ¶
RetentionPolicyLT applies the LT predicate on the "retention_policy" field.
func RetentionPolicyLTE ¶
RetentionPolicyLTE applies the LTE predicate on the "retention_policy" field.
func RetentionPolicyNEQ ¶
RetentionPolicyNEQ applies the NEQ predicate on the "retention_policy" field.
func RetentionPolicyNotIn ¶
RetentionPolicyNotIn applies the NotIn predicate on the "retention_policy" field.
func RetentionPolicyNotNil ¶
RetentionPolicyNotNil applies the NotNil predicate on the "retention_policy" field.
func TrashDays ¶
TrashDays applies equality check predicate on the "trash_days" field. It's identical to TrashDaysEQ.
func TrashDaysEQ ¶
TrashDaysEQ applies the EQ predicate on the "trash_days" field.
func TrashDaysGT ¶
TrashDaysGT applies the GT predicate on the "trash_days" field.
func TrashDaysGTE ¶
TrashDaysGTE applies the GTE predicate on the "trash_days" field.
func TrashDaysIn ¶
TrashDaysIn applies the In predicate on the "trash_days" field.
func TrashDaysLT ¶
TrashDaysLT applies the LT predicate on the "trash_days" field.
func TrashDaysLTE ¶
TrashDaysLTE applies the LTE predicate on the "trash_days" field.
func TrashDaysNEQ ¶
TrashDaysNEQ applies the NEQ predicate on the "trash_days" field.
func TrashDaysNotIn ¶
TrashDaysNotIn applies the NotIn predicate on the "trash_days" 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 Settings queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKeyAcknowledgedAt ¶
func ByKeyAcknowledgedAt(opts ...sql.OrderTermOption) OrderOption
ByKeyAcknowledgedAt orders the results by the key_acknowledged_at field.
func ByPolicy ¶
func ByPolicy(opts ...sql.OrderTermOption) OrderOption
ByPolicy orders the results by the policy field.
func ByPolicySequence ¶
func ByPolicySequence(opts ...sql.OrderTermOption) OrderOption
ByPolicySequence orders the results by the policy_sequence field.
func ByPolicyVersion ¶
func ByPolicyVersion(opts ...sql.OrderTermOption) OrderOption
ByPolicyVersion orders the results by the policy_version field.
func ByRetentionPolicy ¶
func ByRetentionPolicy(opts ...sql.OrderTermOption) OrderOption
ByRetentionPolicy orders the results by the retention_policy field.
func ByTrashDays ¶
func ByTrashDays(opts ...sql.OrderTermOption) OrderOption
ByTrashDays orders the results by the trash_days field.