mirror

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for mirror fields.

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

func And(predicates ...predicate.Mirror) predicate.Mirror

And groups predicates with the AND operator between them.

func Commit

func Commit(v string) predicate.Mirror

Commit applies equality check predicate on the "commit" field. It's identical to CommitEQ.

func CommitContains

func CommitContains(v string) predicate.Mirror

CommitContains applies the Contains predicate on the "commit" field.

func CommitContainsFold

func CommitContainsFold(v string) predicate.Mirror

CommitContainsFold applies the ContainsFold predicate on the "commit" field.

func CommitEQ

func CommitEQ(v string) predicate.Mirror

CommitEQ applies the EQ predicate on the "commit" field.

func CommitEqualFold

func CommitEqualFold(v string) predicate.Mirror

CommitEqualFold applies the EqualFold predicate on the "commit" field.

func CommitGT

func CommitGT(v string) predicate.Mirror

CommitGT applies the GT predicate on the "commit" field.

func CommitGTE

func CommitGTE(v string) predicate.Mirror

CommitGTE applies the GTE predicate on the "commit" field.

func CommitHasPrefix

func CommitHasPrefix(v string) predicate.Mirror

CommitHasPrefix applies the HasPrefix predicate on the "commit" field.

func CommitHasSuffix

func CommitHasSuffix(v string) predicate.Mirror

CommitHasSuffix applies the HasSuffix predicate on the "commit" field.

func CommitIn

func CommitIn(vs ...string) predicate.Mirror

CommitIn applies the In predicate on the "commit" field.

func CommitLT

func CommitLT(v string) predicate.Mirror

CommitLT applies the LT predicate on the "commit" field.

func CommitLTE

func CommitLTE(v string) predicate.Mirror

CommitLTE applies the LTE predicate on the "commit" field.

func CommitNEQ

func CommitNEQ(v string) predicate.Mirror

CommitNEQ applies the NEQ predicate on the "commit" field.

func CommitNotIn

func CommitNotIn(vs ...string) predicate.Mirror

CommitNotIn applies the NotIn predicate on the "commit" field.

func Cron

func Cron(v string) predicate.Mirror

Cron applies equality check predicate on the "cron" field. It's identical to CronEQ.

func CronContains

func CronContains(v string) predicate.Mirror

CronContains applies the Contains predicate on the "cron" field.

func CronContainsFold

func CronContainsFold(v string) predicate.Mirror

CronContainsFold applies the ContainsFold predicate on the "cron" field.

func CronEQ

func CronEQ(v string) predicate.Mirror

CronEQ applies the EQ predicate on the "cron" field.

func CronEqualFold

func CronEqualFold(v string) predicate.Mirror

CronEqualFold applies the EqualFold predicate on the "cron" field.

func CronGT

func CronGT(v string) predicate.Mirror

CronGT applies the GT predicate on the "cron" field.

func CronGTE

func CronGTE(v string) predicate.Mirror

CronGTE applies the GTE predicate on the "cron" field.

func CronHasPrefix

func CronHasPrefix(v string) predicate.Mirror

CronHasPrefix applies the HasPrefix predicate on the "cron" field.

func CronHasSuffix

func CronHasSuffix(v string) predicate.Mirror

CronHasSuffix applies the HasSuffix predicate on the "cron" field.

func CronIn

func CronIn(vs ...string) predicate.Mirror

CronIn applies the In predicate on the "cron" field.

func CronLT

func CronLT(v string) predicate.Mirror

CronLT applies the LT predicate on the "cron" field.

func CronLTE

func CronLTE(v string) predicate.Mirror

CronLTE applies the LTE predicate on the "cron" field.

func CronNEQ

func CronNEQ(v string) predicate.Mirror

CronNEQ applies the NEQ predicate on the "cron" field.

func CronNotIn

func CronNotIn(vs ...string) predicate.Mirror

CronNotIn applies the NotIn predicate on the "cron" field.

func HasActivities

func HasActivities() predicate.Mirror

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 HasInode

func HasInode() predicate.Mirror

HasInode applies the HasEdge predicate on the "inode" edge.

func HasInodeWith

func HasInodeWith(preds ...predicate.Inode) predicate.Mirror

HasInodeWith applies the HasEdge predicate on the "inode" edge with a given conditions (other predicates).

func HasNamespace

func HasNamespace() predicate.Mirror

HasNamespace applies the HasEdge predicate on the "namespace" edge.

func HasNamespaceWith

func HasNamespaceWith(preds ...predicate.Namespace) predicate.Mirror

HasNamespaceWith applies the HasEdge predicate on the "namespace" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Mirror

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Mirror

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Mirror

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Mirror

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Mirror

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Mirror

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Mirror

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Mirror

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Mirror

IDNotIn applies the NotIn predicate on the ID field.

func LastSync

func LastSync(v time.Time) predicate.Mirror

LastSync applies equality check predicate on the "last_sync" field. It's identical to LastSyncEQ.

func LastSyncEQ

func LastSyncEQ(v time.Time) predicate.Mirror

LastSyncEQ applies the EQ predicate on the "last_sync" field.

func LastSyncGT

