module

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the module type in the database.
	Label = "module"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwner holds the string denoting the owner vertex property in the database.
	FieldOwner = "owner"
	// FieldNamespace holds the string denoting the namespace vertex property in the database.
	FieldNamespace = "namespace"
	// FieldName holds the string denoting the name vertex property in the database.
	FieldName = "name"
	// FieldProvider holds the string denoting the provider vertex property in the database.
	FieldProvider = "provider"
	// FieldDescription holds the string denoting the description vertex property in the database.
	FieldDescription = "description"
	// FieldSource holds the string denoting the source vertex property in the database.
	FieldSource = "source"
	// FieldDownloads holds the string denoting the downloads vertex property in the database.
	FieldDownloads = "downloads"
	// FieldPublishedAt holds the string denoting the published_at vertex property in the database.
	FieldPublishedAt = "published_at"
	// FieldInstallationID holds the string denoting the installation_id vertex property in the database.
	FieldInstallationID = "installation_id"
	// FieldAppID holds the string denoting the app_id vertex property in the database.
	FieldAppID = "app_id"
	// FieldRepoName holds the string denoting the repo_name vertex property in the database.
	FieldRepoName = "repo_name"

	// Table holds the table name of the module in the database.
	Table = "modules"
	// VersionTable is the table the holds the version relation/edge.
	VersionTable = "module_versions"
	// VersionInverseTable is the table name for the ModuleVersion entity.
	// It exists in this package in order to avoid circular dependency with the "moduleversion" package.
	VersionInverseTable = "module_versions"
	// VersionColumn is the table column denoting the version relation/edge.
	VersionColumn = "module_id"
)

Variables

Columns holds all SQL columns are module fields.

View Source
var (

	// DefaultDownloads holds the default value on creation for the downloads field.
	DefaultDownloads = descDownloads.Default.(int64)
)

Functions

func And

func And(predicates ...predicate.Module) predicate.Module

And groups list of predicates with the AND operator between them.

func AppID

func AppID(v int64) predicate.Module

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v int64) predicate.Module

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDGT

func AppIDGT(v int64) predicate.Module

AppIDGT applies the GT predicate on the "app_id" field.

func AppIDGTE

func AppIDGTE(v int64) predicate.Module

AppIDGTE applies the GTE predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...int64) predicate.Module

AppIDIn applies the In predicate on the "app_id" field.

func AppIDLT

func AppIDLT(v int64) predicate.Module

AppIDLT applies the LT predicate on the "app_id" field.

func AppIDLTE

func AppIDLTE(v int64) predicate.Module

AppIDLTE applies the LTE predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v int64) predicate.Module

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...int64) predicate.Module

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func Description

func Description(v string) predicate.Module

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Module

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Module

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Module

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Module

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Module

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Module

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Module

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Module

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Module

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Module

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Module

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Module

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Module

DescriptionNotIn applies the NotIn predicate on the "description" field.

func Downloads

func Downloads(v int64) predicate.Module

Downloads applies equality check predicate on the "downloads" field. It's identical to DownloadsEQ.

func DownloadsEQ

func DownloadsEQ(v int64) predicate.Module

DownloadsEQ applies the EQ predicate on the "downloads" field.

func DownloadsGT

func DownloadsGT(v int64) predicate.Module

DownloadsGT applies the GT predicate on the "downloads" field.

func DownloadsGTE

func DownloadsGTE(v int64) predicate.Module

DownloadsGTE applies the GTE predicate on the "downloads" field.

func DownloadsIn

func DownloadsIn(vs ...int64) predicate.Module

DownloadsIn applies the In predicate on the "downloads" field.

func DownloadsLT

func DownloadsLT(v int64) predicate.Module

DownloadsLT applies the LT predicate on the "downloads" field.

func DownloadsLTE

func DownloadsLTE(v int64) predicate.Module

DownloadsLTE applies the LTE predicate on the "downloads" field.

func DownloadsNEQ

func DownloadsNEQ(v int64) predicate.Module

DownloadsNEQ applies the NEQ predicate on the "downloads" field.

func DownloadsNotIn

func DownloadsNotIn(vs ...int64) predicate.Module

DownloadsNotIn applies the NotIn predicate on the "downloads" field.

func HasVersion

func HasVersion() predicate.Module

HasVersion applies the HasEdge predicate on the "version" edge.

func HasVersionWith

func HasVersionWith(preds ...predicate.ModuleVersion) predicate.Module

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

func ID

func ID(id int) predicate.Module

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Module

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Module

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Module

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Module

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Module

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Module

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InstallationID

func InstallationID(v int64) predicate.Module

InstallationID applies equality check predicate on the "installation_id" field. It's identical to InstallationIDEQ.

func InstallationIDEQ

func InstallationIDEQ(v int64) predicate.Module

InstallationIDEQ applies the EQ predicate on the "installation_id" field.

func InstallationIDGT

func InstallationIDGT(v int64) predicate.Module

InstallationIDGT applies the GT predicate on the "installation_id" field.

func InstallationIDGTE

func InstallationIDGTE(v int64) predicate.Module

InstallationIDGTE applies the GTE predicate on the "installation_id" field.

func InstallationIDIn

func InstallationIDIn(vs ...int64) predicate.Module

InstallationIDIn applies the In predicate on the "installation_id" field.

func InstallationIDLT

func InstallationIDLT(v int64) predicate.Module

