settings

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for settings fields.

Functions

func And

func And(predicates ...predicate.Settings) predicate.Settings

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Settings

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Settings

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Settings

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Settings

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Settings

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Settings

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Settings

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Settings

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Settings

IDNotIn applies the NotIn predicate on the ID field.

func KeyAcknowledgedAt

func KeyAcknowledgedAt(v time.Time) predicate.Settings

KeyAcknowledgedAt applies equality check predicate on the "key_acknowledged_at" field. It's identical to KeyAcknowledgedAtEQ.

func KeyAcknowledgedAtEQ

func KeyAcknowledgedAtEQ(v time.Time) predicate.Settings

KeyAcknowledgedAtEQ applies the EQ predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtGT

func KeyAcknowledgedAtGT(v time.Time) predicate.Settings

KeyAcknowledgedAtGT applies the GT predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtGTE

func KeyAcknowledgedAtGTE(v time.Time) predicate.Settings

KeyAcknowledgedAtGTE applies the GTE predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtIn

func KeyAcknowledgedAtIn(vs ...time.Time) predicate.Settings

KeyAcknowledgedAtIn applies the In predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtIsNil

func KeyAcknowledgedAtIsNil() predicate.Settings

KeyAcknowledgedAtIsNil applies the IsNil predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtLT

func KeyAcknowledgedAtLT(v time.Time) predicate.Settings

KeyAcknowledgedAtLT applies the LT predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtLTE

func KeyAcknowledgedAtLTE(v time.Time) predicate.Settings

KeyAcknowledgedAtLTE applies the LTE predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtNEQ

func KeyAcknowledgedAtNEQ(v time.Time) predicate.Settings

KeyAcknowledgedAtNEQ applies the NEQ predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtNotIn

func KeyAcknowledgedAtNotIn(vs ...time.Time) predicate.Settings

KeyAcknowledgedAtNotIn applies the NotIn predicate on the "key_acknowledged_at" field.

func KeyAcknowledgedAtNotNil

func KeyAcknowledgedAtNotNil() predicate.Settings

KeyAcknowledgedAtNotNil applies the NotNil predicate on the "key_acknowledged_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Settings) predicate.Settings

Or groups predicates with the OR operator between them.

func PolicyContains

func PolicyContains(v string) predicate.Settings

PolicyContains applies the Contains predicate on the "policy" field.

func PolicyContainsFold

func PolicyContainsFold(v string) predicate.Settings

PolicyContainsFold applies the ContainsFold predicate on the "policy" field.

func PolicyEQ

func PolicyEQ(v string) predicate.Settings

PolicyEQ applies the EQ predicate on the "policy" field.

func PolicyEqualFold

func PolicyEqualFold(v string) predicate.Settings

PolicyEqualFold applies the EqualFold predicate on the "policy" field.

func PolicyGT

func PolicyGT(v string) predicate.Settings

PolicyGT applies the GT predicate on the "policy" field.

func PolicyGTE

func PolicyGTE(v string) predicate.Settings

PolicyGTE applies the GTE predicate on the "policy" field.

func PolicyHasPrefix

func PolicyHasPrefix(v string) predicate.Settings

PolicyHasPrefix applies the HasPrefix predicate on the "policy" field.

func PolicyHasSuffix

func PolicyHasSuffix(v string) predicate.Settings

PolicyHasSuffix applies the HasSuffix predicate on the "policy" field.

func PolicyIn

func PolicyIn(vs ...string) predicate.Settings

PolicyIn applies the In predicate on the "policy" field.

func PolicyIsNil

func PolicyIsNil() predicate.Settings

PolicyIsNil applies the IsNil predicate on the "policy" field.

func PolicyLT

func PolicyLT(v string) predicate.Settings

PolicyLT applies the LT predicate on the "policy" field.

func PolicyLTE

func PolicyLTE(v string) predicate.Settings

PolicyLTE applies the LTE predicate on the "policy" field.