func LastSyncGT(v time.Time) predicate.Mirror

LastSyncGT applies the GT predicate on the "last_sync" field.

func LastSyncGTE

func LastSyncGTE(v time.Time) predicate.Mirror

LastSyncGTE applies the GTE predicate on the "last_sync" field.

func LastSyncIn

func LastSyncIn(vs ...time.Time) predicate.Mirror

LastSyncIn applies the In predicate on the "last_sync" field.

func LastSyncIsNil

func LastSyncIsNil() predicate.Mirror

LastSyncIsNil applies the IsNil predicate on the "last_sync" field.

func LastSyncLT

func LastSyncLT(v time.Time) predicate.Mirror

LastSyncLT applies the LT predicate on the "last_sync" field.

func LastSyncLTE

func LastSyncLTE(v time.Time) predicate.Mirror

LastSyncLTE applies the LTE predicate on the "last_sync" field.

func LastSyncNEQ

func LastSyncNEQ(v time.Time) predicate.Mirror

LastSyncNEQ applies the NEQ predicate on the "last_sync" field.

func LastSyncNotIn

func LastSyncNotIn(vs ...time.Time) predicate.Mirror

LastSyncNotIn applies the NotIn predicate on the "last_sync" field.

func LastSyncNotNil

func LastSyncNotNil() predicate.Mirror

LastSyncNotNil applies the NotNil predicate on the "last_sync" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Mirror) predicate.Mirror

Or groups predicates with the OR operator between them.

func Passphrase

func Passphrase(v string) predicate.Mirror

Passphrase applies equality check predicate on the "passphrase" field. It's identical to PassphraseEQ.

func PassphraseContains

func PassphraseContains(v string) predicate.Mirror

PassphraseContains applies the Contains predicate on the "passphrase" field.

func PassphraseContainsFold

func PassphraseContainsFold(v string) predicate.Mirror

PassphraseContainsFold applies the ContainsFold predicate on the "passphrase" field.

func PassphraseEQ

func PassphraseEQ(v string) predicate.Mirror

PassphraseEQ applies the EQ predicate on the "passphrase" field.

func PassphraseEqualFold

func PassphraseEqualFold(v string) predicate.Mirror

PassphraseEqualFold applies the EqualFold predicate on the "passphrase" field.

func PassphraseGT

func PassphraseGT(v string) predicate.Mirror

PassphraseGT applies the GT predicate on the "passphrase" field.

func PassphraseGTE

func PassphraseGTE(v string) predicate.Mirror

PassphraseGTE applies the GTE predicate on the "passphrase" field.

func PassphraseHasPrefix

func PassphraseHasPrefix(v string) predicate.Mirror

PassphraseHasPrefix applies the HasPrefix predicate on the "passphrase" field.

func PassphraseHasSuffix

func PassphraseHasSuffix(v string) predicate.Mirror

PassphraseHasSuffix applies the HasSuffix predicate on the "passphrase" field.

func PassphraseIn

func PassphraseIn(vs ...string) predicate.Mirror

PassphraseIn applies the In predicate on the "passphrase" field.

func PassphraseLT

func PassphraseLT(v string) predicate.Mirror

PassphraseLT applies the LT predicate on the "passphrase" field.

func PassphraseLTE

func PassphraseLTE(v string) predicate.Mirror

PassphraseLTE applies the LTE predicate on the "passphrase" field.

func PassphraseNEQ

func PassphraseNEQ(v string) predicate.Mirror

PassphraseNEQ applies the NEQ predicate on the "passphrase" field.

func PassphraseNotIn

func PassphraseNotIn(vs ...string) predicate.Mirror

PassphraseNotIn applies the NotIn predicate on the "passphrase" field.

func PrivateKey

func PrivateKey(v string) predicate.Mirror

PrivateKey applies equality check predicate on the "private_key" field. It's identical to PrivateKeyEQ.

func PrivateKeyContains

func PrivateKeyContains(v string) predicate.Mirror

PrivateKeyContains applies the Contains predicate on the "private_key" field.

func PrivateKeyContainsFold

func PrivateKeyContainsFold(v string) predicate.Mirror

PrivateKeyContainsFold applies the ContainsFold predicate on the "private_key" field.

func PrivateKeyEQ

func PrivateKeyEQ(v string) predicate.Mirror

PrivateKeyEQ applies the EQ predicate on the "private_key" field.

func PrivateKeyEqualFold

func PrivateKeyEqualFold(v string) predicate.Mirror

PrivateKeyEqualFold applies the EqualFold predicate on the "private_key" field.

func PrivateKeyGT

func PrivateKeyGT(v string) predicate.Mirror

PrivateKeyGT applies the GT predicate on the "private_key" field.

func PrivateKeyGTE

func PrivateKeyGTE(v string) predicate.Mirror

PrivateKeyGTE applies the GTE predicate on the "private_key" field.

func PrivateKeyHasPrefix

func PrivateKeyHasPrefix(v string) predicate.Mirror

PrivateKeyHasPrefix applies the HasPrefix predicate on the "private_key" field.

func PrivateKeyHasSuffix

func PrivateKeyHasSuffix(v string) predicate.Mirror