InstallationIDLT applies the LT predicate on the "installation_id" field.

func InstallationIDLTE

func InstallationIDLTE(v int64) predicate.Module

InstallationIDLTE applies the LTE predicate on the "installation_id" field.

func InstallationIDNEQ

func InstallationIDNEQ(v int64) predicate.Module

InstallationIDNEQ applies the NEQ predicate on the "installation_id" field.

func InstallationIDNotIn

func InstallationIDNotIn(vs ...int64) predicate.Module

InstallationIDNotIn applies the NotIn predicate on the "installation_id" field.

func Name

func Name(v string) predicate.Module

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Module

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Module

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Module

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Module

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Module

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Module

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Module

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Module

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Module

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Module

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Module

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Module

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Module

NameNotIn applies the NotIn predicate on the "name" field.

func Namespace

func Namespace(v string) predicate.Module

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Module

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Module

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Module

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Module

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Module

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Module

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Module

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Module

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Module

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Module

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Module

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Module

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Module

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Module) predicate.Module

Or groups list of predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Module

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.Module

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Module

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.Module

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Module

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.Module

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.Module

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Module

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Module

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.Module

OwnerIn applies the In predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.Module

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.Module

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.Module

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.Module

OwnerNotIn applies the NotIn predicate on the "owner" field.

func Provider

func Provider(v string) predicate.Module

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.Module

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.Module

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.Module

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.Module

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.Module

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.Module

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.Module

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.Module

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.Module

ProviderIn applies the In predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.Module

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.Module

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.Module

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.Module

ProviderNotIn applies the NotIn predicate on the "provider" field.

func PublishedAt

func PublishedAt(v time.Time) predicate.Module

PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.

func PublishedAtEQ

func PublishedAtEQ(v time.Time) predicate.Module

PublishedAtEQ applies the EQ predicate on the "published_at" field.

func PublishedAtGT

func PublishedAtGT(v time.Time) predicate.Module

PublishedAtGT applies the GT predicate on the "published_at" field.

func PublishedAtGTE

func PublishedAtGTE(v time.Time) predicate.Module

PublishedAtGTE applies the GTE predicate on the "published_at" field.

func PublishedAtIn

func PublishedAtIn(vs ...time.Time) predicate.Module

PublishedAtIn applies the In predicate on the "published_at" field.

func PublishedAtLT

func PublishedAtLT(v time.Time) predicate.Module

PublishedAtLT applies the LT predicate on the "published_at" field.

func PublishedAtLTE

func PublishedAtLTE(v time.Time) predicate.Module

PublishedAtLTE applies the LTE predicate on the "published_at" field.

func PublishedAtNEQ

func PublishedAtNEQ(v time.Time) predicate.Module

PublishedAtNEQ applies the NEQ predicate on the "published_at" field.

func PublishedAtNotIn

func PublishedAtNotIn(vs ...time.Time) predicate.Module

PublishedAtNotIn applies the NotIn predicate on the "published_at" field.

func RepoName

func RepoName(v string) predicate.Module

RepoName applies equality check predicate on the "repo_name" field. It's identical to RepoNameEQ.

func RepoNameContains

func RepoNameContains(v string) predicate.Module

RepoNameContains applies the Contains predicate on the "repo_name" field.

func RepoNameContainsFold

func RepoNameContainsFold(v string) predicate.Module

RepoNameContainsFold applies the ContainsFold predicate on the "repo_name" field.

func RepoNameEQ

func RepoNameEQ(v string) predicate.Module

RepoNameEQ applies the EQ predicate on the "repo_name" field.

func RepoNameEqualFold

func RepoNameEqualFold(v string) predicate.Module

RepoNameEqualFold applies the EqualFold predicate on the "repo_name" field.

func RepoNameGT

func RepoNameGT(v string) predicate.Module

RepoNameGT applies the GT predicate on the "repo_name" field.

func RepoNameGTE

func RepoNameGTE(v string) predicate.Module

RepoNameGTE applies the GTE predicate on the "repo_name" field.

func RepoNameHasPrefix

func RepoNameHasPrefix(v string) predicate.Module

RepoNameHasPrefix applies the HasPrefix predicate on the "repo_name" field.

func RepoNameHasSuffix

func RepoNameHasSuffix(v string) predicate.Module

RepoNameHasSuffix applies the HasSuffix predicate on the "repo_name" field.

func RepoNameIn

func RepoNameIn(vs ...string) predicate.Module

RepoNameIn applies the In predicate on the "repo_name" field.

func RepoNameLT

func RepoNameLT(v string) predicate.Module

RepoNameLT applies the LT predicate on the "repo_name" field.

func RepoNameLTE

func RepoNameLTE(v string) predicate.Module

RepoNameLTE applies the LTE predicate on the "repo_name" field.

func RepoNameNEQ

func RepoNameNEQ(v string) predicate.Module

RepoNameNEQ applies the NEQ predicate on the "repo_name" field.

func RepoNameNotIn

func RepoNameNotIn(vs ...string) predicate.Module

RepoNameNotIn applies the NotIn predicate on the "repo_name" field.

func Source

func Source(v string) predicate.Module

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.Module

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.Module

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.Module

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.Module

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.Module

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.Module

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.Module

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.Module

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.Module

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.Module

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.Module

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.Module

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.Module

SourceNotIn applies the NotIn predicate on the "source" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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