func PolicyNEQ

func PolicyNEQ(v string) predicate.Settings

PolicyNEQ applies the NEQ predicate on the "policy" field.

func PolicyNotIn

func PolicyNotIn(vs ...string) predicate.Settings

PolicyNotIn applies the NotIn predicate on the "policy" field.

func PolicyNotNil

func PolicyNotNil() predicate.Settings

PolicyNotNil applies the NotNil predicate on the "policy" field.

func PolicySequence

func PolicySequence(v uint64) predicate.Settings

PolicySequence applies equality check predicate on the "policy_sequence" field. It's identical to PolicySequenceEQ.

func PolicySequenceEQ

func PolicySequenceEQ(v uint64) predicate.Settings

PolicySequenceEQ applies the EQ predicate on the "policy_sequence" field.

func PolicySequenceGT

func PolicySequenceGT(v uint64) predicate.Settings

PolicySequenceGT applies the GT predicate on the "policy_sequence" field.

func PolicySequenceGTE

func PolicySequenceGTE(v uint64) predicate.Settings

PolicySequenceGTE applies the GTE predicate on the "policy_sequence" field.

func PolicySequenceIn

func PolicySequenceIn(vs ...uint64) predicate.Settings

PolicySequenceIn applies the In predicate on the "policy_sequence" field.

func PolicySequenceLT

func PolicySequenceLT(v uint64) predicate.Settings

PolicySequenceLT applies the LT predicate on the "policy_sequence" field.

func PolicySequenceLTE

func PolicySequenceLTE(v uint64) predicate.Settings

PolicySequenceLTE applies the LTE predicate on the "policy_sequence" field.

func PolicySequenceNEQ

func PolicySequenceNEQ(v uint64) predicate.Settings

PolicySequenceNEQ applies the NEQ predicate on the "policy_sequence" field.

func PolicySequenceNotIn

func PolicySequenceNotIn(vs ...uint64) predicate.Settings

PolicySequenceNotIn applies the NotIn predicate on the "policy_sequence" field.

func PolicyVersion

func PolicyVersion(v uint32) predicate.Settings

PolicyVersion applies equality check predicate on the "policy_version" field. It's identical to PolicyVersionEQ.

func PolicyVersionEQ

func PolicyVersionEQ(v uint32) predicate.Settings

PolicyVersionEQ applies the EQ predicate on the "policy_version" field.

func PolicyVersionGT

func PolicyVersionGT(v uint32) predicate.Settings

PolicyVersionGT applies the GT predicate on the "policy_version" field.

func PolicyVersionGTE

func PolicyVersionGTE(v uint32) predicate.Settings

PolicyVersionGTE applies the GTE predicate on the "policy_version" field.

func PolicyVersionIn

func PolicyVersionIn(vs ...uint32) predicate.Settings

PolicyVersionIn applies the In predicate on the "policy_version" field.

func PolicyVersionLT

func PolicyVersionLT(v uint32) predicate.Settings

PolicyVersionLT applies the LT predicate on the "policy_version" field.

func PolicyVersionLTE

func PolicyVersionLTE(v uint32) predicate.Settings

PolicyVersionLTE applies the LTE predicate on the "policy_version" field.

func PolicyVersionNEQ

func PolicyVersionNEQ(v uint32) predicate.Settings

PolicyVersionNEQ applies the NEQ predicate on the "policy_version" field.

func PolicyVersionNotIn

func PolicyVersionNotIn(vs ...uint32) predicate.Settings

PolicyVersionNotIn applies the NotIn predicate on the "policy_version" field.

func RetentionPolicy

func RetentionPolicy(v string) predicate.Settings

RetentionPolicy applies equality check predicate on the "retention_policy" field. It's identical to RetentionPolicyEQ.

func RetentionPolicyContains

func RetentionPolicyContains(v string) predicate.Settings

RetentionPolicyContains applies the Contains predicate on the "retention_policy" field.

func RetentionPolicyContainsFold