PrivateKeyHasSuffix applies the HasSuffix predicate on the "private_key" field.

func PrivateKeyIn

func PrivateKeyIn(vs ...string) predicate.Mirror

PrivateKeyIn applies the In predicate on the "private_key" field.

func PrivateKeyLT

func PrivateKeyLT(v string) predicate.Mirror

PrivateKeyLT applies the LT predicate on the "private_key" field.

func PrivateKeyLTE

func PrivateKeyLTE(v string) predicate.Mirror

PrivateKeyLTE applies the LTE predicate on the "private_key" field.

func PrivateKeyNEQ

func PrivateKeyNEQ(v string) predicate.Mirror

PrivateKeyNEQ applies the NEQ predicate on the "private_key" field.

func PrivateKeyNotIn

func PrivateKeyNotIn(vs ...string) predicate.Mirror

PrivateKeyNotIn applies the NotIn predicate on the "private_key" field.

func PublicKey

func PublicKey(v string) predicate.Mirror

PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.

func PublicKeyContains

func PublicKeyContains(v string) predicate.Mirror

PublicKeyContains applies the Contains predicate on the "public_key" field.

func PublicKeyContainsFold

func PublicKeyContainsFold(v string) predicate.Mirror

PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.

func PublicKeyEQ

func PublicKeyEQ(v string) predicate.Mirror

PublicKeyEQ applies the EQ predicate on the "public_key" field.

func PublicKeyEqualFold

func PublicKeyEqualFold(v string) predicate.Mirror

PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.

func PublicKeyGT

func PublicKeyGT(v string) predicate.Mirror

PublicKeyGT applies the GT predicate on the "public_key" field.

func PublicKeyGTE

func PublicKeyGTE(v string) predicate.Mirror

PublicKeyGTE applies the GTE predicate on the "public_key" field.

func PublicKeyHasPrefix

func PublicKeyHasPrefix(v string) predicate.Mirror

PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.

func PublicKeyHasSuffix

func PublicKeyHasSuffix(v string) predicate.Mirror

PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.

func PublicKeyIn

func PublicKeyIn(vs ...string) predicate.Mirror

PublicKeyIn applies the In predicate on the "public_key" field.

func PublicKeyLT

func PublicKeyLT(v string) predicate.Mirror

PublicKeyLT applies the LT predicate on the "public_key" field.

func PublicKeyLTE

func PublicKeyLTE(v string) predicate.Mirror

PublicKeyLTE applies the LTE predicate on the "public_key" field.

func PublicKeyNEQ

func PublicKeyNEQ(v string) predicate.Mirror

PublicKeyNEQ applies the NEQ predicate on the "public_key" field.

func PublicKeyNotIn

func PublicKeyNotIn(vs ...string) predicate.Mirror

PublicKeyNotIn applies the NotIn predicate on the "public_key" field.

func Ref

func Ref(v string) predicate.Mirror

Ref applies equality check predicate on the "ref" field. It's identical to RefEQ.

func RefContains

func RefContains(v string) predicate.Mirror

RefContains applies the Contains predicate on the "ref" field.

func RefContainsFold

func RefContainsFold(v string) predicate.Mirror

RefContainsFold applies the ContainsFold predicate on the "ref" field.

func RefEQ

func RefEQ(v string) predicate.Mirror

RefEQ applies the EQ predicate on the "ref" field.

func RefEqualFold

func RefEqualFold(v string) predicate.Mirror

RefEqualFold applies the EqualFold predicate on the "ref" field.

func RefGT

func RefGT(v string) predicate.Mirror

RefGT applies the GT predicate on the "ref" field.

func RefGTE

func RefGTE(v string) predicate.Mirror

RefGTE applies the GTE predicate on the "ref" field.

func RefHasPrefix

func RefHasPrefix(v string) predicate.Mirror

RefHasPrefix applies the HasPrefix predicate on the "ref" field.

func RefHasSuffix

func RefHasSuffix(v string) predicate.Mirror

RefHasSuffix applies the HasSuffix predicate on the "ref" field.

func RefIn

func RefIn(vs ...string) predicate.Mirror

RefIn applies the In predicate on the "ref" field.

func RefLT

func RefLT(v string) predicate.Mirror

RefLT applies the LT predicate on the "ref" field.

func RefLTE

func RefLTE(v string) predicate.Mirror

RefLTE applies the LTE predicate on the "ref" field.

func RefNEQ

func RefNEQ(v string) predicate.Mirror

RefNEQ applies the NEQ predicate on the "ref" field.

func RefNotIn

func RefNotIn(vs ...string) predicate.Mirror

RefNotIn applies the NotIn predicate on the "ref" field.

func URL

func URL(v string) predicate.Mirror

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Mirror

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Mirror

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Mirror

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Mirror

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Mirror

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Mirror

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Mirror

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Mirror

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Mirror

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Mirror

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Mirror

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Mirror

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Mirror

URLNotIn applies the NotIn predicate on the "url" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Mirror

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Mirror

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Mirror

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Mirror

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Mirror

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Mirror

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Mirror

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Mirror

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Mirror

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Mirror

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Mirror

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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