release

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the release type in the database.
	Label = "release"
	// 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"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// EdgeSubreleases holds the string denoting the subreleases edge name in mutations.
	EdgeSubreleases = "subreleases"
	// EdgeDependencies holds the string denoting the dependencies edge name in mutations.
	EdgeDependencies = "dependencies"
	// EdgeCommit holds the string denoting the commit edge name in mutations.
	EdgeCommit = "commit"
	// EdgeHeadOf holds the string denoting the head_of edge name in mutations.
	EdgeHeadOf = "head_of"
	// EdgeLog holds the string denoting the log edge name in mutations.
	EdgeLog = "log"
	// EdgeViolations holds the string denoting the violations edge name in mutations.
	EdgeViolations = "violations"
	// EdgeArtifacts holds the string denoting the artifacts edge name in mutations.
	EdgeArtifacts = "artifacts"
	// EdgeComponents holds the string denoting the components edge name in mutations.
	EdgeComponents = "components"
	// EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations.
	EdgeVulnerabilities = "vulnerabilities"
	// EdgeLicenses holds the string denoting the licenses edge name in mutations.
	EdgeLicenses = "licenses"
	// EdgeCodeScans holds the string denoting the code_scans edge name in mutations.
	EdgeCodeScans = "code_scans"
	// EdgeTestRuns holds the string denoting the test_runs edge name in mutations.
	EdgeTestRuns = "test_runs"
	// EdgeVulnerabilityReviews holds the string denoting the vulnerability_reviews edge name in mutations.
	EdgeVulnerabilityReviews = "vulnerability_reviews"
	// Table holds the table name of the release in the database.
	Table = "release"
	// SubreleasesTable is the table that holds the subreleases relation/edge. The primary key declared below.
	SubreleasesTable = "release_dependencies"
	// DependenciesTable is the table that holds the dependencies relation/edge. The primary key declared below.
	DependenciesTable = "release_dependencies"
	// CommitTable is the table that holds the commit relation/edge.
	CommitTable = "release"
	// CommitInverseTable is the table name for the GitCommit entity.
	// It exists in this package in order to avoid circular dependency with the "gitcommit" package.
	CommitInverseTable = "commit"
	// CommitColumn is the table column denoting the commit relation/edge.
	CommitColumn = "git_commit_release"
	// HeadOfTable is the table that holds the head_of relation/edge.
	HeadOfTable = "release"
	// HeadOfInverseTable is the table name for the Repo entity.
	// It exists in this package in order to avoid circular dependency with the "repo" package.
	HeadOfInverseTable = "repo"
	// HeadOfColumn is the table column denoting the head_of relation/edge.
	HeadOfColumn = "repo_head"
	// LogTable is the table that holds the log relation/edge.
	LogTable = "release_entry"
	// LogInverseTable is the table name for the ReleaseEntry entity.
	// It exists in this package in order to avoid circular dependency with the "releaseentry" package.
	LogInverseTable = "release_entry"
	// LogColumn is the table column denoting the log relation/edge.
	LogColumn = "release_entry_release"
	// ViolationsTable is the table that holds the violations relation/edge.
	ViolationsTable = "release_policy_violation"
	// ViolationsInverseTable is the table name for the ReleasePolicyViolation entity.
	// It exists in this package in order to avoid circular dependency with the "releasepolicyviolation" package.
	ViolationsInverseTable = "release_policy_violation"
	// ViolationsColumn is the table column denoting the violations relation/edge.
	ViolationsColumn = "release_policy_violation_release"
	// ArtifactsTable is the table that holds the artifacts relation/edge.
	ArtifactsTable = "artifact"
	// ArtifactsInverseTable is the table name for the Artifact entity.
	// It exists in this package in order to avoid circular dependency with the "artifact" package.
	ArtifactsInverseTable = "artifact"
	// ArtifactsColumn is the table column denoting the artifacts relation/edge.
	ArtifactsColumn = "artifact_release"
	// ComponentsTable is the table that holds the components relation/edge.
	ComponentsTable = "release_component"
	// ComponentsInverseTable is the table name for the ReleaseComponent entity.
	// It exists in this package in order to avoid circular dependency with the "releasecomponent" package.
	ComponentsInverseTable = "release_component"
	// ComponentsColumn is the table column denoting the components relation/edge.
	ComponentsColumn = "release_component_release"
	// VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge.
	VulnerabilitiesTable = "release_vulnerability"
	// VulnerabilitiesInverseTable is the table name for the ReleaseVulnerability entity.
	// It exists in this package in order to avoid circular dependency with the "releasevulnerability" package.
	VulnerabilitiesInverseTable = "release_vulnerability"
	// VulnerabilitiesColumn is the table column denoting the vulnerabilities relation/edge.
	VulnerabilitiesColumn = "release_vulnerability_release"
	// LicensesTable is the table that holds the licenses relation/edge.
	LicensesTable = "release_license"
	// LicensesInverseTable is the table name for the ReleaseLicense entity.
	// It exists in this package in order to avoid circular dependency with the "releaselicense" package.
	LicensesInverseTable = "release_license"
	// LicensesColumn is the table column denoting the licenses relation/edge.
	LicensesColumn = "release_license_release"
	// CodeScansTable is the table that holds the code_scans relation/edge.
	CodeScansTable = "code_scan"
	// CodeScansInverseTable is the table name for the CodeScan entity.
	// It exists in this package in order to avoid circular dependency with the "codescan" package.
	CodeScansInverseTable = "code_scan"
	// CodeScansColumn is the table column denoting the code_scans relation/edge.
	CodeScansColumn = "code_scan_release"
	// TestRunsTable is the table that holds the test_runs relation/edge.
	TestRunsTable = "test_run"
	// TestRunsInverseTable is the table name for the TestRun entity.
	// It exists in this package in order to avoid circular dependency with the "testrun" package.
	TestRunsInverseTable = "test_run"
	// TestRunsColumn is the table column denoting the test_runs relation/edge.
	TestRunsColumn = "test_run_release"
	// VulnerabilityReviewsTable is the table that holds the vulnerability_reviews relation/edge. The primary key declared below.
	VulnerabilityReviewsTable = "vulnerability_review_releases"
	// 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"
)

