repository

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the repository type in the database.
	Label = "repository"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldOwner holds the string denoting the owner field in the database.
	FieldOwner = "owner"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldInstallID holds the string denoting the install_id field in the database.
	FieldInstallID = "install_id"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldDefaultBranch holds the string denoting the default_branch field in the database.
	FieldDefaultBranch = "default_branch"
	// EdgeScan holds the string denoting the scan edge name in mutations.
	EdgeScan = "scan"
	// EdgeMain holds the string denoting the main edge name in mutations.
	EdgeMain = "main"
	// EdgeLatest holds the string denoting the latest edge name in mutations.
	EdgeLatest = "latest"
	// EdgeStatus holds the string denoting the status edge name in mutations.
	EdgeStatus = "status"
	// Table holds the table name of the repository in the database.
	Table = "repositories"
	// ScanTable is the table that holds the scan relation/edge. The primary key declared below.
	ScanTable = "repository_scan"
	// ScanInverseTable is the table name for the Scan entity.
	// It exists in this package in order to avoid circular dependency with the "scan" package.
	ScanInverseTable = "scans"
	// MainTable is the table that holds the main relation/edge.
	MainTable = "scans"
	// MainInverseTable is the table name for the Scan entity.
	// It exists in this package in order to avoid circular dependency with the "scan" package.
	MainInverseTable = "scans"
	// MainColumn is the table column denoting the main relation/edge.
	MainColumn = "repository_main"
	// LatestTable is the table that holds the latest relation/edge.
	LatestTable = "repositories"
	// LatestInverseTable is the table name for the Scan entity.
	// It exists in this package in order to avoid circular dependency with the "scan" package.
	LatestInverseTable = "scans"
	// LatestColumn is the table column denoting the latest relation/edge.
	LatestColumn = "repository_latest"
	// StatusTable is the table that holds the status relation/edge.
	StatusTable = "vuln_status_indexes"
	// StatusInverseTable is the table name for the VulnStatusIndex entity.
	// It exists in this package in order to avoid circular dependency with the "vulnstatusindex" package.
	StatusInverseTable = "vuln_status_indexes"
	// StatusColumn is the table column denoting the status relation/edge.
	StatusColumn = "repository_status"
)

Variables

Columns holds all SQL columns for repository fields.

