Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Mirror) predicate.Mirror
- func Commit(v string) predicate.Mirror
- func CommitContains(v string) predicate.Mirror
- func CommitContainsFold(v string) predicate.Mirror
- func CommitEQ(v string) predicate.Mirror
- func CommitEqualFold(v string) predicate.Mirror
- func CommitGT(v string) predicate.Mirror
- func CommitGTE(v string) predicate.Mirror
- func CommitHasPrefix(v string) predicate.Mirror
- func CommitHasSuffix(v string) predicate.Mirror
- func CommitIn(vs ...string) predicate.Mirror
- func CommitLT(v string) predicate.Mirror
- func CommitLTE(v string) predicate.Mirror
- func CommitNEQ(v string) predicate.Mirror
- func CommitNotIn(vs ...string) predicate.Mirror
- func Cron(v string) predicate.Mirror
- func CronContains(v string) predicate.Mirror
- func CronContainsFold(v string) predicate.Mirror
- func CronEQ(v string) predicate.Mirror
- func CronEqualFold(v string) predicate.Mirror
- func CronGT(v string) predicate.Mirror
- func CronGTE(v string) predicate.Mirror
- func CronHasPrefix(v string) predicate.Mirror
- func CronHasSuffix(v string) predicate.Mirror
- func CronIn(vs ...string) predicate.Mirror
- func CronLT(v string) predicate.Mirror
- func CronLTE(v string) predicate.Mirror
- func CronNEQ(v string) predicate.Mirror
- func CronNotIn(vs ...string) predicate.Mirror
- func HasActivities() predicate.Mirror
- func HasActivitiesWith(preds ...predicate.MirrorActivity) predicate.Mirror
- func HasInode() predicate.Mirror
- func HasInodeWith(preds ...predicate.Inode) predicate.Mirror
- func HasNamespace() predicate.Mirror
- func HasNamespaceWith(preds ...predicate.Namespace) predicate.Mirror
- func ID(id uuid.UUID) predicate.Mirror
- func IDEQ(id uuid.UUID) predicate.Mirror
- func IDGT(id uuid.UUID) predicate.Mirror
- func IDGTE(id uuid.UUID) predicate.Mirror
- func IDIn(ids ...uuid.UUID) predicate.Mirror
- func IDLT(id uuid.UUID) predicate.Mirror
- func IDLTE(id uuid.UUID) predicate.Mirror
- func IDNEQ(id uuid.UUID) predicate.Mirror
- func IDNotIn(ids ...uuid.UUID) predicate.Mirror
- func LastSync(v time.Time) predicate.Mirror
- func LastSyncEQ(v time.Time) predicate.Mirror
- func LastSyncGT(v time.Time) predicate.Mirror
- func LastSyncGTE(v time.Time) predicate.Mirror
- func LastSyncIn(vs ...time.Time) predicate.Mirror
- func LastSyncIsNil() predicate.Mirror
- func LastSyncLT(v time.Time) predicate.Mirror
- func LastSyncLTE(v time.Time) predicate.Mirror
- func LastSyncNEQ(v time.Time) predicate.Mirror
- func LastSyncNotIn(vs ...time.Time) predicate.Mirror
- func LastSyncNotNil() predicate.Mirror
- func Not(p predicate.Mirror) predicate.Mirror
- func Or(predicates ...predicate.Mirror) predicate.Mirror
- func Passphrase(v string) predicate.Mirror
- func PassphraseContains(v string) predicate.Mirror
- func PassphraseContainsFold(v string) predicate.Mirror
- func PassphraseEQ(v string) predicate.Mirror
- func PassphraseEqualFold(v string) predicate.Mirror
- func PassphraseGT(v string) predicate.Mirror
- func PassphraseGTE(v string) predicate.Mirror
- func PassphraseHasPrefix(v string) predicate.Mirror
- func PassphraseHasSuffix(v string) predicate.Mirror
- func PassphraseIn(vs ...string) predicate.Mirror
- func PassphraseLT(v string) predicate.Mirror
- func PassphraseLTE(v string) predicate.Mirror
- func PassphraseNEQ(v string) predicate.Mirror
- func PassphraseNotIn(vs ...string) predicate.Mirror
- func PrivateKey(v string) predicate.Mirror
- func PrivateKeyContains(v string) predicate.Mirror
- func PrivateKeyContainsFold(v string) predicate.Mirror
- func PrivateKeyEQ(v string) predicate.Mirror
- func PrivateKeyEqualFold(v string) predicate.Mirror
- func PrivateKeyGT(v string) predicate.Mirror
- func PrivateKeyGTE(v string) predicate.Mirror
- func PrivateKeyHasPrefix(v string) predicate.Mirror
- func PrivateKeyHasSuffix(v string) predicate.Mirror
- func PrivateKeyIn(vs ...string) predicate.Mirror
- func PrivateKeyLT(v string) predicate.Mirror
- func PrivateKeyLTE(v string) predicate.Mirror
- func PrivateKeyNEQ(v string) predicate.Mirror
- func PrivateKeyNotIn(vs ...string) predicate.Mirror
- func PublicKey(v string) predicate.Mirror
- func PublicKeyContains(v string) predicate.Mirror
- func PublicKeyContainsFold(v string) predicate.Mirror
- func PublicKeyEQ(v string) predicate.Mirror
- func PublicKeyEqualFold(v string) predicate.Mirror
- func PublicKeyGT(v string) predicate.Mirror
- func PublicKeyGTE(v string) predicate.Mirror
- func PublicKeyHasPrefix(v string) predicate.Mirror
- func PublicKeyHasSuffix(v string) predicate.Mirror
- func PublicKeyIn(vs ...string) predicate.Mirror
- func PublicKeyLT(v string) predicate.Mirror
- func PublicKeyLTE(v string) predicate.Mirror
- func PublicKeyNEQ(v string) predicate.Mirror
- func PublicKeyNotIn(vs ...string) predicate.Mirror
- func Ref(v string) predicate.Mirror
- func RefContains(v string) predicate.Mirror
- func RefContainsFold(v string) predicate.Mirror
- func RefEQ(v string) predicate.Mirror
- func RefEqualFold(v string) predicate.Mirror
- func RefGT(v string) predicate.Mirror
- func RefGTE(v string) predicate.Mirror
- func RefHasPrefix(v string) predicate.Mirror
- func RefHasSuffix(v string) predicate.Mirror
- func RefIn(vs ...string) predicate.Mirror
- func RefLT(v string) predicate.Mirror
- func RefLTE(v string) predicate.Mirror
- func RefNEQ(v string) predicate.Mirror
- func RefNotIn(vs ...string) predicate.Mirror
- func URL(v string) predicate.Mirror
- func URLContains(v string) predicate.Mirror
- func URLContainsFold(v string) predicate.Mirror
- func URLEQ(v string) predicate.Mirror
- func URLEqualFold(v string) predicate.Mirror
- func URLGT(v string) predicate.Mirror
- func URLGTE(v string) predicate.Mirror
- func URLHasPrefix(v string) predicate.Mirror
- func URLHasSuffix(v string) predicate.Mirror
- func URLIn(vs ...string) predicate.Mirror
- func URLLT(v string) predicate.Mirror
- func URLLTE(v string) predicate.Mirror
- func URLNEQ(v string) predicate.Mirror
- func URLNotIn(vs ...string) predicate.Mirror
- func UpdatedAt(v time.Time) predicate.Mirror
- func UpdatedAtEQ(v time.Time) predicate.Mirror
- func UpdatedAtGT(v time.Time) predicate.Mirror
- func UpdatedAtGTE(v time.Time) predicate.Mirror
- func UpdatedAtIn(vs ...time.Time) predicate.Mirror
- func UpdatedAtIsNil() predicate.Mirror
- func UpdatedAtLT(v time.Time) predicate.Mirror
- func UpdatedAtLTE(v time.Time) predicate.Mirror
- func UpdatedAtNEQ(v time.Time) predicate.Mirror
- func UpdatedAtNotIn(vs ...time.Time) predicate.Mirror
- func UpdatedAtNotNil() predicate.Mirror
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the mirror type in the database. Label = "mirror" // FieldID holds the string denoting the id field in the database. FieldID = "oid" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldRef holds the string denoting the ref field in the database. FieldRef = "ref" // FieldCron holds the string denoting the cron field in the database. FieldCron = "cron" // FieldPublicKey holds the string denoting the public_key field in the database. FieldPublicKey = "public_key" // FieldPrivateKey holds the string denoting the private_key field in the database. FieldPrivateKey = "private_key" // FieldPassphrase holds the string denoting the passphrase field in the database. FieldPassphrase = "passphrase" // FieldCommit holds the string denoting the commit field in the database. FieldCommit = "commit" // FieldLastSync holds the string denoting the last_sync field in the database. FieldLastSync = "last_sync" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeNamespace holds the string denoting the namespace edge name in mutations. EdgeNamespace = "namespace" // EdgeInode holds the string denoting the inode edge name in mutations. EdgeInode = "inode" // EdgeActivities holds the string denoting the activities edge name in mutations. EdgeActivities = "activities" // Table holds the table name of the mirror in the database. Table = "mirrors" // NamespaceTable is the table that holds the namespace relation/edge. NamespaceTable = "mirrors" // NamespaceInverseTable is the table name for the Namespace entity. // It exists in this package in order to avoid circular dependency with the "namespace" package. NamespaceInverseTable = "namespaces" // NamespaceColumn is the table column denoting the namespace relation/edge. NamespaceColumn = "namespace_mirrors" // InodeTable is the table that holds the inode relation/edge. InodeTable = "mirrors" // InodeInverseTable is the table name for the Inode entity. // It exists in this package in order to avoid circular dependency with the "inode" package. InodeInverseTable = "inodes" // InodeColumn is the table column denoting the inode relation/edge. InodeColumn = "inode_mirror" // ActivitiesTable is the table that holds the activities relation/edge. ActivitiesTable = "mirror_activities" // ActivitiesInverseTable is the table name for the MirrorActivity entity. // It exists in this package in order to avoid circular dependency with the "mirroractivity" package. ActivitiesInverseTable = "mirror_activities" // ActivitiesColumn is the table column denoting the activities relation/edge. ActivitiesColumn = "mirror_activities" )
Variables ¶
var ( // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldURL, FieldRef, FieldCron, FieldPublicKey, FieldPrivateKey, FieldPassphrase, FieldCommit, FieldLastSync, FieldUpdatedAt, }
Columns holds all SQL columns for mirror fields.
var ForeignKeys = []string{
"inode_mirror",
"namespace_mirrors",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "mirrors" table and are not defined as standalone fields in the schema.
Functions ¶
func Commit ¶
Commit applies equality check predicate on the "commit" field. It's identical to CommitEQ.
func CommitContains ¶
CommitContains applies the Contains predicate on the "commit" field.
func CommitContainsFold ¶
CommitContainsFold applies the ContainsFold predicate on the "commit" field.
func CommitEqualFold ¶
CommitEqualFold applies the EqualFold predicate on the "commit" field.
func CommitHasPrefix ¶
CommitHasPrefix applies the HasPrefix predicate on the "commit" field.
func CommitHasSuffix ¶
CommitHasSuffix applies the HasSuffix predicate on the "commit" field.
func CommitNotIn ¶
CommitNotIn applies the NotIn predicate on the "commit" field.
func CronContains ¶
CronContains applies the Contains predicate on the "cron" field.
func CronContainsFold ¶
CronContainsFold applies the ContainsFold predicate on the "cron" field.
func CronEqualFold ¶
CronEqualFold applies the EqualFold predicate on the "cron" field.
func CronHasPrefix ¶
CronHasPrefix applies the HasPrefix predicate on the "cron" field.
func CronHasSuffix ¶
CronHasSuffix applies the HasSuffix predicate on the "cron" field.
func HasActivities ¶
HasActivities applies the HasEdge predicate on the "activities" edge.
func HasActivitiesWith ¶
func HasActivitiesWith(preds ...predicate.MirrorActivity) predicate.Mirror
HasActivitiesWith applies the HasEdge predicate on the "activities" edge with a given conditions (other predicates).
func HasInodeWith ¶
HasInodeWith applies the HasEdge predicate on the "inode" edge with a given conditions (other predicates).
func HasNamespace ¶
HasNamespace applies the HasEdge predicate on the "namespace" edge.
func HasNamespaceWith ¶
HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).
func LastSync ¶
LastSync applies equality check predicate on the "last_sync" field. It's identical to LastSyncEQ.
func LastSyncEQ ¶
LastSyncEQ applies the EQ predicate on the "last_sync" field.
func LastSyncGT ¶
LastSyncGT applies the GT predicate on the "last_sync" field.
func LastSyncGTE ¶
LastSyncGTE applies the GTE predicate on the "last_sync" field.
func LastSyncIn ¶
LastSyncIn applies the In predicate on the "last_sync" field.
func LastSyncIsNil ¶
LastSyncIsNil applies the IsNil predicate on the "last_sync" field.
func LastSyncLT ¶
LastSyncLT applies the LT predicate on the "last_sync" field.
func LastSyncLTE ¶
LastSyncLTE applies the LTE predicate on the "last_sync" field.
func LastSyncNEQ ¶
LastSyncNEQ applies the NEQ predicate on the "last_sync" field.
func LastSyncNotIn ¶
LastSyncNotIn applies the NotIn predicate on the "last_sync" field.
func LastSyncNotNil ¶
LastSyncNotNil applies the NotNil predicate on the "last_sync" field.
func Passphrase ¶
Passphrase applies equality check predicate on the "passphrase" field. It's identical to PassphraseEQ.
func PassphraseContains ¶
PassphraseContains applies the Contains predicate on the "passphrase" field.
func PassphraseContainsFold ¶
PassphraseContainsFold applies the ContainsFold predicate on the "passphrase" field.
func PassphraseEQ ¶
PassphraseEQ applies the EQ predicate on the "passphrase" field.
func PassphraseEqualFold ¶
PassphraseEqualFold applies the EqualFold predicate on the "passphrase" field.
func PassphraseGT ¶
PassphraseGT applies the GT predicate on the "passphrase" field.
func PassphraseGTE ¶
PassphraseGTE applies the GTE predicate on the "passphrase" field.
func PassphraseHasPrefix ¶
PassphraseHasPrefix applies the HasPrefix predicate on the "passphrase" field.
func PassphraseHasSuffix ¶
PassphraseHasSuffix applies the HasSuffix predicate on the "passphrase" field.
func PassphraseIn ¶
PassphraseIn applies the In predicate on the "passphrase" field.
func PassphraseLT ¶
PassphraseLT applies the LT predicate on the "passphrase" field.
func PassphraseLTE ¶
PassphraseLTE applies the LTE predicate on the "passphrase" field.
func PassphraseNEQ ¶
PassphraseNEQ applies the NEQ predicate on the "passphrase" field.
func PassphraseNotIn ¶
PassphraseNotIn applies the NotIn predicate on the "passphrase" field.
func PrivateKey ¶
PrivateKey applies equality check predicate on the "private_key" field. It's identical to PrivateKeyEQ.
func PrivateKeyContains ¶
PrivateKeyContains applies the Contains predicate on the "private_key" field.
func PrivateKeyContainsFold ¶
PrivateKeyContainsFold applies the ContainsFold predicate on the "private_key" field.
func PrivateKeyEQ ¶
PrivateKeyEQ applies the EQ predicate on the "private_key" field.
func PrivateKeyEqualFold ¶
PrivateKeyEqualFold applies the EqualFold predicate on the "private_key" field.
func PrivateKeyGT ¶
PrivateKeyGT applies the GT predicate on the "private_key" field.
func PrivateKeyGTE ¶
PrivateKeyGTE applies the GTE predicate on the "private_key" field.
func PrivateKeyHasPrefix ¶
PrivateKeyHasPrefix applies the HasPrefix predicate on the "private_key" field.
func PrivateKeyHasSuffix ¶
PrivateKeyHasSuffix applies the HasSuffix predicate on the "private_key" field.
func PrivateKeyIn ¶
PrivateKeyIn applies the In predicate on the "private_key" field.
func PrivateKeyLT ¶
PrivateKeyLT applies the LT predicate on the "private_key" field.
func PrivateKeyLTE ¶
PrivateKeyLTE applies the LTE predicate on the "private_key" field.
func PrivateKeyNEQ ¶
PrivateKeyNEQ applies the NEQ predicate on the "private_key" field.
func PrivateKeyNotIn ¶
PrivateKeyNotIn applies the NotIn predicate on the "private_key" field.
func PublicKey ¶
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyContains ¶
PublicKeyContains applies the Contains predicate on the "public_key" field.
func PublicKeyContainsFold ¶
PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.
func PublicKeyEQ ¶
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyEqualFold ¶
PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.
func PublicKeyGT ¶
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyHasPrefix ¶
PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.
func PublicKeyHasSuffix ¶
PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.
func PublicKeyIn ¶
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func RefContains ¶
RefContains applies the Contains predicate on the "ref" field.
func RefContainsFold ¶
RefContainsFold applies the ContainsFold predicate on the "ref" field.
func RefEqualFold ¶
RefEqualFold applies the EqualFold predicate on the "ref" field.
func RefHasPrefix ¶
RefHasPrefix applies the HasPrefix predicate on the "ref" field.
func RefHasSuffix ¶
RefHasSuffix applies the HasSuffix predicate on the "ref" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.