repo

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the repo type in the database.
	Label = "repo"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDefaultBranch holds the string denoting the default_branch field in the database.
	FieldDefaultBranch = "default_branch"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeHead holds the string denoting the head edge name in mutations.
	EdgeHead = "head"
	// EdgeCommits holds the string denoting the commits edge name in mutations.
	EdgeCommits = "commits"
	// EdgeVulnerabilityReviews holds the string denoting the vulnerability_reviews edge name in mutations.
	EdgeVulnerabilityReviews = "vulnerability_reviews"
	// EdgePolicies holds the string denoting the policies edge name in mutations.
	EdgePolicies = "policies"
	// Table holds the table name of the repo in the database.
	Table = "repo"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "repo"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organization"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "repo_owner"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "repo"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "project"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "repo_project"
	// HeadTable is the table that holds the head relation/edge.
	HeadTable = "release"
	// HeadInverseTable is the table name for the Release entity.
	// It exists in this package in order to avoid circular dependency with the "release" package.
	HeadInverseTable = "release"
	// HeadColumn is the table column denoting the head relation/edge.
	HeadColumn = "repo_head"
	// CommitsTable is the table that holds the commits relation/edge.
	CommitsTable = "commit"
	// CommitsInverseTable is the table name for the GitCommit entity.
	// It exists in this package in order to avoid circular dependency with the "gitcommit" package.
	CommitsInverseTable = "commit"
	// CommitsColumn is the table column denoting the commits relation/edge.
	CommitsColumn = "git_commit_repo"
	// VulnerabilityReviewsTable is the table that holds the vulnerability_reviews relation/edge. The primary key declared below.
	VulnerabilityReviewsTable = "vulnerability_review_repos"
	// VulnerabilityReviewsInverseTable is the table name for the VulnerabilityReview entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilityreview" package.
	VulnerabilityReviewsInverseTable = "vulnerability_review"
	// PoliciesTable is the table that holds the policies relation/edge. The primary key declared below.
	PoliciesTable = "release_policy_repos"
	// PoliciesInverseTable is the table name for the ReleasePolicy entity.
	// It exists in this package in order to avoid circular dependency with the "releasepolicy" package.
	PoliciesInverseTable = "release_policy"
)

Variables

View Source
var (
	// VulnerabilityReviewsPrimaryKey and VulnerabilityReviewsColumn2 are the table columns denoting the
	// primary key for the vulnerability_reviews relation (M2M).
	VulnerabilityReviewsPrimaryKey = []string{"vulnerability_review_id", "repo_id"}
	// PoliciesPrimaryKey and PoliciesColumn2 are the table columns denoting the
	// primary key for the policies relation (M2M).
	PoliciesPrimaryKey = []string{"release_policy_id", "repo_id"}
)
View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDefaultBranch holds the default value on creation for the "default_branch" field.
	DefaultDefaultBranch string
	// DefaultBranchValidator is a validator for the "default_branch" field. It is called by the builders before save.
	DefaultBranchValidator func(string) error
)

Columns holds all SQL columns for repo fields.

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

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

Functions

func And

func And(predicates ...predicate.Repo) predicate.Repo

And groups predicates with the AND operator between them.

func DefaultBranch

func DefaultBranch(v string) predicate.Repo

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

func DefaultBranchContains

func DefaultBranchContains(v string) predicate.Repo

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

func DefaultBranchContainsFold

func DefaultBranchContainsFold(v string) predicate.Repo

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

func DefaultBranchEQ

func DefaultBranchEQ(v string) predicate.Repo

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

func DefaultBranchEqualFold

func DefaultBranchEqualFold(v string) predicate.Repo

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

func DefaultBranchGT

func DefaultBranchGT(v string) predicate.Repo

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

func DefaultBranchGTE

func DefaultBranchGTE(v string) predicate.Repo

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

func DefaultBranchHasPrefix

func DefaultBranchHasPrefix(v string) predicate.Repo

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

func DefaultBranchHasSuffix

func DefaultBranchHasSuffix(v string) predicate.Repo

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

func DefaultBranchIn

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

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

func DefaultBranchLT

func DefaultBranchLT(v string) predicate.Repo

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

func DefaultBranchLTE

func DefaultBranchLTE(v string) predicate.Repo

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

func DefaultBranchNEQ

func DefaultBranchNEQ(v string) predicate.Repo

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

func DefaultBranchNotIn

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

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

func HasCommits

func HasCommits() predicate.Repo

HasCommits applies the HasEdge predicate on the "commits" edge.

func HasCommitsWith

func HasCommitsWith(preds ...predicate.GitCommit) predicate.Repo

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

func HasHead

func HasHead() predicate.Repo

HasHead applies the HasEdge predicate on the "head" edge.

func HasHeadWith

func HasHeadWith(preds ...predicate.Release) predicate.Repo

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

func HasOwner

func HasOwner() predicate.Repo

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Repo

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

func HasPolicies

func HasPolicies() predicate.Repo

HasPolicies applies the HasEdge predicate on the "policies" edge.

func HasPoliciesWith

func HasPoliciesWith(preds ...predicate.ReleasePolicy) predicate.Repo

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

func HasProject

func HasProject() predicate.Repo

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Repo

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

func HasVulnerabilityReviews

func HasVulnerabilityReviews() predicate.Repo

HasVulnerabilityReviews applies the HasEdge predicate on the "vulnerability_reviews" edge.

func HasVulnerabilityReviewsWith

func HasVulnerabilityReviewsWith(preds ...predicate.VulnerabilityReview) predicate.Repo

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

func ID

func ID(id int) predicate.Repo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Repo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Repo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Repo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Repo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Repo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Repo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Repo

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

func NameContains

func NameContains(v string) predicate.Repo

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

func NameContainsFold

func NameContainsFold(v string) predicate.Repo

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

func NameEQ

func NameEQ(v string) predicate.Repo

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

func NameEqualFold

func NameEqualFold(v string) predicate.Repo

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

func NameGT

func NameGT(v string) predicate.Repo

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

func NameGTE

func NameGTE(v string) predicate.Repo

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Repo

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Repo

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Repo

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

func NameLTE

func NameLTE(v string) predicate.Repo

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

func NameNEQ

func NameNEQ(v string) predicate.Repo

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

func NameNotIn

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

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.Repo) predicate.Repo

Or groups predicates with the OR operator between them.

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