func RetentionPolicyContainsFold(v string) predicate.Settings

RetentionPolicyContainsFold applies the ContainsFold predicate on the "retention_policy" field.

func RetentionPolicyEQ

func RetentionPolicyEQ(v string) predicate.Settings

RetentionPolicyEQ applies the EQ predicate on the "retention_policy" field.

func RetentionPolicyEqualFold

func RetentionPolicyEqualFold(v string) predicate.Settings

RetentionPolicyEqualFold applies the EqualFold predicate on the "retention_policy" field.

func RetentionPolicyGT

func RetentionPolicyGT(v string) predicate.Settings

RetentionPolicyGT applies the GT predicate on the "retention_policy" field.

func RetentionPolicyGTE

func RetentionPolicyGTE(v string) predicate.Settings

RetentionPolicyGTE applies the GTE predicate on the "retention_policy" field.

func RetentionPolicyHasPrefix

func RetentionPolicyHasPrefix(v string) predicate.Settings

RetentionPolicyHasPrefix applies the HasPrefix predicate on the "retention_policy" field.

func RetentionPolicyHasSuffix

func RetentionPolicyHasSuffix(v string) predicate.Settings

RetentionPolicyHasSuffix applies the HasSuffix predicate on the "retention_policy" field.

func RetentionPolicyIn

func RetentionPolicyIn(vs ...string) predicate.Settings

RetentionPolicyIn applies the In predicate on the "retention_policy" field.

func RetentionPolicyIsNil

func RetentionPolicyIsNil() predicate.Settings

RetentionPolicyIsNil applies the IsNil predicate on the "retention_policy" field.

func RetentionPolicyLT

func RetentionPolicyLT(v string) predicate.Settings

RetentionPolicyLT applies the LT predicate on the "retention_policy" field.

func RetentionPolicyLTE

func RetentionPolicyLTE(v string) predicate.Settings

RetentionPolicyLTE applies the LTE predicate on the "retention_policy" field.

func RetentionPolicyNEQ

func RetentionPolicyNEQ(v string) predicate.Settings

RetentionPolicyNEQ applies the NEQ predicate on the "retention_policy" field.

func RetentionPolicyNotIn

func RetentionPolicyNotIn(vs ...string) predicate.Settings

RetentionPolicyNotIn applies the NotIn predicate on the "retention_policy" field.

func RetentionPolicyNotNil

func RetentionPolicyNotNil() predicate.Settings

RetentionPolicyNotNil applies the NotNil predicate on the "retention_policy" field.

func TrashDays

func TrashDays(v int) predicate.Settings

TrashDays applies equality check predicate on the "trash_days" field. It's identical to TrashDaysEQ.

func TrashDaysEQ

func TrashDaysEQ(v int) predicate.Settings

TrashDaysEQ applies the EQ predicate on the "trash_days" field.

func TrashDaysGT

func TrashDaysGT(v int) predicate.Settings

TrashDaysGT applies the GT predicate on the "trash_days" field.

func TrashDaysGTE

func TrashDaysGTE(v int) predicate.Settings

TrashDaysGTE applies the GTE predicate on the "trash_days" field.

func TrashDaysIn

func TrashDaysIn(vs ...int) predicate.Settings

TrashDaysIn applies the In predicate on the "trash_days" field.

func TrashDaysLT

func TrashDaysLT(v int) predicate.Settings

TrashDaysLT applies the LT predicate on the "trash_days" field.

func TrashDaysLTE

func TrashDaysLTE(v int) predicate.Settings

TrashDaysLTE applies the LTE predicate on the "trash_days" field.

func TrashDaysNEQ

func TrashDaysNEQ(v int) predicate.Settings

TrashDaysNEQ applies the NEQ predicate on the "trash_days" field.

func TrashDaysNotIn

func TrashDaysNotIn(vs ...int) predicate.Settings

TrashDaysNotIn applies the NotIn predicate on the "trash_days" 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 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.

Jump to

Keyboard shortcuts

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