Variables

View Source
var (
	// SubreleasesPrimaryKey and SubreleasesColumn2 are the table columns denoting the
	// primary key for the subreleases relation (M2M).
	SubreleasesPrimaryKey = []string{"release_id", "subrelease_id"}
	// DependenciesPrimaryKey and DependenciesColumn2 are the table columns denoting the
	// primary key for the dependencies relation (M2M).
	DependenciesPrimaryKey = []string{"release_id", "subrelease_id"}
	// VulnerabilityReviewsPrimaryKey and VulnerabilityReviewsColumn2 are the table columns denoting the
	// primary key for the vulnerability_reviews relation (M2M).
	VulnerabilityReviewsPrimaryKey = []string{"vulnerability_review_id", "release_id"}
)
View Source
var (
	Hooks [1]ent.Hook
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(string) error
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/valocode/bubbly/ent/runtime"

Columns holds all SQL columns for release fields.

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

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

Functions

func And

func And(predicates ...predicate.Release) predicate.Release

And groups predicates with the AND operator between them.

func HasArtifacts

func HasArtifacts() predicate.Release

HasArtifacts applies the HasEdge predicate on the "artifacts" edge.

func HasArtifactsWith

func HasArtifactsWith(preds ...predicate.Artifact) predicate.Release

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

func HasCodeScans

func HasCodeScans() predicate.Release

HasCodeScans applies the HasEdge predicate on the "code_scans" edge.

func HasCodeScansWith

func HasCodeScansWith(preds ...predicate.CodeScan) predicate.Release

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

func HasCommit

func HasCommit() predicate.Release

HasCommit applies the HasEdge predicate on the "commit" edge.

func HasCommitWith

func HasCommitWith(preds ...predicate.GitCommit) predicate.Release

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

func HasComponents

func HasComponents() predicate.Release

HasComponents applies the HasEdge predicate on the "components" edge.

func HasComponentsWith

func HasComponentsWith(preds ...predicate.ReleaseComponent) predicate.Release

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

func HasDependencies

func HasDependencies() predicate.Release

HasDependencies applies the HasEdge predicate on the "dependencies" edge.

func HasDependenciesWith

func HasDependenciesWith(preds ...predicate.Release) predicate.Release

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

func HasHeadOf

func HasHeadOf() predicate.Release

HasHeadOf applies the HasEdge predicate on the "head_of" edge.

func HasHeadOfWith

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

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

func HasLicenses

func HasLicenses() predicate.Release

HasLicenses applies the HasEdge predicate on the "licenses" edge.

func HasLicensesWith

func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.Release

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

func HasLog

func HasLog() predicate.Release

HasLog applies the HasEdge predicate on the "log" edge.

func HasLogWith

func HasLogWith(preds ...predicate.ReleaseEntry) predicate.Release

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

func HasSubreleases

func HasSubreleases() predicate.Release

HasSubreleases applies the HasEdge predicate on the "subreleases" edge.

func HasSubreleasesWith

func HasSubreleasesWith(preds ...predicate.Release) predicate.Release

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

func HasTestRuns

func HasTestRuns() predicate.Release

HasTestRuns applies the HasEdge predicate on the "test_runs" edge.

func HasTestRunsWith

func HasTestRunsWith(preds ...predicate.TestRun) predicate.Release

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

func HasViolations

func HasViolations() predicate.Release

HasViolations applies the HasEdge predicate on the "violations" edge.

func HasViolationsWith

func HasViolationsWith(preds ...predicate.ReleasePolicyViolation) predicate.Release

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

func HasVulnerabilities

func HasVulnerabilities() predicate.Release

HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.

func HasVulnerabilitiesWith

func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.Release

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

func HasVulnerabilityReviews

func HasVulnerabilityReviews() predicate.Release

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

func HasVulnerabilityReviewsWith

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

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

func ID

func ID(id int) predicate.Release

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Release

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Release

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Release

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Release

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Release

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Release

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Release

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Release

LabelsNotNil applies the NotNil predicate on the "labels" field.

func Name

func Name(v string) predicate.Release

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

func NameContains

func NameContains(v string) predicate.Release

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

func NameContainsFold

func NameContainsFold(v string) predicate.Release

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

func NameEQ

func NameEQ(v string) predicate.Release

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

func NameEqualFold

func NameEqualFold(v string) predicate.Release

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

func NameGT

func NameGT(v string) predicate.Release

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

func NameGTE

func NameGTE(v string) predicate.Release

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Release

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Release

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Release

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

func NameLTE

func NameLTE(v string) predicate.Release

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

func NameNEQ

func NameNEQ(v string) predicate.Release

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

func NameNotIn

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

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

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

func Version

func Version(v string) predicate.Release

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Release

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Release

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Release

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Release

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Release

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Release

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Release

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Release

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Release

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Release

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Release

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Release

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Release

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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