View Source
var ForeignKeys = []string{
	"repository_latest",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "repositories" table and are not defined as standalone fields in the schema.

View Source
var (
	// ScanPrimaryKey and ScanColumn2 are the table columns denoting the
	// primary key for the scan relation (M2M).
	ScanPrimaryKey = []string{"repository_id", "scan_id"}
)

Functions

func And

func And(predicates ...predicate.Repository) predicate.Repository

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.Repository

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.Repository

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.Repository

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.Repository

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.Repository

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.Repository

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.Repository

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.Repository

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.Repository

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

func AvatarURLIn(vs ...string) predicate.Repository

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLIsNil

func AvatarURLIsNil() predicate.Repository

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.Repository

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.Repository

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.Repository

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

func AvatarURLNotIn(vs ...string) predicate.Repository

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func AvatarURLNotNil

func AvatarURLNotNil() predicate.Repository

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func DefaultBranch

func DefaultBranch(v string) predicate.Repository

DefaultBranch applies equality check predicate on the "default_branch" field. It's identical to DefaultBranchEQ.

func DefaultBranchContains

func DefaultBranchContains(v string) predicate.Repository

DefaultBranchContains applies the Contains predicate on the "default_branch" field.

func DefaultBranchContainsFold

func DefaultBranchContainsFold(v string) predicate.Repository

DefaultBranchContainsFold applies the ContainsFold predicate on the "default_branch" field.

func DefaultBranchEQ

func DefaultBranchEQ(v string) predicate.Repository

DefaultBranchEQ applies the EQ predicate on the "default_branch" field.

func DefaultBranchEqualFold

func DefaultBranchEqualFold(v string) predicate.Repository

DefaultBranchEqualFold applies the EqualFold predicate on the "default_branch" field.

func DefaultBranchGT

func DefaultBranchGT(v string) predicate.Repository

DefaultBranchGT applies the GT predicate on the "default_branch" field.

func DefaultBranchGTE

func DefaultBranchGTE(v string) predicate.Repository

DefaultBranchGTE applies the GTE predicate on the "default_branch" field.

func DefaultBranchHasPrefix

func DefaultBranchHasPrefix(v string) predicate.Repository

DefaultBranchHasPrefix applies the HasPrefix predicate on the "default_branch" field.

func DefaultBranchHasSuffix

func DefaultBranchHasSuffix(v string) predicate.Repository

DefaultBranchHasSuffix applies the HasSuffix predicate on the "default_branch" field.

func DefaultBranchIn

func DefaultBranchIn(vs ...string) predicate.Repository

DefaultBranchIn applies the In predicate on the "default_branch" field.

func DefaultBranchIsNil

func DefaultBranchIsNil() predicate.Repository

DefaultBranchIsNil applies the IsNil predicate on the "default_branch" field.

func DefaultBranchLT

func DefaultBranchLT(v string) predicate.Repository

DefaultBranchLT applies the LT predicate on the "default_branch" field.

func DefaultBranchLTE

func DefaultBranchLTE(v string) predicate.Repository

DefaultBranchLTE applies the LTE predicate on the "default_branch" field.

func DefaultBranchNEQ

func DefaultBranchNEQ(v string) predicate.Repository

DefaultBranchNEQ applies the NEQ predicate on the "default_branch" field.

func DefaultBranchNotIn

func DefaultBranchNotIn(vs ...string) predicate.Repository

DefaultBranchNotIn applies the NotIn predicate on the "default_branch" field.

func DefaultBranchNotNil

func DefaultBranchNotNil() predicate.Repository

DefaultBranchNotNil applies the NotNil predicate on the "default_branch" field.

func HasLatest

func HasLatest() predicate.Repository

HasLatest applies the HasEdge predicate on the "latest" edge.

func HasLatestWith

func HasLatestWith(preds ...predicate.Scan) predicate.Repository

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

func HasMain

func HasMain() predicate.Repository

HasMain applies the HasEdge predicate on the "main" edge.

func HasMainWith

func HasMainWith(preds ...predicate.Scan) predicate.Repository

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

func HasScan

func HasScan() predicate.Repository

HasScan applies the HasEdge predicate on the "scan" edge.

func HasScanWith

func HasScanWith(preds ...predicate.Scan) predicate.Repository

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

func HasStatus

func HasStatus() predicate.Repository

HasStatus applies the HasEdge predicate on the "status" edge.

func HasStatusWith

func HasStatusWith(preds ...predicate.VulnStatusIndex) predicate.Repository

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

func ID

func ID(id int) predicate.Repository

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Repository

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Repository

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Repository

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Repository

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Repository

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Repository

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InstallID

func InstallID(v int64) predicate.Repository

InstallID applies equality check predicate on the "install_id" field. It's identical to InstallIDEQ.

func InstallIDEQ

func InstallIDEQ(v int64) predicate.Repository

InstallIDEQ applies the EQ predicate on the "install_id" field.

func InstallIDGT

func InstallIDGT(v int64) predicate.Repository

InstallIDGT applies the GT predicate on the "install_id" field.

func InstallIDGTE

func InstallIDGTE(v int64) predicate.Repository

InstallIDGTE applies the GTE predicate on the "install_id" field.

func InstallIDIn

func InstallIDIn(vs ...int64) predicate.Repository

InstallIDIn applies the In predicate on the "install_id" field.

func InstallIDIsNil

func InstallIDIsNil() predicate.Repository

InstallIDIsNil applies the IsNil predicate on the "install_id" field.

func InstallIDLT

func InstallIDLT(v int64) predicate.Repository

InstallIDLT applies the LT predicate on the "install_id" field.

func InstallIDLTE

func InstallIDLTE(v int64) predicate.Repository

InstallIDLTE applies the LTE predicate on the "install_id" field.

func InstallIDNEQ

func InstallIDNEQ(v int64) predicate.Repository

InstallIDNEQ applies the NEQ predicate on the "install_id" field.

func InstallIDNotIn

func InstallIDNotIn(vs ...int64) predicate.Repository

InstallIDNotIn applies the NotIn predicate on the "install_id" field.

func InstallIDNotNil

func InstallIDNotNil() predicate.Repository

InstallIDNotNil applies the NotNil predicate on the "install_id" field.

func Name

func Name(v string) predicate.Repository

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

func NameContains

func NameContains(v string) predicate.Repository

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

func NameContainsFold

func NameContainsFold(v string) predicate.Repository

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

func NameEQ

func NameEQ(v string) predicate.Repository

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

func NameEqualFold

func NameEqualFold(v string) predicate.Repository

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

func NameGT

func NameGT(v string) predicate.Repository

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

func NameGTE

func NameGTE(v string) predicate.Repository

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Repository

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Repository

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Repository

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

func NameLTE

func NameLTE(v string) predicate.Repository

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

func NameNEQ

func NameNEQ(v string) predicate.Repository

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Repository) predicate.Repository

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.Repository

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

func OwnerContains

func OwnerContains(v string) predicate.Repository

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

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.Repository

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

func OwnerEQ

func OwnerEQ(v string) predicate.Repository

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

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.Repository

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

func OwnerGT

func OwnerGT(v string) predicate.Repository

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

func OwnerGTE

func OwnerGTE(v string) predicate.Repository

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

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.Repository

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

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.Repository

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

func OwnerIn

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

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

func OwnerLT

func OwnerLT(v string) predicate.Repository

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

func OwnerLTE

func OwnerLTE(v string) predicate.Repository

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

func OwnerNEQ

func OwnerNEQ(v string) predicate.Repository

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

func OwnerNotIn

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

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

func URL

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

func URLContains

func URLContains(v string) predicate.Repository

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

func URLContainsFold

func URLContainsFold(v string) predicate.Repository

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

func URLEQ

func URLEQ(v string) predicate.Repository

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

func URLEqualFold

func URLEqualFold(v string) predicate.Repository

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

func URLGT

func URLGT(v string) predicate.Repository

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

func URLGTE

func URLGTE(v string) predicate.Repository

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

func URLHasPrefix

func URLHasPrefix(v string) predicate.Repository

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

func URLHasSuffix

func URLHasSuffix(v string) predicate.Repository

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

func URLIn

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

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

func URLIsNil

func URLIsNil() predicate.Repository

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Repository

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

func URLLTE

func URLLTE(v string) predicate.Repository

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

func URLNEQ

func URLNEQ(v string) predicate.Repository

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

func URLNotIn

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

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

func URLNotNil

func URLNotNil() predicate.Repository

URLNotNil applies the NotNil predicate on the "url" 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